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
Solved

pop up a window and auto submit

Posted on 2002-06-20
3
572 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Learn about the eCommerce marketing trends for the year ahead.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

791 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