| Author |
Help on popup windows
|
Sree Mami
Ranch Hand
Joined: Jul 13, 2006
Posts: 75
|
|
Hi all, First let me thank all for extending their help in solving my problems as and when I am in trouble. Can anyone explain me what is the difference between opening popup windows using self.open and window.open? Actually I have to return values from the popup window to the parent window but when I submit these values I am unable to return them to the parent window when I open popup window using self.open. Please help me out.. Thanks in advance.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
What are you doing to return the values back to the parent? window and self are members of the Global Object which point to the Global Object. I personally say do not use self, just use window since it is cleaner in my eyes. Eric
|
 |
Sree Mami
Ranch Hand
Joined: Jul 13, 2006
Posts: 75
|
|
Yes Eric, When I used window.open I am getting multiple popup windows when I submit the form to itself,(I need to submit the form to itself 2-3 times) to extract values from database. So I used self.open. Again, the problem here is I need to transfer values from parent window to child(popup) window and vice-versa which I am unable to do using self.open. Please suggest me the correct procedure to achieve this task.. My task in sum is: Getting values from database in form fields, updating/inserting the values to database and again displaying the changed/new values in parent form. Hope this explanation gives you clear picture of my task...
|
 |
Sree Mami
Ranch Hand
Joined: Jul 13, 2006
Posts: 75
|
|
|
Please help me out in doing my above task. And also suggest,if there is any other efficient way to do this..
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
if you say window works and self doesn't, than why are you using self? Eric
|
 |
Sree Mami
Ranch Hand
Joined: Jul 13, 2006
Posts: 75
|
|
|
Yes, window works but it's opening multiple windows when I submit the form to itself. How can I avoid opening these new windows or do I have any chance of closing these windows before opening except my main popup window? Please suggest.
|
 |
Liu Zhixiang
Ranch Hand
Joined: Aug 12, 2006
Posts: 32
|
|
" Yes, window works but it's opening multiple windows when I submit the form to itself. How can I avoid opening these new windows or do I have any chance of closing these windows before opening except my main popup window? Please suggest. " window.open("http://www.google.com","google","width=400,height=300") ↑ keep this the same ↓ window.open("http://www.yahoo.com","google","width=400,height=300") [ September 20, 2006: Message edited by: Liu Zhixiang ] [ September 20, 2006: Message edited by: Liu Zhixiang ]
|
I Think Therefore I Am
|
 |
 |
|
|
subject: Help on popup windows
|
|
|