Site Server General - Wierd Question about IE

This is Interesting: Free IT Magazines  
Home > Archive > Site Server General > March 2004 > Wierd Question about IE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Wierd Question about IE
shsalex

2004-03-11, 10:40 pm

I have a webApp built with struts. There's one normal page in it(name it as pageA)
I browse pageA in Internet Explorer, after that if I use the "back" or "forward" button to get to pageA again, IE don't retrieve it again from the web server, it just uses the cache page.
The question is: I have a link on pageA like this.

<a href=" javascript:doOpenWin('1','1','1','2','',
'MT0000000007');"><span class="ja12">hoso</span></a>

If I click the link and pops up a window, after that if I use "back" and "forward" go get to pageA, IE WILL retrieve it again from the server. Why? What causes IE to retrieve it again from web server? Just one click?
Any one can help me out?

the javascript definition is listed below:

function doOpenWin(param1, param2, param3, param4, param5, param6){
var param = "..." + param1 + "&R_PAGE_NUM=" + param2 + "&R_CATEGORY_NUM=" + param3 + "&R_SETSUMONN_NUM=" + param4 + "&R_HOSOKU_ID=" + param5+ "&R_SOZAI_ID=" + param6;
openWindow(param + '&newWindow=true','_blank',600,500);
}

function openWindow(url,target,width,height){

url = getURLForGet(url);
return window.open(url,target," menubar=no,scrollbars=yes,resizable=yes,
width=" + width + ",height=" + height);

}

function getURLForGet( url ){

var os = getOsName( ) ;
var browser = getBrowserName( ) ;
var version = getBrowserVersion( ).charAt( 0 ) ;
var str = url;

if ( os == "Windows" && browser == "Netscape" && version == 4)
{
if (str.indexOf("?") == -1) {
str += "?";
} else {
str += "&";
}
dt = new Date();
str += dt.getTime();

return str;
}else{
return url;
}

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com