'Blog' Category

  • Javascript Inheritance

    March 22, 2010

    In this post I will cover the following topics: Understanding how the prototype works Using the prototype for inheritance The Inherit Function Overriding methods In one of my previous post i talked about Object Oriented Javascript , where i mostly talked about class encapsulation. In this post i would like to advance to another important [...]

  • Debugging Firefox Extension Using Log File

    February 21, 2010

    Problog In this post I will cover the following topics: Understanding debug requirements Using the Mozilla preferences service to store debug mode Using Mozilla file I/O to write debug messages into a file In one of me recent post I’ve talked about how to setup a development environment in Firefox. One of the problems in [...]

  • Object Oriented Javascript

    February 16, 2010

    Problog This post will cover the following topics: Javascript is not a toy! How to define a class How to set Publich methods How to set Private variables How to set static methods JavaScript for Dummies? Programming languages are like football teams – it doesn’t matter which you like, you will support it and protect [...]

  • Setting a Nested Object with a String Key

    February 9, 2010

    In one of the projects that I’m working on I had to setup a property of an object in a general way. In order to do so, i wrote the following function: function setValue(key,value,obj){ obj[key.toString()] = value; } so calling the functuion like so var obj = { a:1,b:2,c:3 }; setValue( "a" , 2 , [...]

  • Testing Browsers Javascript Engine

    January 31, 2010

    Problog This post cover the following topics: Song of the post Code for testing Javascript engine Results Song of the Post – James Blackshaw – Cross I decided to combine my two favorite things – javascript and music. So I’ll try to add a song which either i listened to during the writing of the [...]

 
Powered by Wordpress and MySQL. Theme by openark.org