Jquery.uploadify exception ' __flash__removecallback ' undefined

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.