View Full Version : CJPRO javascript error
Madhouse
02-08-2001, 04:50 AM
Hope someone has a solution to this problem. !
I have installed CJPRO v1.10x3 on a free host as my own host doesn't allow me to run CGI.. so i cannot use the index.cgi. i tried the javescript thing but when i try to load the page in a IE 5.5 it loads the page 'But with errors'..
Any ideas anyone??
Put up a url. Maybe it can be save.
I have the SAME error, and because of it, my script isn't tracking hits correctly.
Could some one post their java code that actually works? I know mine isn't working, my CJPro shows like 0 in, but sexlist says i'm pulling about 500 hits per hour. ANY help will be VERY much apreciated!
it's working very well!
<script language="JavaScript">
<!--
refer=""+escape(document.referrer);
function isNotDefined(v) {return((v=="undefined")?true:false);}
if ((isNotDefined(refer)==true)||(refer=="")||(refer=="bookmarks")) {refer="Bookmark";}
else {wl=window.location.href;
if(wl.lastIndexOf('/')!=(wl.length-1)) {wl=wl+"/";}
tdr=document.referrer;
if(tdr.lastIndexOf('/')!=(tdr.length-1)) {tdr=tdr+"/";}
if(tdr==wl) {refer="na";}}
u="refer="+refer;
if(document.bgColor!=null) {
itag="<font color=\""+document.bgColor+"\">";
} else {itag=""; }
itag=itag+"<img height='1' width='1' border='0' alt='' "+"src=\"/cgi-bin/cjpro/cjproin2.cgi?"+u+"\">";
if(document.bgColor!=null) {itag=itag+"</font>";}
document.write(itag+"\n");
//-->
</script>
Madhouse
02-09-2001, 01:49 PM
BFFR, Thanks.. worked this time. http://bbs.adultwebmasterinfo.com/ubb/smile.gif dont know what caused the error .. will look into it.
Thanks again
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.