-1
load_document(mobjson.ErrMsg, 1);
此功能打开创建新的窗口中的PDF和开放,并删除它在服务器上,一切都很好,如果创建的PDF很小,但是当它需要多一点的时间只在Safari浏览器中的执行到error:function({alert('error')}),其余浏览器完全打开pdf。 我试图等到函数调用结束jQuery中
setTimeout(function() {
load_document(mobjson.ErrMsg, 1);
}, 15000);
,但不知道需要多久采取其他PDF可创造... 基本上我想是
load_document(mobjson.ErrMsg, 1);
wait till its complete then execute next line ..