binding plugin to ajax call
- by zurna
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");
});