I am pulling categories from an xml file. I only have 5 categories but the code below keeps pulling categories indifitely! Weird thing, I dont even have a loop in the xml function.
$.ajax({
dataType: "xml",
$(xml).find('row').each(function(){
var id = $(this).attr('id');
var CategoryName = $(this).find('CategoryName');
});
}
});
I think the problem is with your use of
tabsas opposed to the code that you’ve highlighted.What’s happening is that some code somewhere is making a GET request to
#, which is tantamount to requesting your current page. jQuery then parses the page, processes the scripting contained withing and you get your infinite loop.Looking at the HTML, I see:
I think those are your culprits