By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

HTML Form post to popup-window

P: n/a
Hi,

I launched a modal popup window with code like:
<script language="javascript">
function modalWin() {
if (window.showModalDialog) {
window.showModalDialog("MyPage1.asp","MyPopup",
"dialogWidth:500px;dialogHeight:400px");
} else {
window.open('MyPage1.asp,'MyPopup',
'height=400,width=500,toolbar=no,directories=no,st atus=no,menubar=no,scrollbars=no,resizable=no ,modal=yes');
}
}
</script>

so can see that the popup window name is MyPopup, with MyPage1.asp

In MyPage1.asp, I got FORM statement to post

<form method="POST" action="MyPage2.asp" onsubmit="return
confirmStart()" id="submitform" name="sform" target="_self">

I have tried with Target="_self" or target="MyPopup", but still it
will open another new popup window. Why?

Since I already have MyPopup windows, for any form post, I want it to
be at the same window.
Meaning that the popup window name is STILL be the same MyPopup, with
MyPage2.asp

Can you help ?

Magix

Jan 23 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.