[jQuery] getJSON not finding any data
I have the following setup on my page inside a function:
$.getJSON("http://localhost:59396/xxx/xxxHandler.ashx?
action=xxxjson",
function(data) {
alert('got here');
$.each(data.items, function(i, item) {
carousel.add(i, mycarousel_decodeEntities(item.ImageTag));
if (i == 3) return false;
});
});
I know that if I take that url and render it in the browser straight
up, I get this:
[{"ImageTag":"\u003cimg src=\"http://www.xxx.com/
cat_image/1659D.jpg\" alt=\"\"\u003e"},
{"ImageTag":"\u003cimg src=\"http://www.xxx.com/
cat_image/536.jpg\" alt=\"\"\u003e"}]
where xxx is our domain.
So not sure why it's never getting to my alert inside function(data)