473,549 Members | 5,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

document.referr er..


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
Jul 23 '05 #1
9 14385
"Frances Del Rio" <fd***@yahoo.co m> wrote in message
news:39******** *****@individua l.net...

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


Try "referer".

Also, it may be blocked by many firewalls.
Jul 23 '05 #2
In article <39************ *@individual.ne t>, fd***@yahoo.com enlightened us
with...

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


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.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3


McKirahan wrote:
"Frances Del Rio" <fd***@yahoo.co m> wrote in message
news:39******** *****@individua l.net...
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

Try "referer".

Also, it may be blocked by many firewalls.


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

Jul 23 '05 #4
kaeli wrote:

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


"document.refer rer" works for me.

[...]
Mick
Jul 23 '05 #5
I always use "document.refer rrrrer". Very nice.

Jul 23 '05 #6
In article <lO************ *******@twister .nyroc.rr.com>,
mw***********@r ochester.rr.com enlightened us with...
kaeli wrote:

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


"document.refer rer" works for me.

[...]

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!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #7
Frances Del Rio wrote:

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


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
Jul 23 '05 #8


Randy Webb wrote:
Frances Del Rio wrote:

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


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


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

Jul 23 '05 #9
Some virus checker/security/privacy software packages like some
versions of Norton completely block the browser sending the referrer
too.

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
13202
by: Hugo Sousa | last post by:
Hello, I have a page that cannot be accessed by typing is url. It should only be accessed by a link in another web page. The following scrip works fine: <script> <!-- var validreferrals=new Array() validreferrals="http://pdc/test/index.htm" validreferrals="http://pdc/test/index2.htm"
9
3055
by: goks | last post by:
I'm using document.referrer method for tracking visits on my site. But it seems that, when someone finds my site with google, this method returns only: "google.com/search?q=xxxxx" (good) or "google.com/search?hl=en" (bad) or "google.com/search?sourceid=navclient" (bad) That meens, it returns only first parameter sent to google. "hl"...
1
2979
by: kuok benny | last post by:
Hi, I am trying to use the document.referrer to get the referrer of my home page. Occationally, I get the value of 'blockedReferrer'. Actually how this happen, how the client blocked the function of document.referrer. I just want to verify how this could be done within the browser e.g. IE, Netcape and so on... what Internet option have...
2
2364
by: Goober | last post by:
I have to determine the document.referrer of the individual coming to my site. I want to send everyone not coming from one of those sites to an alternate location (The names below are just used as examples). I want to match on one of those names anywhere in the document.referrer. In the main program I call a subroutine like this: <script...
2
10270
by: X l e c t r i c | last post by:
Hi, I'm trying to put the last URL visited to a text input using history.previous for WebTV (because I can't get document.referrer to work with WebTV) and document.referrer for PC. This is for my Web Resources page. Where if I go straight to it from an image that I want to edit with an online imaging tool, or if I go straight to it from a...
1
2761
by: Mike Dee | last post by:
Hi All - I'm having a strange problem I'm wondering if anyone can shed some light on. When I use ASP or ASP.NET code to get the referrer information from the server side, it comes back as null. However in these same cases document.referrer returns the valid referrer. What could cause this? In other words, with the following line: ref =...
5
11003
by: Nospam | last post by:
does anyone know if there is anything wrong with this code? <SCRIPT LANGUAGE="JavaScript">document.referrer.indexOf("http://www.example.com") != -1){ document.write("http://www.example.com/image1.jpg")} </SCRIPT> ?
1
2135
by: gocre8 | last post by:
hope someone can advise! . . . i'm using this code... <SCRIPT LANGUAGE="JavaScript"> document.write("<INPUT type=hidden NAME=referrer VALUE=" + 'document.referrer' + ">"); </SCRIPT> to generate a hidden field to be submitted with a php formmail script, so i know from which url the visitor has filled in the form. this works well,...
0
7455
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7723
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7962
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7480
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5373
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
1949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.