Buy me a Beer
Web 2.0 Training
 
headermask image

Random Header :: Unpredictably Exciting

category archive listing Category Archives: JavaScript

Most common JavaScript mistakes and their solutions

JavaScript has come a long way from being used just as Client Side Form Validator to becoming the backbone of Web 2.0 rich web applications. In the current scenario, every web developer have to learn JavaScript as there is hardly any Web 2.0 application which does not implement JavaScript.
In my opinion followings are the most [...]

A simple shortcut in Javascript !

document.getElementById(‘id_of_element’).value
How many of you tried to use this JavaScript’s case sensitive way to access an element ? Have you ever wished for a smaller code to access the element ? If yes… I am here to grant your wish with this simple function.
Just add the following line on the top of your JavaScript code:
function $(o){return [...]