Solved

Sending querystring values IE7

Posted on 2007-03-20
3
421 Views
Last Modified: 2008-01-09
I am simply trying to send and recieve a querystring. I'm using IE7 and this is the URL of the local html page i am using....

C:\Documents and Settings\............\Website\Overview.html?m=n73

however, when i try and open this page in IE7, it claims that 'windows cannot find' the path and i should check the path.

Should the Overview.html page not open, it only has a query value on the end??  If i remove the query string value, it opens fine....

Have i mis-written something????

Any help would be great, thanks

Phil

0
Comment
Question by:Artform04
3 Comments
 
LVL 10

Accepted Solution

by:
Jaax earned 250 total points
ID: 18755193
URL with queryString works when the form or URL is submitted to a webserver. And moreover, the URL should contain a target that can process the request (like JSP, ASP or Servlet) , not HTMLs.
So you have to strip your URL off the trailing "?m=n73" to enable IE7 locate the page.
 
0
 
LVL 1

Author Comment

by:Artform04
ID: 18755210
but im simply gonna be using javascript to read back the value? i thought this is how to send values between pages on client-side???

if not, is there any other way to use client-side scripting to gain variables between pages?

Thanks, Phil
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 18755593
Jaax: .html?bla=x is perfectly ok when served from a webserver.
In js, you will look at location.search - for example like this:
var passed = location.search;
if (passed) passed = passed.substring(1); // loose the ?

Michel
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now