473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.dialogArguments)
{
var caller = top.dialogArguments;

var targetItemName = document.getElementById("targetItemName").value;

var address1 = caller.document.getElementById(targetItemName +
"_txtAddress1");
var address1Local =
document.getElementById("selectedAddressFields_txt Address1");

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

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.dialogArguments 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\Microsoft.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 CustomerDetailsTest.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 1297

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

Similar topics

6
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...
17
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...
7
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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...

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.