Javascript Disables Flash

Aug 10, 2009 at 2:14 AM

When I use the ConfirmUploadJsFunc in the Amazon Direct uploader, I get an error when displaying the page. The control says that I need to install Flash.

I have created the control and js function as described in the help docs (like below):

function ConfirmUploadJsFunc(r){
    alert("ConfirmUploadJsFunc: isError:"+r.isError+",isLast:"+r.isLast+",httpStatus:"+r.httpStatus+
            ",index:"+r.index+",bytes:"+r.bytes+",name:\"""\", changedName:\""+r.changedName+"\"");
<fjx:FileUploader ID="FileUploader1" runat="server">
        <fjx:DirectAmazonUploader OnConfirmUpload="ConfirmUpload" ConfirmUploadJsFunc="ConfirmUploadJsFunc"  
            BucketName=""  />

As soon as I remove the reference in the page to the js function, the control works fine. Is there something I can do to correct this?

Thanks for your help!



Aug 10, 2009 at 5:15 AM

I just tested this code and I get no errors. It sounds like a javascript error. Something in the other javascript you have on the page. Check it for JavaScript errors.

Aug 11, 2009 at 12:04 AM

It was a javascript error that I was able to resolve. I had the javascript at the bottom of the page. When I moved it to the top of the page it resolved the problem.

Thanks again for your help.