'Blog' Category
-
Feb212010
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 fileIn one of me recent post I’ve talked about how to setup a development environment in Firefox. One of the problems in developing firefox [...]
-
Feb162010
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 methodsJavaScript 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 [...] -
Feb092010
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 [...]
-
Jan312010
Testing Browsers Javascript Engine
Problog
This post cover the following topics:Song of the post
Code for testing Javascript engine
ResultsSong 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 [...] -
Jan252010
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 browsersWhen 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 [...]
Client side development is my passion, I breath and eat JavaScript. Combining my business and marketing experience with my development skills allows me to help individuals and businesses to maximize their development projects.