Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > close child, run ASP and display data in parent

Reply
Thread Tools

close child, run ASP and display data in parent

 
 
Joe D
Guest
Posts: n/a
 
      06-29-2003
I think this is a simple question. But I am new to JS. Here is what I
want to do:

From a parent window, open a popup window (child) to get data from
user, then user submit the request, close the child window, an ASP
page is generated from server and displayed with data in parent
window, rather than child window. Right now, I can display in child
window. But do not know how to display in parent.

TIA
 
Reply With Quote
 
 
 
 
N Clements
Guest
Posts: n/a
 
      06-30-2003
One way to accomplish what you want is to capture the information you
want in the child and submit it (via URL) to the parent window ASP file,
then either close the child immediately or have the parent close it when
the ASP file is finished loading. This is essentially submitting the
form manually.

If you want to still use the form submission itself, try setting the
target="parent" -- I've not tried it, and I don't have access to anything
that I can use to test it right now. You'll have to perform the close in
the parent window (I believe).

Hope this helps.

N. Clements
Brainbench MVP for Javascript
www.brainbench.com
http://www.velocityreviews.com/forums/(E-Mail Removed).242.mailshell.com
Remove 2nd through 4th spam to reply.

http://www.velocityreviews.com/forums/(E-Mail Removed) (Joe D) wrote in news:d775f0aa.0306291314.2d38d037
@posting.google.com:

> I think this is a simple question. But I am new to JS. Here is what I
> want to do:
>
> From a parent window, open a popup window (child) to get data from
> user, then user submit the request, close the child window, an ASP
> page is generated from server and displayed with data in parent
> window, rather than child window. Right now, I can display in child
> window. But do not know how to display in parent.
>
> TIA
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close a TCP socket? (TCPSocket#close doesn't close it) IƱaki Baz Castillo Ruby 7 01-12-2010 01:32 PM
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Set Parent Scroll Position - parent page and iframe on seperate domains PD Javascript 6 05-09-2006 03:37 PM
asp:button : refresh parent and close child at end of btn_click Brad Smith ASP .Net Web Controls 0 04-07-2004 03:07 PM
How to close child browser while parent close? Denon ASP .Net 1 11-14-2003 08:14 AM



Advertisments