I'm trying to add a form to a Facebook page through "Static HTML: iframe tabs" app. I am using jQuery,ajax,php to send the form and recieve success or error. When I run the form outside of Facebook iFrames everything works fine. But, on iFrames I've encountered two problems:
- AJAX call fails each time. It returns error value and does not pass values.
- Google chrome gives me "this page has insecure content"
here is my ajax call:
$.ajax({
type: "POST",
url: "send.php",
contentType: "application/x-www-form-urlencoded; charset=utf-8;",
data: data_string,
dataType: 'html',
success: function(data){
alert('success');
},
error: function() {
alert('error');
}
});
Thanks in advance.