[Mycroft] Mycroft: [Inputtags] feedback from JB

notes at mozdev.org notes at mozdev.org
Wed Mar 22 15:22:57 EST 2006


http://mycroft.mozdev.org/deepdocs/inputtags.html#c77

oeps, it's supposed to be (replace the < and >)
javascript:var s='%s';
url='http://link2.map24.com?lid=932c6909&maptype=JAVA&street0=%s&city0=%s&country0=nl&csl=1&sourceid=Mozilla-search';
t='';
qc=0;
chunks=url.split('%s');
for(i=0;i&lts.length;i++){
if(s.charAt(i)=='"')
qc=qc^1;
t+=((s.charAt(i)==''&&qc)?'^':s.charAt(i));
}
args=t.split(/\s/);
nurl='';
for(i=0;i<chunks.length;i++){
nurl+=chunks[i];
if(args[i]!=undefined){
args[i]=args[i].replace(/\^/g,' ');
nurl+=args[i];
}else{
nurl+='amsterdam';
}}
location.replace(nurl,'<BR>');

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1


More information about the Mycroft mailing list