Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Creating Reusable jQuery Templates in Visual Studio

If you're already using jQuery in your ASP.NET and Ajax development, building reusable jQuery templates can make you even more productive.


advertisement

JQuery, the open source, cross-browser JavaScript library, simplifies event handling, animations and general development of responsive Web applications. The official jQuery Web site states: "JQuery is designed to change the way that you write JavaScript." Released in 2006 by John Resig, jQuery has since become very popular for its versatility, ease of use and numerous plugins, which extend the jQuery library.

The key features of jQuery include:

  • Browser independence: jQuery is supported by most browsers.
  • Simplified event handling model: The excellent, easy-to-use jQuery event handling model minimizes code and is consistent across all browsers. The event object is cross-browser and normalized, and one event object is always passed as a parameter to an event handler.
  • Seamless extensibility: JQuery supports extensibility through an easy to use plugin API.

Getting Started with jQuery

To get started with jQuery, you should have the following installed in your system:

  • Visual Studio 2008
  • Visual Studio 2008 SP1
  • jQuery Library
  • Visual Studio 2008 jQuery Plug-in


Alternatively, you can acquire Visual Studio 2010, which comes with the jQuery library by default. To use jQuery, you can simply drag and drop the script onto your web form in the markup mode. Here's the markup code that is generated:

<head runat="server">
    <script src="../Scripts/jquery-1.4.4.js" type="text/javascript"></script>
</head>


Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap