Url typed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Walke

    Url typed

    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


  • Bob Lehmann

    #2
    Re: Url typed

    Look at path_info and query_string in ServerVariables .

    Bob Lehmann

    "Martin Walke" <martin.walke_n o_spam@vega_dot _co_dot_ukwrote in message
    news:eiLB5T22HH A.5740@TK2MSFTN GP04.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
    >
    >

    Comment

    • Martin Walke

      #3
      Re: Url typed

      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" <nospam@dontbot herme.zzzwrote in message
      news:%23ZWr1i62 HHA.748@TK2MSFT NGP04.phx.gbl.. .
      Look at path_info and query_string in ServerVariables .
      >
      Bob Lehmann
      >
      "Martin Walke" <martin.walke_n o_spam@vega_dot _co_dot_ukwrote in message
      news:eiLB5T22HH A.5740@TK2MSFTN GP04.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
      >>
      >>
      >
      >

      Comment

      • Bob Barrows [MVP]

        #4
        Re: Url typed

        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.jscr ipt.
        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.


        Comment

        • Martin Walke

          #5
          Re: Url typed

          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]" <reb01501@NOyah oo.SPAMcomwrote in message
          news:efQEGhZ3HH A.4880@TK2MSFTN GP03.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.jscr ipt.
          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.
          >
          >

          Comment

          Working...