开发者

jquery ajax call return 403 forbidden error in internet explorer

this ajax call work fine in firefox and chrome b开发者_开发知识库ut in internet explorer it's response is "403 forbidden". and i am making this call on same domain. I am getting response untill whole page is loaded but after that i get 403 forbidden error.

$.ajax(

{
url : "gettwitt.php?val=0&media=med-16,
type : "GET",
cache   : "false",
dataType : "json",
success : function(n)
{
  alert(n);
}
});

you can check it out at http://indiantweets.in


url : "gettwitt.php?val=0&media=med-16",
///                                   ^ Add a " there, like I have done.

You have failed to close the string with a matching delimiter. Add a closing " to your first string.

Also false and "false" are two different things, with the latter being equivalent to true (as it is a non empty String) and not false. Drop the quotes there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜