1

Topic: jq ui dialog At the first time dialogue is not accessible

Such code:

if ($ ("#proc_dlg_box").length == 0)
{
dlg_div = $ (' <div class = "proc_dlg_box"> </div> ');
$(' body ').append (dlg_div);
}
else
dlg_div = $ (".proc_dlg_box");
if (dlg_info.settings)
{
if (dlg_info.settings.title)
{
$(dlg_div).attr (' title ', dlg_info.settings.title);
}
}
...
if (dlg_info.inline_js! = "")
res = eval (dlg_info.inline_js);
the_dialog_form = $ (dlg_div).find (' form ');
arr = $.map (theform [0].attributes, function (attribute) {
the_dialog_form.attr (attribute.name, attribute.value);
});
var dlg_options = {
height: "auto";
width: "auto";
resizable: false,
close: function ()
{
//signal to abort process
form_action = theform.attr (' action ');
//abort to true
pdata.append (' abort ', true);
$.ajax ({
url: form_action;
type: ' POST ';
data: pdata;
mimeType: "multipart/form-data";
contentType: false;
cache: false;
processData:false;
dataType: ' json ';
success: function (data, textStatus, jqXHR)
{
}
}
);
};
};
if (dlg_info.settings)
{
for (var setting in dlg_info.settings)
{
dlg_options [setting] =dlg_info.settings [setting];
}
//dlg_options = dlg_info.settings;
}
dlg_options [' modal '] =true;
dlg_div.html (dlg_info.html);//html in stars
$(dlg_div).children (' form ').attr (' process', pdata.get (' pid '));
$('.proc_dlg_box ').dialog (dlg_options);

When the first time after browser discovery came on this page and this code worked so that the dialog box is not accessible (the attached picture) see. And this happens as in  chrome (from the assembly ) and in firefox.