Friday, December 14, 2012

Tutorial – Javascript Namespaces Extension

Javascript Namespaces may be very useful. Suppose you want to make a small framework (like jQuery) for your UI (that’s how my idea started), you won’t like to make lots of functions like MakeProgress or MakeButton, you may want to do something like $ ui.Progress or $ ui.Button… In this case, you can use the namespaces to do that in a very easy way. In this tutorial, I teach more how to extend these namespaces by using external files, so you can make your UI main file and add an file for forms, other for menus, etc. For more informations on Javascript namespaces, check this article by “VectorX”, at CodeProject: www.codeproject.com For these that want to know how I recorded my screen, I used CamStudio, XFire codec with maximum quality and 200 frames per second. The AVI file (recording) had 729MB in size, and the final MP4, had 75.4MB.

These are for organizing data in sets. I use a pretty lame example but you should start with something simple. A use for an array might be a bunch of user emails assigned to a username. This is basic language stuff you have to know if you wanna get good, practice practice! jream.com


Source : scriptnuke[dot]com

0 comments:

Post a Comment