CategoryName.find is not a function

Posted by zurna on Stack Overflow See other posts from Stack Overflow or by zurna
Published on 2010-04-04T21:32:17Z Indexed on 2010/04/04 21:33 UTC
Read the original article Hit count: 352

Filed under:

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");   
            });
        }
    });

© Stack Overflow or respective owner

Related posts about jQuery