This link has been bookmarked by 99 people . It was first bookmarked on 10 May 2008, by diigouser2.
-
24 Jan 14
-
13 Apr 13
-
eard that plugin
-
-
14 May 12
rfessler"Building Your First jQuery Plugin
So you were out on your quest to find the answer to life, the universe, and everything, when blam, you found jQuery. Yes, I know, you were expecting 42, but too all of our surprise, it was jQuery. So what's next? Build your own plugin!
While some are intimidated by the thought of creating their own plugin, the truth is that jQuery is built with an infinitely friendly plugin architecture. If you've gotten comfortable with the basics of jQuery coding, then you're certainly ready to develop your own plugin. This tutorial will take you step by step through creating your very own truncation plugin. Say, for example, you have a "tip of the day" widget on your home page. This plugin will let you truncate it to a specified length, with a link to expand it to view it's full content. Here's a working example: " -
06 Dec 11
Fedor Belov(function($){
$.fn.truncate = function() {
return this.each(function() {
});
};
})(jQuery); -
30 Jul 11
-
10 Jul 11
-
06 Jul 11
-
01 Jul 11
-
19 Apr 11
-
26 Feb 11
-
09 Feb 11
-
29 Jan 11
-
09 Nov 10
-
27 Sep 10
-
13 Sep 10
-
26 Aug 10
-
25 May 10
-
23 Apr 10
-
26 Mar 10
-
18 Mar 10
-
19 Dec 09
-
20 Nov 09
-
06 Oct 09
-
29 Sep 09
-
11 Sep 09
-
06 Jul 09
-
11 Jun 09
-
27 May 09
-
20 Apr 09
-
09 Apr 09
-
19 Feb 09
-
17 Feb 09
-
28 Jan 09
-
09 Jan 09
-
04 Jan 09
-
26 Nov 08
-
17 Nov 08
-
16 Aug 08
-
02 Aug 08
-
20 Jul 08
Brent SordylThe first step is to extend the actual jQuery object with the function that we wish to add. In our case, we wish to add "truncation" functionality. So here's where to start: create a jquery.truncate.js file and save it
-
18 Jul 08
-
15 Jul 08
-
14 Jul 08
-
13 Jul 08
-
David Feld"This tutorial will take you step by step through creating your very own truncation plugin."
-
10 May 08
-
09 Apr 08
-
24 Mar 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.