The first tab content via a page include tag, so not dynamically via Ajax.
I've tried binding the functions using the "live" functionality, and I believe that is definitely the way forward, but I have made little progress. How would I bind a function like this using the "live" functionality? This function is not inside the document ready() function. function toggleCommentForm(postid){ // Function content } Thanks Haret On Apr 7, 1:17 pm, Giovanni Battista Lenoci <gian...@gmail.com> wrote: > Haret ha scritto:> Woo, first post! ^___^ > > > Hello everyone, I've been using jQuery UI Tabs for a mini staff > > discussion forum/blog at work, and things have been going really well > > so far, up until I came across this stumbling block yesterday. > > > The tabs are used to dynamically load different categories of posts > > into the central content area. Each post has a comment form (created > > on the fly when the user clicks the "comment" link) and a comments > > list (populated dynamically using json when the user clicks the "read > > comments" link. > > > All this functionality works fine with the first tab loaded, but when > > you load a different tab, everything stops working. > > How the first tab content is loaded? Via ajax? Or the first tab has the > content when the page is loaded? > Maybe you have to bind your functions with the "live" functionality, to > make "active" also elements that are created after the page loads. > > Bye > > -- > gianiaz.net - web solutions > via piedo, 58 - 23020 tresivio (so) - italy > +39 347 7196482