binding plugin to ajax call

Posted by zurna on Stack Overflow See other posts from Stack Overflow or by zurna
Published on 2010-04-03T18:40:16Z Indexed on 2010/04/15 7:03 UTC
Read the original article Hit count: 258

Filed under:

I take categories from another page with an ajax call. The problem is, data taken from another page needs to be part of another of an event; tabs plugin.

I get the following error with this code.

    $.ajax({
        dataType: "xml",
        success: function(xml) {
            $(xml).find('row').each(function(){
                var id = $(this).attr('id');
                var CategoryName = $(this).find('CategoryName');
                $("<div class='tab fleft'><a href='http://www.refinethetaste.com/FLPM/content/home/index.cs.asp?Process=ViewVideos&CATEGORYID="+ id +"'>"+ CategoryName.text() + "</a></div>").appendTo("#VCategories");
            });
        }
    }).live('click', function() {
                $("div.row-title").tabs("div.redpanes > div");
    });

© Stack Overflow or respective owner

Related posts about jQuery