Design patterns in JavaScript: Singleton |
 |
 |
|
Written by Arash Karimzadeh |
Friday, 13 February 2009 07:22 |
Singleton pattern is a very popular pattern.It is used when you want a unique instance in your application to handle a functionality and it provides you with a common access point to that unique instance.
You can implement Singleton pattern in javascript in different ways. Here we try to design it the way you usually do in object oreinted language such as C#.
Tags: Design Patterns | JavaScript
|
Last Updated on Thursday, 19 February 2009 20:16 |
Read more... |
Written by Arash Karimzadeh |
Tuesday, 13 January 2009 16:26 |
We can extended jQuery Editable plugin by extending its $.editableFactory. currently it supports text, password, textarea and drop-down. Let's see how we can extend it to support checkbox.
You can download the lastest version here and follow these steps to understand how we can extend it.
At this time jQuery Editable 1.1.0 is released and we are using it during our development. I am sure when you are reading this article newer versions of Editable are released and this sample must be compatible with those too.
Tags: JavaScript | jQuery | Plugin
|
Last Updated on Monday, 27 September 2010 12:45 |
Read more... |
JavaScript Prototype, Inheritance and Instance and Objects |
 |
 |
|
Written by Arash Karimzadeh |
Wednesday, 11 February 2009 11:56 |
You sure have seen many codes written in JavaScript using functions, new keyword, objects, assigning object to others, calling a function with new keyword, and adding property to functions. Wow, It is weired language comparing to others.
Let's recheck all these and discuss about them.
Tags: JavaScript
|
Last Updated on Friday, 13 February 2009 07:48 |
Read more... |
|
Written by Arash Karimzadeh |
Tuesday, 30 December 2008 19:24 |
jQuery's Ajax methods are great. They are easy to use. You passed the data to server and in callback method you can use the data which server provided for you. This Asynchronous mechanism is great but sometimes you need to access some variables which you set in your main method before callback. Here we are going to discover how it is possible.
Tags: Ajax | JavaScript | jQuery
|
Last Updated on Tuesday, 20 January 2009 15:56 |
Read more... |
|
|
|
<< Start < Prev 1 2 3 Next > End >>
|
Page 3 of 3 |