One link triggers two URLs?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ernie Soffronoff

    One link triggers two URLs?

    I'm working on a project that has a logout button, but (like most
    things) it's kind of a hack. I'd really like the one logout window to
    actually hit two logout URLs. I only need to display one window that
    a person has logged out, but would like to end the session in both.
    I'm thinking I could use something like

    <A HREF="/DesktopServlet? action=logout" onClick="(somet hing)">

    but I'm not sure what (something) would be. For argument sake, let's
    say the URL I want to also click on (that I don't care about
    displaying the contents of) is http://www.yahoo.com.

    Any ideas?

    Thanks for your help,
    --Ernie Soffronoff
    ernie.s@gmail.c om
  • Randy Webb

    #2
    Re: One link triggers two URLs?

    Ernie Soffronoff wrote:
    [color=blue]
    > I'm working on a project that has a logout button, but (like most
    > things) it's kind of a hack. I'd really like the one logout window to
    > actually hit two logout URLs. I only need to display one window that
    > a person has logged out, but would like to end the session in both.
    > I'm thinking I could use something like
    >
    > <A HREF="/DesktopServlet? action=logout" onClick="(somet hing)">[/color]

    Only one of those will be followed. Try it out and see :)
    [color=blue]
    > but I'm not sure what (something) would be. For argument sake, let's
    > say the URL I want to also click on (that I don't care about
    > displaying the contents of) is http://www.yahoo.com.[/color]

    Lets assume you have Page1.php that you are on, and it has a button to
    log out. That button would submit a form to logOutPage1.php which would
    then call logOutPage2.php *from the server*. Otherwise, you are doomed
    to failure.


    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • ernie.s@gmail.com

      #3
      Re: One link triggers two URLs?

      Doomed?!? Aie!

      Thanks for your reply, though. It made me think a little more about
      the problem, and I figured out a way to do somethng like what you
      suggested.

      --Ernie

      Comment

      Working...