ajax call returns null in my facebook iframe !!!

Posted by uhsp on Stack Overflow See other posts from Stack Overflow or by uhsp
Published on 2010-04-09T15:51:03Z Indexed on 2010/04/09 15:53 UTC
Read the original article Hit count: 283

Filed under:
|
|
|

Hi,

I am using jquery to send an ajax request from my facebook app which is in iframe to my server. The ajax request works fine when the web app is running stand alone and out of facebook platform, but within facebook, the result that I get from my ajax request is blank !!! Here is the code I use:

    $.ajax({
        url: 'http://mydomain.com/search',
        data: params,
        cache: false,
        dataType: 'json',
        success: function(posts) {

                                        // post is null !!!!!

                               }
        error: function(json) {
                                      alert('error');
            }            
    });

I appreciate if anybody can help me with it.

Thanks.

uhsp

© Stack Overflow or respective owner

Related posts about facebook

Related posts about iframe