|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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..! |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 ... >
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Form post |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|