Re: 2 Qs re JS scripting

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Randy Webb wrote:
>>
>>
>> I meant to stay "Internet Explorer"; though I should have just said
>> "a browser":
>>
>> ... you can't do this (via a browser):
>>
>> C:\Inetpub\wwwroot\test.asp?A=a&B=b&C=c
>
> I find that odd, because that is precisely how I tested the code I

Bad example. McKirahan should have said:

C:\test.asp?A=a&B=b&C=c

This will guarantee that no web server will be involved and the test should
result in a "not found" message ... at least it does for me.

> posted. The question is whether you want to deal with the queryString
> in ASP (or any other server language) or in the browser.

But that fails to address the OP's question. Remember? He wanted to open a
..htm file containing a querystring from a hard drive - no web server
involved.

>>1. I have an HTML file on a local harddisk and I want to open it from
>>another local .js file passing it a string for it to read and display
>>e.g. test.html?this_is/atest so how do I do all of that?!


> If in the
> browser, then JS is very well capable of picking up the A=a&B=b&C=c
> part of the URL, split it, assign variables, and act upon them.
>
> Submitting a page to itself will create a queryString for you, test
> it :)

Again, submitting requires a web server.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


.



Relevant Pages

  • Re: 2 Qs re JS scripting
    ... This will guarantee that no web server will be involved and the test should result in a "not found" message ... ... The way I got around it was submitting a form to itself with a GET attribute. ... It could very well easily be coded to submit the form if no queryString is present in the else part of my code. ... The browser should look at the file name and think "OK, lets open the file itself, then go to the anchor" but it seems to be treating the anchor as part of the filename itself. ...
    (microsoft.public.scripting.jscript)
  • Re: 2 Qs re JS scripting
    ... I have an HTML file on a local harddisk and I want to open it from ... You need ASP in order to use a querystring, which means you need a web ... from a hard drive without using a web server. ... This email account is my spam trap so I ...
    (microsoft.public.scripting.jscript)
  • [NT] Poisoning Cached HTTPS Documents in Internet Explorer
    ... Get your security news from a reliable source. ... "poison" a user's browser cache with a malicious document that will later ... The attacker can exploit this vulnerability for "replacing" HTML ... to communicate with a malicious web server over HTTPS without the browser ...
    (Securiteam)
  • RE: [Full-Disclosure] How big is the danger of IE?
    ... The following link details compromised/malicious web servers infecting ... the web server configuration to append the script to all files served by ... method used to compromise the servers. ... switching to another browser may significantly reduce ...
    (Full-Disclosure)
  • RE: [Full-Disclosure] How big is the danger of IE?
    ... The following link details compromised/malicious web servers infecting ... the web server configuration to append the script to all files served by ... method used to compromise the servers. ... switching to another browser may significantly reduce ...
    (Full-Disclosure)