I am developing a facebook application.
In this application, I use the jquery ui dialog to show the contents of the div (which comes from the ajax answer).
An excellent display of the content returned from the ajax call opens in a dialog box. But there is a strange behavior. the page (it seems that my application is being called in fb iframe) is constantly updated , as if it was sending some data for an unlimited period. Moreover, the height of the "div-u-widget-overlay" div , which is dynamically generated using the ui dialog, is constantly increasing and never becoming stable. Perhaps these two strange behaviors are connected in some way. I can not understand.
In this regard, even if I use the modal: true " property for my dialog, I can access the entire page after the dialog.
Snippet of my code:
$.ajax({
type : "POST",
data : "id=1",
url : site_url + "lists/add_new",
success : function(response) {
$('#new_box').html(response);
$('#new_box').dialog({
modal: true,
position: 'top'
});
$('#new_box').dialog( "open" );
return false;
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus);
}
});
Please guide.
thank
UPDATE:
, :
"" "" ( div ) , , js Chrome, , . , , : |
, "" "false", , "", , , - "" .
, "" ""?