wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Extending JQuery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Extending JQuery" Watch "Extending JQuery" New topic
Author

Extending JQuery

paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 165
Hi,
What are the benefits of extending JQuery ?

For example do you have an use case that extending JQuery might solve ?

Thanks,
Paul
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

I can't think of a single project where I haven't extended jQuery in some way. Whether it's to create my own widgets, calculate values, keep track of state, or a whole plethora of other things. Being able to build upon core jQuery, rather than rolling your own every time, makes for much more compact and error-free code.

And, of course, I use a lot of other people's plugins in my code as well. Last evening, in fact, I found and added a "time picker" plugin to my project.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 165
It's been around for a while so that is a good point.
Thanks.
Keith Wood
Author
Ranch Hand

Joined: Aug 28, 2012
Posts: 38

The extent of the plugin community shows that there are lots of reasons to extend jQuery. When you create a plugin you can encapsulate a piece of functionality in a way that is easily reusable. You gain the benefits of consistency of appearance and behaviour across your entire Web site, and reduced maintenance as there is only a single piece of code to test.


Author of the upcoming "Extending jQuery" book from Manning.
paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 165



That's a great reason.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Extending JQuery
 
Similar Threads
Bumper Sticker item requests
WA #1.....word association
Extending jQuery: The extending capability between JQuery and other js libraries.
Extending jQuery; version number
Extending jQuery: Best Practices for Interfacing with Server Side Technologies