Solved

Sending querystring values IE7

Posted on 2007-03-20
3
420 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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 …

744 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

17 Experts available now in Live!

Get 1:1 Help Now