[jquery-ui] Re: Tabs with new live function

2009-03-02 Thread Steven Black
FYI, that's probably going to be problematic if you ever need to bind other actions to the tab click event **--** Steve On Mar 2, 2:45 am, johhnnyboy wrote: > Thanks, but after trying I bit more I ended up with: > > script type="text/javascript"> > $(document).ready(function(){ > $("#in

[jquery-ui] Re: Tabs with new live function

2009-03-01 Thread johhnnyboy
Thanks, but after trying I bit more I ended up with: script type="text/javascript"> $(document).ready(function(){ $("#info1").tabs({ load: function(event, ui1) { $('a', ui1.panel).live("click", function(){ $("#info1").load(this.href); return false; }); } }); $("#info2").tabs({ load: fu

[jquery-ui] Re: Tabs with new live function

2009-03-01 Thread Steven Black
Just to clarify: is there a reason why you wouldn't just use .bind() instead of .live() here? Reason I ask is the operational semantics of .live(), the "late- binding" (as it were) of matching selectors, is precisely the problem you are encountering. Do you plan on dynamically adding panes to yo