IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 18th, 2005, 03:14 PM
davepass davepass is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 318 davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 34 m 28 sec
Reputation Power: 30
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?

Reply With Quote
  #2  
Old August 18th, 2005, 05:11 PM
Doug G Doug G is online now
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,798 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 15 h 12 m 19 sec
Reputation Power: 746
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

Reply With Quote
  #3  
Old August 18th, 2005, 11:20 PM
davepass davepass is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 318 davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 34 m 28 sec
Reputation Power: 30
Quote:
Originally Posted by Doug G
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.
It actually was an IIS thing. The server did not have .htm files mapped to be allowed for POST requests. When I changed the action of the form to be a .aspx page, the 405 error went away.

see http://www.somacon.com/p126.php

Reply With Quote
  #4  
Old August 19th, 2005, 01:15 PM
Doug G Doug G is online now
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,798 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 15 h 12 m 19 sec
Reputation Power: 746
I'm glad you found the problem.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > popup wwindow and POST request


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway