Sometimes it is useful to subimt a form into a popup window, here's a few ways to do it:
<form action="foo.php" method="post" target="POPUPW"
onsubmit="POPUPW = window.open(this.action,'POPUPW',
'width=600,height=400');">
...
<input type="submit" name="sub" value="Submit in Popup">
</form>
- or -
<form action="foo.php" method="post" name="myform">
...
<input type="submit" name="subpopup" value="Submit in Popup"
onclick="myform.target='POPUPW'; POPUPW = window.open(
this.action,'POPUPW','width=600,height=400');">
<input type="submit" name="subnormal" value="Submit Normal">
</form>
and on a similar topic here is a way to do simple link popups:
<a href="test.htm" target="pop" onclick="pop=window.open(this.href,'pop',
'width=650,height=400');">link</a>
|
Collector Comics is THE place to buy, sell, and research comics online. Launching soon.
Launch »
Screenshot »
|
|
Webitor is a kick-ass easy to use, easy to extend, non-database driven Content Management System. Version 2 with reseller plan coming soon.
Launch »
Version 1 »
|
|
GC Lounge is my own pet social network and test bed for social related code. Made by locals for locals.
Launch »
|
|
GG has indexed over half a million recent Trade Mark applications. This revolutionary tool is extremely valuable for industry experts.
Launch »
|
|
GCWiFi is the hub for techies interested in joining a ad-hoc wireless mesh spread across the Gold Coast
Launch »
|
|
Web based financial client management system
Launch »
|
|
OS Commerce modules and template modification
Launch »
|
| View More Projects » | |