Forum Moderators: open

Message Too Old, No Replies

Javascript-generated links on site not working in Mac/Safari

please advice

         

rvwoezik

8:44 am on Apr 6, 2006 (gmt 0)

10+ Year Member



We have made a site which works fine on Windows/IE but in MAC/ safari links don't work.
I am not allowed to post url here so if you want to see the source please mail me.

Most of the links are build like this:

<a href="javascript:top.screenHandler('5_5','514','0','')" class="grijsklein">09-12-2005 Nieuw kinderdagverblijf in Multifunk</a>

and here is the function screenHandler and screenhandler:

function screenHandler(prnt, docid, objid, styleid,Xtra){
screenhandler(prnt, docid, objid, styleid,Xtra);
}

function screenhandler(prnt, docid, objid, styleid,Xtra){

if(typeof(dps_custom_screenhandler) == "function") {
dps_custom_screenhandler(prnt, docid, objid, styleid,Xtra);
return;
}

thePrnt = ((prnt==null)¦¦(prnt=='')¦¦(typeof(prnt)=='undefined'))?0:prnt;
docid = ((docid==null)¦¦(docid=='')¦¦(typeof(docid)=='undefined'))?0:docid;
objid = ((objid==null)¦¦(objid=='')¦¦(typeof(objid)=='undefined'))?0:objid;
styleid = ((styleid==null)¦¦(styleid=='')¦¦(typeof(styleid)=='undefined'))?0:styleid;
Xtra = ((Xtra==null)¦¦(Xtra=='')¦¦(typeof(Xtra)=='undefined'))?'':'&'+Xtra;

theurl = top.completeURL('http:\/\/www.ijburg.nl\/index.cfm?id='+docid+'&prnt='+thePrnt+'&objid='+objid+'&styleid='+styleid+'&jsCall=1&fromsid=main'+Xtra);
top.control.location.href = theurl;

//top.control.location.href = top.completeURL('http:\/\/www.ijburg.nl\/index.cfm?id='+docid+'&prnt='+thePrnt+'&objid='+objid+'&styleid='+styleid+'&jsCall=1&fromsid=main');

}

Please advice

pentascape

3:04 pm on Apr 6, 2006 (gmt 0)

10+ Year Member



Hmm, javascript written urls... I'm not a fan of them, but thats me. If you have to use them (maybe your working for someone etc), then I would probably havt to look at the source in context.