473,805 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Javascript Caching Problem

1) I have an aspx page for customer details, opened using
showModalDialog (i know, i know, but I inherited it and it's too
integrated to change at this point).

2) This aspx page has some inputs on it, and some javascript that
opens another page (address lookup using postcode/zipcode) using
showModalDialog , passing "this" in as the dialogarguments parameter.

3) The postcode dialog refreshes itself as necessary to allow the user
to find the address they want, and when they finish it's "wizard", it
tries the following (excerpt):

// Update the caller with the values
if (top.dialogArgu ments)
{
var caller = top.dialogArgum ents;

var targetItemName = document.getEle mentById("targe tItemName").val ue;

var address1 = caller.document .getElementById (targetItemName +
"_txtAddress1") ;
var address1Local =
document.getEle mentById("selec tedAddressField s_txtAddress1") ;

if (address1 != null && address1Local != null)
{
address1.value = address1Local.v alue;
}
}

close();

Expected Result:
The customer details page has it's form values updated by the address
finder page, just before it closes.

Actual Result:
window.dialogAr guments returns "undefined" .

I've tried the following to resolve this:

1) Delete IE temporary internet files.
2) Delete VSWebCache in My Documents.
3) Delete ASP.NET Temporary files in Windows\Microso ft.NET\... etc

Various test pages all worked ok, including creating a "dummy" customer
details page, using the same address lookup page, opened using copied
javascript.

The root cause is the customer details popup, for some reason doesn't
pass the dialogarguments properly.

I then tried creating a new popup, called CustomerDetails Test.aspx,
copied and pasted every last line of code in (modifying class names
etc, obviously).

AND IT WORKS!!

But still, the old page does not.

It's only javascript, there's no server-side here, and it's not to do
with the address popup refreshing before attempting to update the
fields, because in my test examples it works.

CAN ANYONE HELP???

Sep 18 '06 #1
0 1318

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1866
by: KKramsch | last post by:
OK, here's the scenario: I have a CGI script that generates a page with frames (BTW, I'm not crazy about frames, but in this case the decision to use them is out of my hands). In a typical session, the user interacts with two of these frames extensively, and up to the very end of the session, this interaction is handled entirely client-side by a fairly elaborate JavaScript script. (This interaction takes place exclusively via HTML...
17
2746
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script src="/shared/scripts/common.js?revision=1.6" type="text/javascript">. I am trying to see if there is any big deal to this or a best practice that is starting to creep up in the JavaScript community. If this is used only as a way to distinguish what...
7
6722
by: mark4asp | last post by:
How can I prevent Caching of JavaScript and CSS files ONLY when I deploy a new application? I only want to force a refresh the first time the client uses the new build. For instance, I'm told I can do it with javascript by including a version number as a querystring like this: <script type="text/javascript" src="../javascript/menu.js?v=2"></ script> However that won't solve the problem of the css files.
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10609
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10360
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10105
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7646
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.