faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 14 people (36%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

*how do u you pass a variable(multiple select) from a pop up window to the main window?

Feb 26th, 2008 23:57
dman, Ayse Geertsma, bee baby, http://www.ttnr.org


Ask yourself this question: Does it HAVE to be a real popup or will a 
layer do?
In the first case... There's no way to just 'JavaScript' your way out 
of this one. (There is, I just didn't know about it... 
http://www.faqts.com/knowledge_base/view.phtml/aid/11870/fid/51) You'll 
have to reload your main window one way or another. 
If the main window has a name, you can use TARGET (in <a 
href="mainwindow.php?foo=bar&var=value&etc=onemore" 
target="mainwindowname">) or the JavaScript window.open to open 
the 'new' page in the same window.