Url typed

Url typed

am 10.08.2007 17:41:49 von Martin Walke

Hi all,

I have a application that runs an asp page launched by an onunload event of
a page. If the user types a URL into the address line of the browser, i need
to be able to redirect him to that page once i've finished with my onunload
script. Is there a variable/property that lets me get hold of that typed
UTL?

TIA
Martin

Re: Url typed

am 11.08.2007 01:51:21 von Bob Lehmann

Look at path_info and query_string in ServerVariables.

Bob Lehmann

"Martin Walke" wrote in message
news:eiLB5T22HHA.5740@TK2MSFTNGP04.phx.gbl...
> Hi all,
>
> I have a application that runs an asp page launched by an onunload event
of
> a page. If the user types a URL into the address line of the browser, i
need
> to be able to redirect him to that page once i've finished with my
onunload
> script. Is there a variable/property that lets me get hold of that typed
> UTL?
>
> TIA
> Martin
>
>

Re: Url typed

am 13.08.2007 10:29:28 von Martin Walke

Thanks Bob. That unfortunately gives me the URL of the page i've loaded due
to the unload event (in my case called, abandon.asp). I need the page name
of teh URL typed by the user that causes the unload event to fire.

Martin


"Bob Lehmann" wrote in message
news:%23ZWr1i62HHA.748@TK2MSFTNGP04.phx.gbl...
> Look at path_info and query_string in ServerVariables.
>
> Bob Lehmann
>
> "Martin Walke" wrote in message
> news:eiLB5T22HHA.5740@TK2MSFTNGP04.phx.gbl...
>> Hi all,
>>
>> I have a application that runs an asp page launched by an onunload event
> of
>> a page. If the user types a URL into the address line of the browser, i
> need
>> to be able to redirect him to that page once i've finished with my
> onunload
>> script. Is there a variable/property that lets me get hold of that typed
>> UTL?
>>
>> TIA
>> Martin
>>
>>
>
>

Re: Url typed

am 13.08.2007 12:54:06 von reb01501

Martin Walke wrote:
> Hi all,
>
> I have a application that runs an asp page launched by an onunload
> event of a page. If the user types a URL into the address line of the
> browser, i need to be able to redirect him to that page once i've
> finished with my onunload script. Is there a variable/property that
> lets me get hold of that typed UTL?

I doubt it, but you should verify by posting to a client-side scripting
group such as .scripting.jscript.
I'm thinking the address that triggers the onunload event is not visible
to the DOM until the new page loads into the browser.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Re: Url typed

am 13.08.2007 13:14:25 von Martin Walke

Good thought Bob.

Thanks for replying. Hadn't thought of grabbing the URL *before* passing
control to my ASP page. I'll give the group a try.

Martin

"Bob Barrows [MVP]" wrote in message
news:efQEGhZ3HHA.4880@TK2MSFTNGP03.phx.gbl...
> Martin Walke wrote:
>> Hi all,
>>
>> I have a application that runs an asp page launched by an onunload
>> event of a page. If the user types a URL into the address line of the
>> browser, i need to be able to redirect him to that page once i've
>> finished with my onunload script. Is there a variable/property that
>> lets me get hold of that typed UTL?
>
> I doubt it, but you should verify by posting to a client-side scripting
> group such as .scripting.jscript.
> I'm thinking the address that triggers the onunload event is not visible
> to the DOM until the new page loads into the browser.
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>