View Full Version : document.referrer query
Wayne
06-26-2002, 09:09 AM
Does anyone know if document.referrer runs only on the pc or does it get something from the server. I have been trying to use a piece of js from 'Javascript Kit' and though it works fine for them I can't get the code to work for me on my own server.
joh6nn
06-26-2002, 12:25 PM
document.referrer doesn't work on the pc, i don't think (been a while since i've used it), and it only really works properly, if you click on a link. if you're using any sort of redirects ( eg, window.location = url; ), it won't work.
Wayne
06-27-2002, 01:03 AM
Thanks John. I have been using a to the page (in testing at home as well as on the web) but it still doesn't seem to want to work right.
Wayne
06-27-2002, 11:37 PM
Thanks Dave - I'll be getting onto my server people today to try to get them to change the settings for this, though I think that it could be a 'big ask'. What more can I do?
bcarl314
06-28-2002, 01:07 PM
Can you set up a server locally for testing? That's al you really need to get the referrer to go. If your testing in a browser with a file (ie the address bar says : c:\myDocs\myweb\index.html) the referrer does nothing, but if your testing on a server (ie http://localhost/myweb/index.html) it should go on a PC.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.