Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on popup windows

 
Sree Mami
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you say window works and self doesn't, than why are you using self?

Eric
 
Sree Mami
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic