Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP 405 Resource not found

Status
Not open for further replies.

jones54

Programmer
Sep 2, 2003
23
IE
Hi,

I have a JavaScript function:

function returnNextPage(nextPage) {

//alert(nextPage);
//document.SearchUser.action = nextPage;
document.SearchUser.action = "/AdminTools/unlockUserResearchAccount";
document.SearchUser.submit();
}
//-->


When I call this function on the submit of a button it displays the correct URL in the browser but the page is white and it has the heading "HTTP 405 Resource not found".
When I press F5 or click on refresh the page is displayed properly.

Does anyone have any idea why this is happening?

Any ideas or suggestions appreciated.
 
Sounds like it's more of an IIS problem - try this page and see if it provides a solution:


-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
also saw this, and it seems it is probably your problem, specify what file specifically you are submitting to, instead of a reference to a directory:
Code:
You can get this when your form doesn't have an action parameter, or it is left blank, if the form is in the default document *and* the user accessed the file as [URL unfurl="true"]http://yoursite/yourfolder/[/URL] instead of [URL unfurl="true"]http://yoursite/yourfolder/default.asp.[/URL]

-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top