Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
  #1  
Old August 20th, 2003, 12:37 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Form post

How can I submit values from a form and the page that I'm submitting the values to, should open up in a new window using JavaScript window.open() like hiding the scrollbars, status bar etc.. I can do those but what I want is to submit to the new window.. Something like targetting the window while opening it up @ the sametime to post the values?

Could anybody help???

Thanks..!

Reply With Quote
  #2  
Old August 20th, 2003, 12:51 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Form post

put a target call in the form tag
like so:

<form name="form" action="mypage.php" method="post target="_new">

That will open a new window and post the values to the page that loads in the window. (mypage.php)

That is the down and dirty way of doing it.

Reply With Quote
  #3  
Old August 20th, 2003, 01:53 PM
mugane mugane is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Charlottesville, VA USA
Posts: 425 mugane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mugane Send a message via Yahoo to mugane
RE: Form post

That would certainly open a new window but it would have the default window properties (toolbar, status bar, scroll, etc).

I haven't tried this but I think it should accomplish what you want to do:

I believe that the target="" parameter can take a javascript: argument, so what you would want to do is write a function that opens your window without scroll, tool and any other bars, and return a pointer to the window object. Then you assign this to the target of the form using something like:
Code:
<!--
function GETFORMWINDOW()
{
var _new_win;
// write code to open new window:
// ...
return _new_win;
}
//-->
<! HTML ... >
<FORM NAME=formname ACTION=formaction.php TARGET="javascript:GETFORMWINDOW();">
<! HTML ... >

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Form post


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 6 hosted by Hostway