|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Pop-up window
Help
I would like to open a popup window (window.open) using javascript passing variables from the parent to the child window. On exit from the child window (window.close)I want to set a form field value in the parent window Can anyone help???????????? |
|
#2
|
|||
|
|||
|
RE: Pop-up window
Something like
opener.document.forms[0].field_name.value="something" should work... |
|
#3
|
|||
|
|||
|
RE: Pop-up window
On another point
How can I set a PHP variable with a javascript? |
|
#4
|
|||
|
|||
|
RE: Pop-up window
Depends... what are you trying to do?
If you include a variable in an URL, it will work: http://.../something.php?variable=123 Or, you can use a <form>, if you want... |
|
#5
|
||||
|
||||
|
RE: RE: Pop-up window
Quote:
If you want to do this you must refresh the page because javascript is client-side and php is server-side. |
|
#6
|
|||
|
|||
|
RE: Pop-up window
Sorted, posted the vars from the calling window into the URL!!!!
Thanks ALL |
|
#7
|
|||
|
|||
|
RE: Pop-up window
Sorted, posted the vars from the calling window into the URL!!!!
Thanks ALL |
|
#8
|
|||
|
|||
|
RE: Pop-up window
Hi aplatts... I have the same Q:... I have a user list... and when I click on their name it needs to open a popup with this users details inside it... then work around with their data.. my Q: How can I get a link on the username that opens the pop up?
|
|
#9
|
|||
|
|||
|
RE: Pop-up window
Check out this great tutorial code. Then you will get a idea of popups in javascript.
http://codewalkers.com/seecode/366.html |
|
#10
|
|||
|
|||
|
RE: Pop-up window
Quote:
You can pass the user id through the GET method to the page that opens in the new window <script language="JavaScript"> function openNewWin(usrId){ args="width=600,height=400,resizable=no,scrollbars=yes,s tatus=0"; window.open("userpage.php?userId="+usrId,"Newwin",args); } </script> . . . <a href="javascript |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Pop-up window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|