Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2012, 08:47 AM   PM User | #1
angelali
Regular Coder

 
Join Date: Sep 2011
Posts: 310
Thanks: 23
Thanked 0 Times in 0 Posts
angelali is an unknown quantity at this point
JQuery plugin, worth to create?

Ok, this is not a question where I am having issues, but seeking an advise from you on JQuery plugin development. We have to agree, there are many JQuery plugins in different categories such as image gallery, form validations, effects and so on.

I was about to create a basic JQuery plugin with methods. I am new in JQuery plugin development, but I do have my required tutorials to cretae one and I did make one before when learning.

The question is:

Is it worth to create a JQuery plugin with methods, or simply create an open source script plugin, where a user can modify freely and embed it in their websites?

In other words, I do not see a huge difference, by creating a JQuery plugin with methods, with an open source JQuery or JavaScript plugin without methods where you can customize freely. For example, there is TinyMCE, a rich text editor, it is a plugin in pure JavaScript and does not propose methods for people to modify. If you want to modify to add/remove features, simply do it by coding as it is open source. TinyMCE just propose you a default functionality.

However, the only advantage a JQuery plugin with methods will have is to let people who have poor knowledge on web to configure their plugin easily while an open source script plugin like TinyMCE for instance, you need to code by yourself if you want to ameliorate.

What do you think?

Last edited by angelali; 11-07-2012 at 08:51 AM..
angelali is offline   Reply With Quote
Old 11-07-2012, 03:02 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
I realize this doesn't answer your question, but why cant people edit a plugin? it's still plain text code. ( you can always provide a non compressed easy to read version of your code to users if you like)

Plugins for jquery have advantages such as ( if done properly) they automatically avoid conflicts with the $ namspace, yes easy to configure, and they maintain the chainability (? i suppose thats a word) of jquery functions ( also when done properly)
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:37 PM.


Advertisement
Log in to turn off these ads.