Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Bug in ie5 history handling of expiring pages

Reply
Thread Tools

Bug in ie5 history handling of expiring pages

 
 
Lasse
Guest
Posts: n/a
 
      08-29-2003
Hi Good people,

I have a problem that I hope someone out there might
have a work around for.

I have some ASP pages that are dynamic so I do not normally
want them to cache on the client. On the other hand they
include some user input as well and I do want the user to
be able to go back change some input on the last page and
then submit that to get a new version of the next page.

To achive this I give the pages a negative expire time as it
is my understanding that this will let the user go back and
forth in the history without accesing the server, but will
refetch them when addressed in any other way.

This works fine except for one detail. In one of the pages
I open a pop up window and this will on ie5 (5.50.4807.2300)
somehow confuse the browser. After the pop up has been open
if you back out of the page the old page will be refetched from
the server nulling out any user input. The same code works OK
on Netscape.

Has anybody familiar with this behaviour? Anybody now of a
work around?

The following code demonstrate the problem. If you run the page
select something in the listbox, push go and then hit back so
will the selection stay in the listbox. If you before leaving
the page push open it will reload the page!

<%
Response.Expires = -1000 ' Expire at once
%>

<script language="JavaScript">
function openGoogle()
{
// Format for the window
var f = 'toolbar=no,location=no,directories=no,status=no,'
f += 'menubar=no,scrollbars=no,resizable=yes,width=350, height=200'

var url = '//www.google.com/';

//Open progress window
var v = window.open (url, '_blank', f)
}
</script>

<body>
<form name="f1" action="//www.w3.org/">
<select name="foo" class="listbox">
<option value="1" selected>val 1</option>
<option value="2">val 2</option>
<option value="3">val 3</option>
</select>
<input type="button" class="inputButton" value="open" onClick="openGoogle();">
<input type="submit" class="inputButton" value="go">
</form>
</body>

Any help greatly appreciated!
Cheers,
Lasse
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover Firefox web search history with history set to 0 days Sudip Chakraborty Firefox 2 11-21-2005 06:47 PM
history.dat, formhistory.dat - deleting deletes history? S.Rodgers Firefox 4 05-05-2005 01:03 AM
IE5 and IE5.5 css layout issues. Tom HTML 0 08-02-2004 11:58 AM
IE5 inline margins bug work around? Chris Harris HTML 4 02-11-2004 12:40 PM
expiring pages Gav ASP General 3 01-03-2004 02:57 AM



Advertisments