document.referrer..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frances Del Rio

    #1

    document.referrer..


    if I put alert(document. referrer) in code of a file that was linked from
    another it returns blank... pls, need to get document.referr er, don't
    why it's not working... read up on oreilly, don't know what I'm doing
    wrong.. thank you.. Frances


  • McKirahan

    #2
    Re: document.referr er..

    "Frances Del Rio" <fdr58@yahoo.co m> wrote in message
    news:398rrlF617 5toU1@individua l.net...[color=blue]
    >
    > if I put alert(document. referrer) in code of a file that was linked from
    > another it returns blank... pls, need to get document.referr er, don't
    > why it's not working... read up on oreilly, don't know what I'm doing
    > wrong.. thank you.. Frances[/color]

    Try "referer".

    Also, it may be blocked by many firewalls.


    Comment

    • kaeli

      #3
      Re: document.referr er..

      In article <398rrlF6175toU 1@individual.ne t>, fdr58@yahoo.com enlightened us
      with...[color=blue]
      >
      > if I put alert(document. referrer) in code of a file that was linked from
      > another it returns blank... pls, need to get document.referr er, don't
      > why it's not working... read up on oreilly, don't know what I'm doing
      > wrong.. thank you.. Frances[/color]

      Referer is spelled (incorrectly, but that's a long story):
      document.refere r

      Note that is should NEVER be relied upon. It is not accurate and can easily
      be spoofed. I spoof it all the time to get into stuff. ;)

      --
      --
      ~kaeli~
      Not one shred of evidence supports the notion that life is
      serious.



      Comment

      • Frances Del Rio

        #4
        Re: document.referr er..



        McKirahan wrote:
        [color=blue]
        > "Frances Del Rio" <fdr58@yahoo.co m> wrote in message
        > news:398rrlF617 5toU1@individua l.net...
        >[color=green]
        >>if I put alert(document. referrer) in code of a file that was linked from
        >>another it returns blank... pls, need to get document.referr er, don't
        >>why it's not working... read up on oreilly, don't know what I'm doing
        >>wrong.. thank you.. Frances[/color]
        >
        >
        > Try "referer".
        >
        > Also, it may be blocked by many firewalls.
        >[/color]

        thank you.. I did try "referer", it returns "undefined" .. don't know
        about the firewall thing since here at work we use referrer checking
        w/asp and it works.. needed to do client-side.. but found another
        solution for what I needed to do.. however, still would like to know
        why this thing isn't working b/c sooner or later will need to use
        client-side again.. thank you again.. Frances

        Comment

        • Mick White

          #5
          Re: document.referr er..

          kaeli wrote:
          [color=blue]
          >
          > Referer is spelled (incorrectly, but that's a long story):
          > document.refere r[/color]

          "document.refer rer" works for me.

          [...]
          Mick

          Comment

          • RobB

            #6
            Re: document.referr er..

            I always use "document.refer rrrrer". Very nice.

            Comment

            • kaeli

              #7
              Re: document.referr er..

              In article <lOIXd.86561$H0 5.45364@twister .nyroc.rr.com>,
              mwhite13BOGUS@r ochester.rr.com enlightened us with...[color=blue]
              > kaeli wrote:
              >[color=green]
              > >
              > > Referer is spelled (incorrectly, but that's a long story):
              > > document.refere r[/color]
              >
              > "document.refer rer" works for me.
              >
              > [...][/color]


              Sorry, the header is called referer.
              Perhaps javascript does use the correct spelling to access it. My bad.

              http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

              --
              --
              ~kaeli~
              Do not taunt Happy Fun Ball!



              Comment

              • Randy Webb

                #8
                Re: document.referr er..

                Frances Del Rio wrote:[color=blue]
                >
                > if I put alert(document. referrer) in code of a file that was linked from
                > another it returns blank... pls, need to get document.referr er, don't
                > why it's not working... read up on oreilly, don't know what I'm doing
                > wrong.. thank you.. Frances[/color]

                SWAG: You are testing it in IE offline. IE does not report the referrer
                property when testing a page offline.

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

                Comment

                • Frances Del Rio

                  #9
                  Re: document.referr er..



                  Randy Webb wrote:[color=blue]
                  > Frances Del Rio wrote:
                  >[color=green]
                  >>
                  >> if I put alert(document. referrer) in code of a file that was linked
                  >> from another it returns blank... pls, need to get document.referr er,
                  >> don't why it's not working... read up on oreilly, don't know what I'm
                  >> doing wrong.. thank you.. Frances[/color]
                  >
                  > SWAG: You are testing it in IE offline. IE does not report the referrer
                  > property when testing a page offline.[/color]

                  this is interesting.. had no idea and hadn't thought of that... I WAS
                  testing locally, and I need it for a CD.. referrer URL would be locally
                  from same CD.. oh well.. many thanks to all for your responses... Frances

                  Comment

                  • Matthew Lock

                    #10
                    Re: document.referr er..

                    Some virus checker/security/privacy software packages like some
                    versions of Norton completely block the browser sending the referrer
                    too.

                    Comment

                    Working...