Originally posted by mzllr:
if i understand what you're trying to do, you can pass the variables in the url (as long as you're not passing sensitive info) and then have a script in the opener that will get the values out of the url.... or, if you're using something like php, you can set up a session which will allow you to pass variables between pages
maybe a link so we can see what you are trying to accomplish...
I tried passing the form to the parent target. Actually I named the parent window "mainWindow" for instance. But I was unable to target it for some reason. target="mainWindow" always opened a new window. A few JS alerts to debug shows that its name was in fact "mainWindow" and the popup knew this as well, so why the link would not target it I don't know.
Here is what I am doing: I am creating a manual order entry system for out website, using PHP & mySQL. I have a link on the main order input page that opens a popup to add products to the order in a sort of virtual cart, and then once that is finalized, it can be dumped back to the main order input page.
The problem was, that I was trying to assign values to form elements that the parent form does not have. I solved it by having the popup do all the work. I moved all the php to dump the products to the order over to the popup, and made it that when they are dumped, it adds them to the order in the database and then using JS refreshes the main order input page (actually submits the main order input page's form incase anything on that form was changed while adding products to the order), so the newly dumped products show up on the main order input page.