Archive

Archive for the ‘Javascript’ Category

Advanced javascript tutorial

November 4th, 2008

http://ejohn.org/apps/learn/ - A really good advanced javascript tutorial.
If you want to be able to understand the code below, than this tutorial is the right thing.

1
2
3
4
5
6
7
8
9
10
// The .bind method from Prototype.js
Function.prototype.bind = function(){
  var fn = this, 
  args = Array.prototype.slice.call(arguments),
  object = args.shift();
  return function(){
    return fn.apply(object,
      args.concat(Array.prototype.slice.call(arguments)));
  };
};

Share/Save/Bookmark

Javascript, Links , ,

Javascript Environment Tips

October 10th, 2008

One may think that if he or she wants to work “professionally” with Ajax and Javascript that he will gonna need a comprehensive IDE that enables “fancy” features.

But, in this case, you can do everything well and with great efficiency if you stick to Firebug and its built-in Javascript debugging tools. Of course, you should have a text editor with syntax highlighting at least. (We recommend Notepad++).

The instructions on how to use Firebug for debugging Javascript can be found here.

Share/Save/Bookmark

Javascript , , , ,