Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Refresh with Get Values

12:06 pm on Jul 17, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:June 7, 2007
votes: 0

Okay, I've gotten myself in a little bit of a predicament. Let's start at the top...

First of all the site is like an estate agent site, with a property search. I was using a search results page as the parent page (searchresults.php) to launch a popup which has a mortgage calculator (calc.php). I would then do some calculations and use javascript to pass them back to the parent page using the opener.location function.

The problem now is that the parent page itself was generated from a search, so simply loading the page will lose all of the search information that was passed to it.

So what I need to do is refresh the search results page as to not lose the search criteria, but then also have the page include the parsed values, (like searchresults.php?myvalue=7).

So it's like I need to do load and refresh in one. Is this in anyway doable? Or at least is there a way around the problem?

Any help would be appreciated.

4:22 pm on July 18, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
votes: 0

Have you tried passing important information (such as the search query) to the popup window first? Then, when setting window.opener.location.href you can ensure that you get the entire query string.
8:46 am on July 19, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:June 7, 2007
votes: 0

I don't really think there's a way to do this in my example, mainly because the whole search thing was coded by someone els e and it uses xml and i'll be damned if i can figure it out.

i just want the function in the popup window to be like

window.parent.reload='http://www.example.com/searchresults.php?ionumber=<? echo $interest;?>&ioduration=<? echo $duration;?>';"

but when i do this i lose the values off the end of the address. i just need some way of doing like

reload "myparentlink.php" and "myparentlink" = "myparentlink"+"?ionumber=<? echo $interest;?>"

or something along those lines... just a way of refreshing but to include the new values

[edited by: DrDoc at 9:37 am (utc) on July 19, 2007]
[edit reason] examplified [/edit]


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members