Solved

pop up a window and auto submit

Posted on 2002-06-20
3
573 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 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