General discussion

Locked

Javascript DHTML function not working?

By dthune ·
I have been working on a web page to show various types of web base reporting techniques. Have a front end page that allows selecting dates, times, and what report to run (could be crystal web server, static html, asp, whatever). At this point, havejust static pages. Have Drop Down select box for report selection on the form. When submit the form, a function is called to lookup the report and re-assign the form's action to the appropriate report URL. When I run this page as a file, it works. When I run it from the webserver (IIS 5.1 under XP Pro), I get HTTP Error 405 Resource not allowed error. The error page also states "The page you are looking for cannot be displayed because the page address is incorrect." However, if I take the URL from the address box and paste it into a new browser window, I get the page (thru the webserver) without any problems?

I have searched MSDN, Technet, my library, and have tried many things (frontpage extension security (although none of these pages developed or published with frontpage), web and ntfs security, to no avail. Any help would be appreciated. I will work to get a sample of the pages posted and will add to this question with that address.
Thanks in advance.

Daniel Thune, MCSE

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Javascript DHTML function not working?

by dthune In reply to Javascript DHTML function ...

I have uploaded the website to http://home.insightbb.com/~djt2066/

The Index page should take you to a page called BaseRpt.htm. This is the main selection page. Select SUBMIT to submit the selected page from the drop down select box. This gives adifferent error on this server. Once you get the error, highlight the URL in your browser and then press enter and the page comes up fine?

Thanks in advance,

Daniel Thune, MCSE
dthune@cam-co.org
dthune@worldnet.att.net

Collapse -

Javascript DHTML function not working?

by nikki96 In reply to Javascript DHTML function ...

You are quite possibly submitting a form as POST to a page the server doesn't allow POST operations to.
Change the form method to GET.

<form action="whatever.html" method="GET">

If that resolves the problem, configure the server (IIS?) to allow POST to html pages (or whatever the target in the action is).

Collapse -

Javascript DHTML function not working?

by dthune In reply to Javascript DHTML function ...

Live and Learn. I was not aware of how a web server handles posting from a form. Someone can correct me if I am wrong. But after investigating the answer above, I found the following to be true:

Using GET, the receiving page is responsible for reading the input out of the URL. This I knew....
Using POST however implies that a program on the server will 'preprocess' the request before sending a page back. This would have worked for me had I saved my static HTML pages as ASP files as the ASPdll would have looked at them and then just sent them on to my browser. Crystal Reports also work as they are send to Crystal's Web Server component. But with the HTML extension, IIS didn't know how to 'preprocess' the file. It simply assumed that this was some new fangled server side processor that hadn't been installed yet or something. In anycase, it didn't know how to handle it so it gasped the error back to me.
Thanks for the info. Now I know a little more.

Daniel Thune, MCSE

Collapse -

Javascript DHTML function not working?

by dmatlock In reply to Javascript DHTML function ...

Been awhile since I have done webpages, but just a thought... does the ISP you are running through support the 'type' of page you are trying to run? Also, have you tried another page containing similar 'html' encryption to see if it whacks? I had issues early on when doing hard code html and after having no problems, switched to FrontPage for a kick and got kicked!!! Reason, the ISP did not support the drivers on their end.

Collapse -

Javascript DHTML function not working?

by dthune In reply to Javascript DHTML function ...

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums