Archive for the ‘javascript’ Category

Firebug: avoid errors in other browsers

Posted at 6:10 pm in development, javascript

Small snippets or full-featured libraries - if you develop in Javascript and don’t have Firefox and Firebug

installed - you’d better get them now.

Firebug is a Firefox extension which brings several top-notch inspection/debugging features. You can inspect DOM, change CSS run-time and so on.

Aside DOM, CSS and Net capabilities Firebug features a very good debugger and some very useful logging capabilities. For example in your scripts you could write:

console.log ( "result is:", var );

and get the javascript variable “var” dumped into Firebug console. Read the rest of this entry »

 
no comments

Written by Stefano Forenza on April 19th, 2007

“document.write” is EVIL ! really !

Posted at 5:29 pm in javascript

Some days ago, our ads engine was behaving the (very) wrong way.Randomly, all of our sites were taking a 1-2 minutes to load a page. It turned out some of our insertionist server was down, thus delaying request’s response for ages, and -afterwards- giving up.

It turned out our banner service provider was using document.write to render the banners on the page. How bad ! Read the rest of this entry »

 
no comments

Written by Stefano Forenza on February 25th, 2007