I am using a simple ajax loader to get content in wordpress.
$("#page_preview").load("ajaxloader/", function(response, status, xhr) { if (status == "error") { alert("Sorry but there was an error"); } else { $('#page_preview').fadeIn(300); } }); return;
When I load a specific entry with a built-in google map, it is obvious that something is going wrong, BUT instead of going to the if
, firebug shows that it is beyond the scope of this code. Neither if
nor else
fall.
Using the eclipse debugger, I found that loading the page was successful, but when it returns data to the .load()
method, the last breaks.
Any ideas on what could happen?
Odys source share