Forum Moderators: open

Message Too Old, No Replies

Posting Form Data to a Popup

         

webdude

6:48 pm on Aug 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have some data that I would like posted to a popup window. The popup is in asp. I am trying to pass hidden values to the popup ie..

<input type=hidden name="Cell1" value="whatever1">
<input type=hidden name="Cell2" value="whatever2">
<input type=hidden name="Cell3" value="whatever3">
<input type=hidden name="Cell4" value="whatever4">

Does anyone know how to do this?

Thanks!

Rambo Tribble

1:55 am on Aug 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure how you do a popup in ASP, but here's transferring form values via JavaScript to a new window:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="" target="theWin" onsubmit="window.open('','theWin','height=200px,width=300px');">
<input type="text" value="something" />
<input type="submit" />
</form>
</body>
</html>

webdude

1:51 pm on Aug 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Rambo Tribble...

Works great.

nematoth

8:30 am on Aug 21, 2004 (gmt 0)

10+ Year Member



I am trying to do exactly the same thing but when I try it my popup window appears ("subscribe.php").. thats fine.. but it immediately redirects to the opener html file..("index.html") ?

Any ideas why this might be happening?

nematoth

8:50 am on Aug 21, 2004 (gmt 0)

10+ Year Member



i added subscribe.php to my action and it seems to be working now..

Cheers.