history in a variable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vincenzo Conti

    #1

    history in a variable

    Hi to all.
    I have this problem.
    I need to check what is machine/address from which I arrived in a html
    page.
    That is I'd like to store in a variable the result of history.go(-1)
    url as a String and parse it in order to get machine:

    and in case of machine1 I have to redirect to url1
    otherwise redirect to url2.
    Anyone can help me to code a jsp or other that get this ?

    Thank you very much.

    Vincenzo
  • Dennis M. Marks

    #2
    Re: history in a variable

    In article <f5eb69e2.04041 41555.2f00599b@ posting.google. com>, Vincenzo
    Conti <conti@openacce ss.it> wrote:
    [color=blue]
    > Hi to all.
    > I have this problem.
    > I need to check what is machine/address from which I arrived in a html
    > page.
    > That is I'd like to store in a variable the result of history.go(-1)
    > url as a String and parse it in order to get machine:
    > http://machine1/bla/bla/index.html
    > and in case of machine1 I have to redirect to url1
    > otherwise redirect to url2.
    > Anyone can help me to code a jsp or other that get this ?
    >
    > Thank you very much.
    >
    > Vincenzo[/color]
    document.referr er returns the calling URL.

    --
    Dennis M. Marks

    Replace domain.invalid with dcsi.net


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

    Comment

    Working...