We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,453 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Jquery naming convention

What is the naming convention for jquery?

http://net.tutsplus.com/articles/news/learn-how-to-create-a-jquery-plugin/ says

[B]funcName/jQuery.js[/B]

while...

http://www.ok-cool.com/posts/read/19-jquery-for-programmers-part-1/ says

[B]jQuery.funcName.js[/B]

Thanks.

2
Contributors
1
Reply
4 Hours
Discussion Span
1 Year Ago
Last Updated
2
Views
cartergarth
Light Poster
25 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

The latter makes a lot more sense to me. If you look at the jQuery manual you see that the plugin name should be: "jQuery.fn.myPlugin", so why not use it as your filename in the same order too.

pritaeas
Posting Prodigy
Moderator
9,316 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,467
Skill Endorsements: 86

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0536 seconds using 2.67MB