'Blog' Category

  • Feb
    21
    2010

    Debugging Firefox Extension Using Log File

    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 developing firefox [...]

  • Feb
    16
    2010

    Object Oriented Javascript

    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 its interest no matter what. Back in the [...]

  • Feb
    09
    2010

    Setting a Nested Object with a String Key

    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 , obj );

    will [...]

  • Jan
    31
    2010

    Testing Browsers Javascript Engine

    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 post, or i just kept listening [...]

  • Jan
    25
    2010

    Using caller and callee for Stack Trace

    Problog
    This post cover the following topics:

    arguments object
    caller object
    callee object
    introduce a simple stack trace function for all browsers

    When i wad first introduced to the arguments object and its caller property i thought about all the cool things i can do with it (yes i’m a geek).
    What is arguments Object
    The arguments object is accessible within the body [...]

 
Powered by Wordpress and MySQL. Theme by openark.org