Enhancing scalability & maintainability of your JavaScript/jQuery code – JS Design patterns 31 July 2010 NovoGeek (0) Are you building a huge, jQuery-ASP.NET web application, which is subjected to a lot of global code changes in your client script? If yes, you should probably consider the below design pattern, which would help you have a better control on code execution. Maintainability problem with large chun... [More]
Understanding callbacks for chaining JavaScript methods 30 June 2010 novogeek (0) In continuation with my previous article on creating a chainable JavaScript toolbox, I would like to show how we can leverage JavaScript callbacks for enhanced functionality. As said previously, this is how libraries are designed and the concept is nothing new. This is just an attempt to explain c... [More]
Create a jQuery like chainable JavaScript toolbox specific to your project 27 May 2010 novogeek (0) "Global variables are evil" is what the JavaScript Guru Douglas Crockford says, as they are the source of unreliability and insecurity. How elegant your code would be if you wrap your entire project's code under a single global namespace? [Did you know? The entire JavaScript code of Yaho... [More]
Overriding jQuery/JavaScript functions using closures 27 February 2010 novogeek (0) Function overriding is an important feature in any programming language. In advanced languages like .NET, Java, it can be accomplished easily through a set of key words. But this is not the same in JavaScript and this is where closures come to your rescue. This article is not something new. Infact... [More]
Scope problems with JavaScript setInterval & setTimeout? Use closures! 08 February 2010 NovoGeek (1) This article gives explains scope problems faced with JavaScript setTimeout & setInterval and provides solution by using closures. [More]
Love JavaScript design patterns, love your jQuery code even more! 29 October 2009 NovoGeek (2) The goal of this article is to educate budding jQuery developers (who do not have much exposure to JavaScript), to write clean, readable, maintainable code. This is in fact, a pointer to articles written by several JavaScript gurus. For a jQuery developer, who does not have good expertise ... [More]
Using .NET’s Register Script methods with jQuery’s $(document).ready() 24 July 2009 NovoGeek (2) In ASP.NET web apps, most of the times we would need to call JavaScript functions in page_load event of code behind, for various valid reasons. In such scenarios, we simply use .NET’s Register Script methods for emitting JavaScript code, which is absolutely fine. If you are using jQuery, ... [More]