Stephen Woodbridge schrieb:
> Hi all,
>
> I'm trying to write my first plugin and I'm having some conceptual 
> problems on how to organize stuff and getting my head wrapped around 
> this. The plugin will be for turning a div into an interactive mapping 
> application.
Just a quickie: Why don't you integrate the Resizable into your Map 
method? Makes coding it way easier.

Another point: To interact from other controls with your Map, you may 
want to hijack jQuery's event system, using bind, trigger and some 
wrapper methods. I did just that in my latest accordion update, it works 
very well and elegant: http://joern.jquery.com/accordion/accordion.html
The intersting part is at the end here: 
http://joern.jquery.com/accordion/jquery.accordion.js
$.fn.activate calls trigger, which calls an event handler that was 
registered via bind. Because the actual handler is defined inside the 
plugin method, I don't have to pass around tons of variables, they are 
all in one closure.

Hope that helps somehow.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to