dcsimg
Access to http request parameters in javascript
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Richard_Pfeil
Posted On:   Monday, October 21, 2002 11:31 PM


I want to access parameters in the http request. document.URL provides access to the full URL including parameters in Netscape 7.0 but in IE 5.0 and IE 6.0 it will only provide the parameters if the page is served up by a web server and not by the file system. The pages are not intended to be served up by a web server rather they will be accessed in the file system.



Is there a way that http parameters may be accessed by JavaScript in IE when the pages are being requested from the file system?

Re: Access to http request parameters in javascript

Posted By:   Firat_Tiryaki  
Posted On:   Wednesday, October 23, 2002 05:52 AM

use document.location.search . it holds the parameters of location after "?" sign.

Re: Access to http request parameters in javascript

Posted By:   Nitesh_Naveen  
Posted On:   Tuesday, October 22, 2002 02:20 AM

You can access the http parameters passed over as a query string or submitted via get method through the url which cna be obtained from window.location. Then you need to split up the query string/url to get each parameter-value set. But if the submit is made by post method, i don't think you can retrieve them. And IE is yet to support for javascript 1.5 which is used in Netscape 7
About | Sitemap | Contact