Solved

pop up a window and auto submit

Posted on 2002-06-20
3
566 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
Comment Utility
window.opener.document.formname.submit();
0
 
LVL 33

Expert Comment

by:knightEknight
Comment Utility
or:

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

Author Comment

by:chencc77
Comment Utility
Ok , thank you. ^-^
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now