Solved

pop up a window and auto submit

Posted on 2002-06-20
3
571 Views
Last Modified: 2013-11-28
Hi.
I am using ASP to create a web application. let say i have main.asp and child.asp. i use 'function OpenWindow' as follow to pop-up child.asp from main.asp.

//put in main.asp
function OpenWindow(){

window.open("child.asp","A","width=500,height=600,status=no,resizable=yes,top=200,left=200");
}

And in child.asp, i have function 'assignValue' to past in some value to main.asp (it work fine). my question is how do i submit the main.asp when child is close. If i use window.opener.location.reload(true); It is not submit, that mean i canot use 'request.form' to get the component value. am i right??

function assignValue(){
     // enter some value....

     window.opener.location.reload(true);
//      window.opener.location.submit;    
     window.close();

}
0
Comment
Question by:chencc77
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
knightEknight earned 50 total points
ID: 7095624
window.opener.document.formname.submit();
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 7095629
or:

window.opener.document.forms[0].submit();
0
 

Author Comment

by:chencc77
ID: 7097588
Ok , thank you. ^-^
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about the 3 stages of the buyer's journey: awareness, consideration, and decision.
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question