Forum Moderators: coopster

Message Too Old, No Replies

php/javascript issue with multiple windows

         

amikin

12:37 am on Mar 6, 2007 (gmt 0)

10+ Year Member



Not sure if this is a php question or a javascript question, but here's my situation.

I have a form that opens a new window to enter some data, once the data is entered and I spit out my confirmation message, I want to close the pop up and refresh the parent window.

My problem is I need that parent window to refresh and retain the form data it originally opened with. So far I have used window.opener.refresh(); and window.opener.history.go(0) but both clear out the form variable I need for my page to open properly.

If I do a refresh with the browser controls, the form variable is retained so I know it's being set.

Any suggestions?

eelixduppy

1:27 am on Mar 6, 2007 (gmt 0)



I'd say you wouldn't need php for something like this.

Set sessions with javascript [google.com] in the window which will allow you to get the information on other pages after you refresh the parent window. Refer to the link I provided for some information about javascript sessions.

Good luck!