The use of scenes in conjunction with the Artdialog popup occurs when "__flash__removecallback" is undefined because Artdialog is loaded based on the uloadify of the IFRAME, The operation of emptying the IFRAME is performed when the Artdialog is closed, guessing that the uploadify flash control is bound to the Unload event and callback when the DOM is unloaded, but this time Artdialog has emptied the code in the IFRAME. , the Internet to find the information, found that there is a similar situation, indicating that it should be the problem, the final solution is as follows:
varDialog = $ ("#btnImport"). Click (function() {Art.dialog.open (App.applicationpath+ "/centoptanalysis/coanalysis/optimizationtuningupload", {title:"Import Data", Width:320, Height:200, ID:' Optimizationtuninguploaddialog ', Lock:true, close:function () { //Empty the Jquery.uploadify control, otherwise the flash callback exception will be reported varc = art.dialog.list["Optimizationtuninguploaddialog"]; C.iframe.contentwindow.clearuploadhtml (); } }); });
function clearuploadhtml () { document.getElementById ("Txtfileupload"). InnerHTML = "";} function Closedialog () { clearuploadhtml (); Art.dialog.close ();}
Txtfileupload is the uploadity initialization control, which provides the parent to empty the uploadity control when close
Jquery.uploadify exception ' __flash__removecallback ' undefined