Re: [jQuery] ISO docs for $.fn ?
Thanks, John. And thanks for jQuery. Beautiful piece of work. kj On 3/4/07, John Resig [EMAIL PROTECTED] wrote: Hi Kynn - Documentation on $.extend can be found here: http://docs.jquery.com/JavaScript and information on using $.fn.extend can be found here: http://docs.jquery.com/Plugins/Authoring In jQuery $.fn.extend is used in plugin authoring, adding new methods to jQuery. The relationship in jQuery is like this: jQuery and $ are identical. jQuery.fn and $.fn are identical. jQuery.fn and jQuery.prototype are identical. jQuery.extend and jQuery.fn.extend are nearly identical, but when you pass in a single object of properties, jQuery.extend will extend the jQuery object with properties whereas jQuery.fn.extend will extend the jQuery.fn object (and thus add new methods to the jQuery core). All of that being said, if you're just getting started with jQuery, you're probably not going to have to worry about any of this. --John On 3/4/07, Kynn Jones [EMAIL PROTECTED] wrote: Hi. I'm just learning about jQuery and finding my way around its documentation. I have not been able to find any documentation on $.fn. In fact in some of the rest of the documentation (e.g. the example code for $.extend given at http://visualjquery.com/1.1.1.html, $.fn (or rather jQuery.fn ) without explanation. Actually, the examples given there raise many questions in my mind, for example: what's the difference between $.fn and jQuery.fn? And, what's the difference between calling jQuery.fn.extend and jQuery.extend? Are the answers to these questions in the documentation? If so, please point me to them. Any help would be much appreciated. TIA! kj ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ISO docs for $.fn ?
Hi Kynn - Documentation on $.extend can be found here: http://docs.jquery.com/JavaScript and information on using $.fn.extend can be found here: http://docs.jquery.com/Plugins/Authoring In jQuery $.fn.extend is used in plugin authoring, adding new methods to jQuery. The relationship in jQuery is like this: jQuery and $ are identical. jQuery.fn and $.fn are identical. jQuery.fn and jQuery.prototype are identical. jQuery.extend and jQuery.fn.extend are nearly identical, but when you pass in a single object of properties, jQuery.extend will extend the jQuery object with properties whereas jQuery.fn.extend will extend the jQuery.fn object (and thus add new methods to the jQuery core). All of that being said, if you're just getting started with jQuery, you're probably not going to have to worry about any of this. --John On 3/4/07, Kynn Jones [EMAIL PROTECTED] wrote: Hi. I'm just learning about jQuery and finding my way around its documentation. I have not been able to find any documentation on $.fn. In fact in some of the rest of the documentation (e.g. the example code for $.extend given at http://visualjquery.com/1.1.1.html, $.fn (or rather jQuery.fn ) without explanation. Actually, the examples given there raise many questions in my mind, for example: what's the difference between $.fn and jQuery.fn? And, what's the difference between calling jQuery.fn.extend and jQuery.extend? Are the answers to these questions in the documentation? If so, please point me to them. Any help would be much appreciated. TIA! kj ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ISO docs for $.fn ?
All of that being said, if you're just getting started with jQuery, you're probably not going to have to worry about any of this. I should say, though, that if you're already digging into Plugin development, then scratch my statement! --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ISO docs for $.fn ?
This info couldn't have been more timely for me, as soon as I started playing with jQuery my first reaction was to mix in my homebrew code. It was very easy, although now I'm trying to extend it and the distinctions you gave were great. One question though: is there a proper way to check for a preexisting member or method (other than typeof)? On 3/4/07, John Resig [EMAIL PROTECTED] wrote: All of that being said, if you're just getting started with jQuery, you're probably not going to have to worry about any of this. I should say, though, that if you're already digging into Plugin development, then scratch my statement! --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/