IE, 'file:' URLs, query-strings, javascript -- Who's the pro?

Gordon Mohr gojomo@usa.net
Sat, 25 May 2002 20:17:15 -0700


Yes, no luck. 

I suspect that if any sort of encoding/escaping is necessary it'd be 
MS-DOS command-line style (assuming such a thing exists), rather than 
URL-style. (In proper URL interpretation, the '?' has to be unencoded
to have its special meaning.)

- Gordon

----- Original Message ----- 
From: "Mr. FoRK" <fork_list@hotmail.com>
To: <fork@xent.com>
Sent: Saturday, May 25, 2002 8:10 PM
Subject: Re: IE, 'file:' URLs, query-strings, javascript -- Who's the pro?


> Have you tried encoding it? like %3f or whatever?
> 
> ----- Original Message ----- 
> From: "Gordon Mohr" <gojomo@usa.net>
> To: <fork@xent.com>
> Sent: Saturday, May 25, 2002 3:00 PM
> Subject: IE, 'file:' URLs, query-strings, javascript -- Who's the pro?
> 
> 
> > Hello? Yes, is this the FoRK any-computer-question-answered hotline?
> > OK, great.
> > 
> > I'm trying to figure out if there's a way to clear up an inconsistency
> > with how IE handles "query-strings" at the end of "file:" URLs it is
> > passed from external launches.
> > 
> > That is:
> > 
> >     iexplore file:///C:/test.html?query
> > 
> > ...works as you might hope, opening the given HTML file, preserving
> > the "?query" part in the location bar, for Javascript inside the page
> > to see.
> > 
> > However, the more generic:
> > 
> >     rundll32 url.dll,FileProtocolHandler file:///C:/test.html?query
> > 
> > ...gives an error, "Unable to Open" the target file.
> > 
> > Quoting the target helps slightly:
> > 
> >     rundll32 url.dll,FileProtocolHandler "file:///C:/test.html?query"
> > 
> > ...opens the given HTML file, but loses the "?query" part.
> > 
> > Is there any way to escape or otherwise preserve that '?' character
> > when using the "rundll32 url.dll,FileProtocolHandler" approach?
> > 
> > Help me Obi-Wan FoRKnobi, you're my only hope.
> > 
> > - Gordon
> > 
> > 
> > 
> > 
> > 
> > 
> > http://xent.com/mailman/listinfo/fork
> > 
> 
> 
> http://xent.com/mailman/listinfo/fork