|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
popup wwindow and POST request
Hi,
I have a form that is displayed in a regular browser window. It has a target attribute with a value of "appWin". Clicking submit calls a javaScript function that opens a popup window named "appWin" so that the form is submitted to the popup. Looks sorta like this: Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Clu Trainer Window Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" type="text/javascript">
function doTheSubmit(theForm)
{
var appWin = window.open("window_thinking.htm", "appWin", "width=790,height=570");
// appWin = false;
if(!appWin)
{
theForm.target="_top";
}
return true;
}
</script>
</head>
<body>
<form name="login" id="login" method="post" action="window_app.htm" target="appWin" onsubmit="return doTheSubmit(this);">
<p>User Name:<br />
<input name="uname" type="text" id="uname" /></p>
<p>Password:<br />
<input name="passwd" type="text" id="passwd" /></p>
<p>
<input type="submit" name="Submit" value="Submit" />
</p>
</form>
</body>
</html>
This all works fine when just running it through a browser with no web server. I know Apache will not allow this but I have read over and over that IIS does. I'm wondering what I'm doing wrong... When I run this on IIS 5, the popup displays the following: The page cannot be displayed The page you are looking for cannot be displayed because the page address is incorrect. -------------------------------------------------------------------------------- Please try the following: If you typed the page address in the Address bar, check that it is entered correctly. Open the beta2.example.com home page and then look for links to the information you want. HTTP 405 - Resource not allowed Internet Information Services -------------------------------------------------------------------------------- Technical Information (for support personnel) More information: Microsoft Support Any ideas on how I can make this work? |
|
#2
|
|||
|
|||
|
Your question is a browser question, IIS doesn't know or care what your javascript is trying to make the browser do.
How are you setting up your test? What do you mean by "run the page with IIS 5"? There are some antivirus script blocking and firewall software that can interfere with your testing, if you suspect this simply turn off such software while you are experimenting.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
|
#3
|
|||
|
|||
|
Quote:
see http://www.somacon.com/p126.php |
|
#4
|
|||
|
|||
|
I'm glad you found the problem.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > popup wwindow and POST request |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|