Passing Form Data In PopUp Windows

P

pbd22

I can't move form data around in my popup.

I have a popup link. It uses a custom method (sorry for the code):

<script type="text/javascript">
/* popup */

var win=null;
function NewWindow(mypage, myname, w, h, pos, infocus) {
if (pos == "random") {
myleft = (screen.width) ? Math.floor(Math.random()*(screen.width-
w)) : 100;
mytop = (screen.height) ? Math.floor(Math.random()*((screen.height-
h)-75)) : 100;
}
if (pos == "center") {
myleft = (screen.width) ? (screen.width-w)/2 : 100;
mytop = (screen.height) ? (screen.height-h)/2 : 100;
} else if ((pos != 'center' && pos != "random") || pos == null) {
myleft = 0;
mytop = 20;
}

if(w!=''){
var _w = w;
} else {
var _w = screen.width;
}
if(h!=''){
var _h = h;
} else {
var _h = screen.height;
}

settings = "width="+_w+",height="+_h+",top="+mytop+",left="+myleft
+",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
win = window.open(mypage, myname, settings);
win.focus();
}

</script>
</head>
<body>
<div id="mypopup"></div>
<div>
<img src="" alt="" />
<h3>Click On The PopUp And Send It A ScheduleID</h3>
<p><a href="javascript:NewWindow('popup.aspx?
sid=68','mypopup','1024','768','center','front');">PopUp</a></p>
</div>
</body>
</html>


In the code behind of popup.aspx, I write code to the client (i need
server data so i am doing it this way).
Included is the form for a login screen:

MyPlaceHolder.Controls.Add(new LiteralControl("<p>Click on the button
below to access the presentation interface.</p><br />" +
"<form action='./destination.aspx?this=is&your=brain'
id='destination' taget='_self'>" +
"<input type='hidden' id='hidden1' value='hidden1value' /
<input type='hidden' id='hidden2' value='hidden2value' />" +
"<div class='form'><ul><li><label>Email:</label><input
type='text' class='input_medium' id='oEmail' /></li>" +
"<li><label>Password:</label><input type='password'
class='input_medium' id='oPass' /></li>" +
"<li><span><input type='submit' value='Login' /></span></
a></div></li></ul></form>"));

When the destination.aspx form posts, it is supposed to send data to
the server (hidden, query, etc) but it never does. Why?? What am i
doing wrong?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,039
Messages
2,570,375
Members
47,021
Latest member
AleciaMcMa

Latest Threads

Top