Archive for July, 2006

Javascript issues

Monday, July 17th, 2006

I have a special situation in which I have about 8 webpages, which all have the same button to open a new window.

My problem is that when I press the button on page 1 (which opens a new window), browse to page 2 and press the same button, the url in the popupwindow changed but the data is *not*. In the original situation the url was the same and server vars had been changed, so I figured the browser simply did not make a new request, but even after changing a dummy variable in the url the data does not refresh until I press F5. I tried delaying setting the new url, to make sure the server was ready for the request but this didn’t help either. As a last resort I wrote this code, which is ugly as hell but fast enough not to be noticed:

l_Window = window.open(pURL,pName, pParameters);
l_Window.close();
l_Window = window.open(pURL,pName, pParameters);

Now I get fresh data everytime I click the link….
If anyone has a better solution please tell me because I am not very happy with this one…