Some admin (for good of course) uses Squid’s setting to block bad sites. But sometimes, the good ones also got blocked. Actually, to prevent good sites blocked, there’s also a good-site-list. Thanks to firefox developer and greasemonkey extension developer, we could do some tricks. I try to do a simple hack which rely on the good-site-list. The idea is to rewrite any URL with an extra fake parameter, one of the good site, which very likely added by the administrator to the good list. Well, use the script at your own risk, you’re responsible for whatever you do with that script. Happy Browsing!
December 2005
Tue 27 Dec 2005
Mon 26 Dec 2005
I spent hours trying to figure out why even the simplest code won’t run on Internet Explorer. I always got the “Object doesn’t support this property or method” error. I’ve even tried both innerHTML and DOM, and still, IE isn’t happy. After those long hours, I found a simple fix that works.
I got more and more curious because I’ve written another page (4 chained drop down list) with xajax and it run flawlessly on either Firefox, Internet Explorer and Opera. Tired of looking my codes, I decide to try something simple on a separate page.
...
$objResponse->addScript("alert('a');");
...
But it still won’t work. Luckily (and why this idea doesn’t came in the first place), I use the Web Developer Toolbar on Firefox, where you could just click Infomation > View Javascript. Trying to found the line where IE mention the error. After removing some unused lines, i found the suspect.
Line 954: for (i=0; i<xml.childNodes.length; i++)
Uninitialized variable ‘i’. After simply changed the code to:
Line 954: for (var i=0; i<xml.childNodes.length; i++)
It’s now up and running, on IE too. Hope this post may help others with similar problem and save others time of digging for the bug. I’ve also sent this topic to the xajax Forums, you can discuss it there, too. Happy Coding!
Mon 12 Dec 2005
Disclaimer:
Di bawah ini adalah pendapat personal, tidak terkait dengan institusi manapun.
Dukung kebebasan berpendapat! … Artikelnya sudah dihapus…
Kebebasan berpendapat… Sebuah blog entry yang hanya ingin mengungkapkan bahwa Foto Mayangsari adalah rekayasa, seperti tertulis jelas di Judul Post-nya, ternyata menimbulkan masalah. Ah, apakah masih ada orang yang tidak bisa membedakan mana yang lelucon dan mana yang hinaan? Atau… jangan-jangan orang tersebut hanya memanfaatkan orang lain untuk popularitas dirinya.
Referensi: