I've just realized that my code doesn't work in IE for some reason. Its working fine even in IE on www.wowphonefinder.com, but the idea of the AJAX function is to have control under the content of the menu even on our partners side (www.wirefly.com/...). Even when I put the file on some other location then (wowphonefinder.com) its working perfectly fine in all browsers except IE which keeps returning ,,undefined", but not throwing any error or warning on console. Also I have this line in giveMenu.php ,,header('Access-Control-Allow-Origin: *');" that should allow me to use that file from different server.
Here is the code:
function dajMeni()
{
var url = 'http://www.wowphonefinder.com/AJAX/giveMenu.php';
$.ajax({
type: "POST", url: url,
complete: function(data){
alert(data.responseText);
$("#menu").html(data.responseText);
}
});
}
Hope that my question was clear enough. Thanks in advance for your smart answers! :)