...

View Full Version : post to a pop up box ??



chris_angell
01-15-2003, 11:09 AM
this may be a DUM *** question but I am trying to post from a form (easy) but the page I am posting to I want to be in a pop up box ??

ie

method="POST" action="post.asp" in the form tag

but how do I make this post to a pop up box ???? please help oh

arnyinc
01-15-2003, 02:06 PM
<form name="myform" onsubmit="window.open('', 'mypop')" target="mypop" action="buh.htm">
<input type="text" name="textbox1">
<input type="submit">
</form>


If you don't need control over the popup window you can set the target="_blank" and get rid of the onsubmit event. Then it will pop up in a new window.

chris_angell
01-15-2003, 02:25 PM
I am trying to make the pop up a certain size.... when popping up.. I have tried this.. thinking it would work..

window.open ('',width=350, height=250,'mypop')

how do conquor the pop up size world ????



:rolleyes:

arnyinc
01-15-2003, 04:13 PM
I'm pretty sure that would be window.open('', 'mypop', 'height=250,width=350')

Here's a decent popup tutorial
http://hotwired.lycos.com/webmonkey/98/03/index3a_page5.html?tw=programming



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum