Extensions
Extensions
Hi there.
I was just thinking about the numerous plugins and extensions that are
being written for JQuery. I really like this framework but I think it
will soon have some naming problems with new plugin functions.
My solutions was to create some kind of namespace system that would
structure JQuery a little more.
For example if you want to create several functions concerning a
tabbed panel like the following:
$("#someselector").createTabPanel(...)
$("#someselector").showTab(...)
$("#someselector").hideTab(...)
You will soon have a huge list of unstructured functions. My intention
is to create packages like:
$("#someselector").tabpanel.create(...)
$("#someselector").tabpanel.showTab(...)
$("#someselector").tabpanel.hideTab(...)
My main problem is that I would have to tap into the creation of a
JQuery object to create the tabpanel object with the current JQuery
reference. So is there an easy way to kind of bind to the creation
event of a JQuery object?
Any advice of a better solutions is appreciated.