[jQuery] Re: Tabs, how to find what kind of object....

2009-02-18 Thread Aleem B
hing goes wrong. > > I made a simple test case explained here. > > http://groups.google.com/group/jquery-en/browse_thread/thread/48a38949e6751e4a > > Unfortunately none answered me. :( > > Kind regards > > Massimo > > On Feb 18, 5:03 pm, Aleem B wrote:

[jQuery] Re: Tabs, how to find what kind of object....

2009-02-18 Thread Aleem B
> I got this problem > > var $tabs = parent.$('#operativitaframe').contents().find > ('#tabsContainer').tabs(); > alert($tabs); > > This prints [object Object]; > how can I know if this is the tabs object instead of something else? $tabs is actually a jQuery object. tabs() may add some additional

[jQuery] Re: A question for John Resig

2009-02-18 Thread Aleem B
> I know they are there and I've used added functions to save on the > code size, which makes a big difference when used a lot. It doesn't make any difference save for a few characters.

[jQuery] Re: Extending a plugin

2009-02-18 Thread Aleem B
On Wed, Feb 18, 2009 at 4:47 PM, crungmun...@googlemail.com wrote: > > Hi, > > However, I would like to add some extra > functionality to the plugin which is specific to my application. In > this circumstance is it better to write the functionality into the > plugin directly or 'extend' it someho

[jQuery] cannot call twice: $("#foo").mywidget()

2009-02-18 Thread Aleem B
I created a widget and figured that it can only be called once per element: $.widget('ui.mywidget', { _init: function() { alert('hello'); } } $.widget("ui.mywidget", mywidget); $("#foo").mywidget(); // alerts hello $("#foo").mywidget(); // doesn't do anything now I understand