Solved

Sending querystring values IE7

Posted on 2007-03-20
3
424 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
edit .asp files 5 32
javascript - insert into js doc help 2 25
convert Systemjs to Webpack 3 37
Change static entered data to dynamic with counter 5 15
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

808 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