Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POPUP Submit

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
Hello;

What would be the best way to submit a form and have its target resutls appear on a new form. I know I can do a <form target='_blank'> But I need to specify items such as its width, height, scroll=no, etc. (as you can do in JavaScript. I was wondering if I could do like a window.open() but as the target for my submit tag.

Anyone know how to do this??
Thanks in advance.
MH
 
Doing a little more research, It looks like rather than submit the form to the new page, i can just open the child page, and then edit the parents form elements.

Can someone help me find out how to do this?

For example, Parent page has a form with a textbox &quot;names&quot;.
I need to get the value of &quot;names&quot; to use in my new child popup.

Thanks in advance.
MH
 
Depending on your needs, you could use window.open(&quot;pagename.asp?var1=value1&var2=value2&var3=value3&quot;)

It will allow you to specify size of the browser, location, etc.

Here is a link that explains window.open

Another way is window.shoeModalDialog. This gives you similar features but they must complete this window before returning to the parent window. There are limitations on this though. You cannot submit the form in the modal dialog. You can only return a string back to the parent.


There is also a window.showModelessDialog
Depending on you needs, here are a few of choices.

Chris.
 
Yes, you could exchange any HTML control value through frame. Following is the syntax for passing data from Child to Parent frame.

parent.frames['framename'].Fr.txtSample.value = '123';
parent.frames['framename'].divSample.innerHTML = '123';

also, you could get the value from there by,

totPg = parent.frames['framename'].Fr.txtSample.value;

Just for your reference.


Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top