A Blog of Very Little Brain

'What does Crustimoney Proseedcake mean?' said Pooh. 'For I am a Bear of Very Little Brain, and long words Bother me.'

A personality quiz

leave a comment »

Not one of those “What kind of Water Fowl are you?” quizzez (Quizi?), though.

Assume you’re using one of those RSS aggregatos such as, say, Bloglines. And assuming that instead of the usual bunch of stuff that appears in the main window, the site gives you this:

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',
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

Do you:
A: Refresh the page
B: Start reading the JavaScript code
C: Start reading the code and try to find what went wrong
D: Copy the code to another text editor as well as the whole page’s source and go over them both.

If you answered anything else than A, man, we need a life.

Written by Erez

Friday, December 23, 2005 at 8:45

Posted in Programming

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: