Forum Moderators: open

Message Too Old, No Replies

HTTP 405 - Resource not allowed

Help

         

ededdleman

7:45 pm on Aug 22, 2002 (gmt 0)

10+ Year Member



When I click the back button I get the above message. Can you help me?

<HTML>
<HEAD>
<TITLE>T</TITLE>
<base target=documents>
</HEAD>
<BODY>
<center><IMG SRC="/images/Boyle06.JPG" height=480 width=640></center>
<center><h1>Margaret Boyle, Receptionist</h1></center>
<FORM action="/apprsr.htm" method="post">
<center><input type="SUBMIT" value="Back"></center>
</FORM>
</BODY>
</HTML>

choster

9:15 pm on Aug 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried using an ordinary link instead of a form element? <FORM> wasn't originally intended for primary use in navigation and your server might be set to reject requests like this one. If what you're mainly after is having a navigation button and not the <FORM> functionality, I'd create a button graphic and use an ordinary anchor for the link.

ededdleman

9:47 pm on Aug 22, 2002 (gmt 0)

10+ Year Member



Thanks,
I'll try that.

rewboss

6:29 am on Aug 23, 2002 (gmt 0)

10+ Year Member



But don't label it "Back". "Back" means "Back to the page you last viewed", and, depending on how the user got to the page with the "Back" button, that might not be what you think it is.

You can potentially end up with two "Back" buttons: One on the page itself which takes the user to apprsr.htm; and one on the toolbar that might take the user to apprsr.html, or it might take them to a search engine results page.

Give it a more specific label; the user needs to know where they're going "back" to.

Dreamquick

7:37 am on Aug 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem seems to be that your webserver is giving you 405 when you attempt to post to a static html page (I'd suggest it was IIS since I'd assume apache would be smarter than this).

Unless you have done something to map .htm files to a filetype which supports server-side code then the reason for this message is that if you POST to a static file-type then there is no way to retrieve the POST data on the client side.

You'll have better luck if you change the method to GET, plus that can also be accessed from the client-side

- Tony

joshie76

10:00 am on Aug 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dreamquick's right.

The standard settings in IIS (I can't remember exactly where the dialog is in IIS as I am at home and don't have it here) doesn't allow POSTS to .htm files.
The dialog shows which verbs (GET, POST, HEAD etc) are allowed on which file extensions and you can change these settings if you need to.

If you can rely on JavaScript being available on your clients (which you may have already assumed in some part of you site) you could add the link to an event on a button, eg:

<form><!-- form tags needed or button will not show in NN4 -->
<input type="button" onclick="window.location.href='http://www.example.com'" value="click me">
</form>

However, chosters solution of simple using a link is probably the easiest.

Josh

ededdleman

2:46 pm on Aug 23, 2002 (gmt 0)

10+ Year Member



Josh,

I'm using IIS5 & vbscript & asp for other pages.
Can I do this with vbscript?

Thanks,
Ed