Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Browsers / Internet Explorer / June 2004



Tip: Looking for answers? Try searching our database.

http referer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Troy - 25 Jun 2004 19:35 GMT
Hi all,

 I have a hit counter that is utilized through a page on our webserver
to track statistics on our clients internally.  However, on the
hitcounter page i do a server side re-direct on our server to the new
URL.  This does not however pass the HTTP_REFERER variable to our
clients homepage as the user didn't actually click an anchor tag with an
HREF to the specific URL.  We *need* to do this - so what we want to do
is still use the internal stats we keep, but some how pass the
HTTP_REFERER info via javascript or something to our clients site?  From
my research so far - this does not seem possible.  I've even tested with
a META refresh, javascritp document.location.href redirect and so on.  
All of them will not pass the HTTP_REFERER unless the user actually
clicks the <a> tag with the exact URL in it.  Any insight on this would
be greatly appreciated.  Thanks!
Signature


Regards,

Troy

ABejo@ChronosSystems.com - 28 Jun 2004 08:24 GMT
> Hi all,
>
[quoted text clipped - 3 lines]
> URL.  This does not however pass the HTTP_REFERER variable to our
> clients homepage as the user didn't actually click an anchor tag with an

> HREF to the specific URL.  We *need* to do this - so what we want to do
> is still use the internal stats we keep, but some how pass the
> HTTP_REFERER info via javascript or something to our clients site?  From

> my research so far - this does not seem possible.  I've even tested with

> a META refresh, javascritp document.location.href redirect and so on.
> All of them will not pass the HTTP_REFERER unless the user actually
> clicks the <a> tag with the exact URL in it.  Any insight on this would
> be greatly appreciated.  Thanks!

What if you did something like this:

<html><head>
<script event="onreadystatechange" for="document" language="javascript">
       if(document.readyState == 'complete') {
               redirectLink.click();
       }
</script>
</head>
<body>
       <a href="other_page.asp">a</a>
</body>

I haven't tried it though, it's just an idea.

Gus
Agoston Bejo - 28 Jun 2004 10:09 GMT
> > Hi all,
> >
[quoted text clipped - 31 lines]
>
> Gus

Yes, now I've tried it out, it actually works, but the example is wrong,
sorry:
<a href="other_page.asp" id="redirectLink">a</a>

This way HTTP_REFERER will contain the URL of the page where the above link
resides.

Gus
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.