开发者

Facebook App - Works great in everything but IE (two issues) [closed]

This question is u开发者_开发技巧nlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

My brains a bit dead after the past 72 hours coding this project; hoping one could help two of the issues I'm having.

The app -> (url redirects to facebook) http://www.myfbcourses.com and if that doesn't work the direct url is http://apps.facebook.com/myfbcourses/

Now, in Safari/FireFox/Chrome this app works perfect. Just not in IE. My two issues:

1) When I invoke Jquery's Ajax, it doesn't show the content returning i.e. Pretty basic code, I don't know why it returns nothing on IE though.

$.ajax({
           type: "POST",
           url: "call.php",
           data: "i=postTopic&cid="+i+"&comments="+comments+"&title="+title,
           success: function(msg){
            alert(msg);
           }
         });

2) In IE; Even after authorizing / and fb-logging-in it doesn't seem it's authenticated. I think in IE8 it kept looping the redirect to the page.. No idea

Would love the help! Thank you!


It's an AJAX issue, I'm assuming your file is not hosted in the same server than your ajax call. So instead you have to use JSOP.

So then try:

$.ajax({
           type: "POST",
           url: "call.php",
           data: ({"i" :postTopic, "cid" :i, "comments" : comments, "title" : title}),
           success: function(msg){
            alert(msg);
           }
         });


I figured out the issue... Don't forget to include type=text/javascript in your code

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜