PDA

View Full Version : javascript post variables in new window..



Amitkrathi
12-06-2004, 01:15 PM
I am using following codes to submit form but not able to post form variables to new window(without menubar & toolbar).

What lines should be added to post form variables to new window using javascript.

====================
Example: these codes post form variables in the same window.


<script language="javascript">
function emailLink()
{
document.listmails.submit();
}
</script>
<form name="listmails">
<input type="text" name="a" value="1234">
<input type="text" name="b" value="1234">
</form>

[/code]

vittorio
12-14-2004, 01:49 PM
Hi,

This is not possible to do with JavaScript, PHP is a better tool.

You can get by JavaScript the post variables read in the same page. This is done in my "Addings to Virtualshop" and believe me is not simple, [I do not want to sell you my program just for that]

You could try the method get and retrieve 255 chars in the next page.
Get the code from my basic <a href=http://www.ics3w.com/VirtualShop/InputData.html>Virtualshop</a> , hope you have the skill to do it because it is not simple.
My Virtualshop basic is freeware.

Amitkrathi
12-15-2004, 02:16 AM
Thanks vittorio.

I want to post form variables in new window through javascript as i am submitting form through
document.form.target="_blank"
document.form.submit();

These codes opens a new window but do not post variables.