|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Form Post in New Sized Window
I have an HTML form which calls a script:
<form action="colors123.cgi" method="POST" target="_blank"> <input type="hidden" name="green" value=336 checked> <input type="submit" value="Bid/Offer"></form> To make things pretty I want this POST to open in a new window(_blank) but sized with no address, no status, etc., This is really easy with a HREF but HREF will not POST a value to a script in new window. I have even tried: <HEAD> <SCRIPT LANGUAGE="JavaScript"> function NewWindow(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } // End --> </script></HEAD> And this in the form: onclick="NewWindow(this.href,'name','300','180','no');return false;" Another variation: onclick="NewWindow(this.action,'name','300','180','no');return false;" Variation works but excludes the posted value: "<input type="hidden" name="green" value=336 checked>" Any Help Would Be Great, Tony |
|
#2
|
|||
|
|||
|
<form action="colors123.cgi" method="POST" target="colors123" onsubmit="window.open('about:blank','colors123','width=700,height=400,menubar=no,scrollbars=no')">
|
|
#3
|
|||
|
|||
|
why is this in the XML forum?
|
|
#4
|
|||
|
|||
|
Why do you ask? Posting from a form HTML and XML to script may be the same or XML developers may have a solution - TeeDee
Any solutions or just a comment? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Form Post in New Sized Window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|