CategoryName.find is not a function
- by zurna
I need to call a plugin inside a ajax call so it could be used on called&received data.
But I got the following error.
Error: CategoryName.find is not a function
Source File: http://www.refinethetaste.com/FLPM/
Line: 82
I tried it as:
$.ajax({
dataType: "xml",
url: "/FLPM/content/home/index.cs.asp?Process=ViewVCategories",
success: function(xml) {
$(xml).find('row').each(function(){
var id = $(this).attr('id');
var CategoryName = $(this).find('CategoryName').text();
$("<div class='tab fleft'><a href='http://www.refinethetaste.com/FLPM/content/home/index.cs.asp?Process=ViewVideos&CATEGORYID="+ id +"'>"+ CategoryName + "</a></div>").appendTo("#VCategories");
CategoryName.find("div.row-title .tab").tabs("div.row-title div.panes > div");
});
}
});