Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl called through a javascript vs. netscape browsers

Status
Not open for further replies.

steam

ISP
Jul 17, 2000
51
IT
Hello

------perl code--------
$ref="$ENV{'HTTP_REFERER'}";
print qq(
document.write('hello:$ref');
-----------------------
called with:

<script language=&quot;JavaScript&quot; src=&quot;any.cgi&quot;></script>

It works with IE but Netscape prints only
-------
hello:
-------
It does not send the referer!
:(
Ideas?
 
Some browsers do not set the HTTP_REFERER environment variable. You may be able to get it from REFERER_URL, but that may not be set either. It's not a good idea to rely on either of them being set. Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Not sure if it will help or not. Try type=&quot;text/javascript&quot; in your javascript tag. Never know. Hope it helps.

By the way what server are you using?

Gary &quot;xutopia&quot; Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top