XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old November 26th, 2003, 09:16 PM
ryche88OM ryche88OM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 35 ryche88OM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 45 sec
Reputation Power: 5
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

Reply With Quote
  #2  
Old November 28th, 2003, 07:19 PM
ryche88OM ryche88OM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 35 ryche88OM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 45 sec
Reputation Power: 5
Talking ANSWER - with Archive Help

<form action="colors123.cgi" method="POST" target="colors123" onsubmit="window.open('about:blank','colors123','width=700,height=400,menubar=no,scrollbars=no')">

Reply With Quote
  #3  
Old November 29th, 2003, 05:55 AM
teedee teedee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 42 teedee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
why is this in the XML forum?

Reply With Quote
  #4  
Old November 29th, 2003, 11:55 AM
ryche88OM ryche88OM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 35 ryche88OM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 45 sec
Reputation Power: 5
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Form Post in New Sized Window


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway