14.09.05

Error on Bloglines shows code

I read a lot of blogs and news online aggregated with Bloglines and I like the service a lot.
Today my reading was disturbed by the following code snippets:

var siteList = new Array(); function SiteInfo( items, dir, iconDir ) { this.items = items; this.dir = dir; this.iconDir = iconDir; } function getElById(idVal) { if (document.getElementById != null) return document.getElementById(idVal) if (document.all != null) return document.all[idVal] alert("Problem getting element by id") return null } function feedError( errorCode ) { window.open('/feederror?ErrorCode='+errorCode,'300x300','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=300,height=300'); } var agt = navigator.userAgent.toLowerCase(); var is_ie = (agt.indexOf('msie') != -1); var is_ie5 = (agt.indexOf('msie 5') != -1); /* * * send a GET behind the scenes to url * */ function SendRequest(url) { var xmlhttp = CreateXmlHttpReq(DummyHandler); ++uniqnum_counter; XmlHttpGET(xmlhttp, url + "&rand=" + uniqnum_counter); } function CreateXmlHttpReq(handler) { var xmlhttp = null; if (is_ie) { var control = (is_ie5) ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP"; try { xmlhttp = new ActiveXObject(control); xmlhttp.onreadystatechange = handler; } catch(e) { alert("You need to enable active scripting and activeX controls"); } } else { xmlhttp = new XMLHttpRequest(); xmlhttp.onload = handler; xmlhttp.onerror = handler; } return xmlhttp; } var uniqnum_counter = (new Date).getTime(); function DummyHandler() { } function XmlHttpGET(xmlhttp, url) { xmlhttp.open('GET', url, true); xmlhttp.send(null); } function doSort( siteid, subid ) { var numItems; var tSite; var tItem; var i; var eleIndex; var ele; var aimg; var atitle; var dir; var iconDir; dir = siteList[siteid].dir; iconDir = siteList[siteid].iconDir; tSite = siteList[siteid].items; numItems = tSite.length; if( dir == 0 ) { for( i=numItems-1,eleIndex=0; i>=0; i--, eleIndex++ ) { ele = getElById('siteItem.'+siteid+'.'+eleIndex); ele.innerHTML = tSite[i]; } siteList[siteid].dir = 1; } else { for( i=0,eleIndex=0; iT-Online startet mit dedizierten Servern"; itemText+="

"; itemText+="By Golem.de"; itemText+="
"; itemText+="

Auch T-Online steigt in das Geschäft mit dedizierten Servern ein und setzt dabei auf Hardware von Dell. Dabei stehen Root-, Windows- und Managed-Server zur Auswahl, die Preise beginnen bei 49 Euro im Monat, inklusive jeweils vier IP-Adressen.
"; itemText+="

"; itemText+="
"; itemText+="

"; itemText+="

"; itemText+="
"; itemText+="

* "; itemText+="Keep New:
* "; itemText+="Posted on: Wed, Sep 14 2005 10:34 AM
* "; itemText+="Email This
* "; itemText+="Clip/Blog This
"; itemText+="

"; itemList[0] = itemText; itemText=""; itemText+="


Looks like javascript, which doesn't work. :(
I hope they'll fix it.

Posted by Karsten at 14.09.05 14:34 | TrackBack
Comments
Post a comment









Remember personal info?