[jQuery] Plugin development: Defaults & options: Questions?

2009-12-21 Thread Micky Hulse
I just wrote my first jQuery (test) plugin... This was my guide: Questions: == 1. My plugin only takes one argument/option, and that is a target dom element. For example: $('#div').myFunction({ target: '#targ' });

[jQuery] Plugin development - how to access the current object from a "sub-method"?

2009-04-15 Thread Ricardo Tomasi
Supposing I have this: jQuery.fn.myPlugin = function(){ // }; jQuery.fn.myPlugin.myMethod = function(){ // ? }; $('#test').myPlugin.myMethod(); How can I access the current object or element collection from inside jQuery.fn.myPlugin.myMethod? Is it possible at all? thanks, - ricard

[jQuery] Plugin Development

2009-04-06 Thread Spot
How would one develop a plugin which can exist multiple times on the same page, without conflicting with each others namespaces?

[jQuery] plugin development

2007-04-17 Thread phpLord
Hi; do you know any guide about plugin development except the documentation wiki page ? like a tutorial on a simple plugin? tHanks