PDA

View Full Version : Reloading page with Querysting ?????


owen_yuen
10-31-2002, 06:57 PM
From Default.asp, I click a link to Pop up a small window allow user type in the criteria for searching. After user are done, they submit the form, then data pass back to default window with querystring then reload the page to display the new results.

The following two scripts are work fine into my locate drive(PWS). But after I move to web server for testing. It just reload the default.asp, but no querystring passing back. Is anything I make wrong??

Thanks
OWen


*****Script from Pop up window for pass data back****

window.opener.location.href = "default.asp?search=on&keyword="+document.Search.Keyword.value+"&forum="+forum
window.opener.location.reload();

*****Script from Pop up window for pass data back****

joh6nn
11-01-2002, 06:22 AM
this is probably because there's not enough time for the page to finish loading the new address, so it reloads the last page it has in the history. you need to wait for the page to finish loading, and then reload

beetle
11-01-2002, 03:08 PM
Uhhh, why dont you just use the HTML abilities of the FORM tag to do this? Of course, you'll need a little JS to set the name of the window first...

window.opener.window.name = "targetWindow";

Then, just have your form submit to that!

<form action="default.asp" method="get" target="targetWindow">

???? Call me crazy, but this should work :D