This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 192
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: 63211
    
  69

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: 192
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: 192



That's a great reason.
Thanks.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Extending JQuery
 
It's not a secret anymore!