Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
How to communicate between pop up window and the parent window?
Old 01-24-2011, 01:27 PM How to communicate between pop up window and the parent window?
Novice Talker

Posts: 10
Trades: 0
I have a web site. The user input is a record id. When the form is submitted, the cgi code will check if the id is in the data base, if it’s in the database, it will be processed, and results being displayed. If the id is not in the database, I need to pop up a window telling the user the next available id, and when the user closes the popup window, the browser should go back to the first form submit page, with the next available id in the input box.

Right now, I can pop up an alert window telling the next available id, but have no idea how to go back to the submit page when I close the alert window.

Could anyone give me some suggestions?
Thanks!!
hpdp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-24-2011, 01:51 PM Re: How to communicate between pop up window and the parent window?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You cannot "popup" a window from server side code.

When the page returns the server script will need to write the new id into the form and trigger an alert box to inform the user.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-25-2011, 07:24 AM Re: How to communicate between pop up window and the parent window?
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
You can use target, either in the form tag or via javascript, but it's an ugly thing to do (and often disallowed by browsers). Just handle it all in the "main" window.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to How to communicate between pop up window and the parent window?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11456 seconds with 12 queries