views:

159

answers:

1

Hi All

I am using the code for the uploading image using uploadify plugin, Its working fine in Firfox and safari, but not supported in IE

$("#uploadify").uploadify({
    'uploader'      :   'scripts/uploadify.swf',
    'script'        :   'scripts/upload_product.php',
    'cancelImg'     :   'images/cancel.png',
    'folder'        :   'ok',
    'queueID'       :   'fileQueue',
    'auto'          :   false,
    'fileDesc'      :   'jksdhjsdf dsjdsfbfd s',
    'fileExt'       :   '*.jpg;*.png;*.jpeg;*.gif',
    'multi'         :   false,
});

On Click on Buuton $('#uploadify').uploadifySettings('folder',inserted_prod_id); $('#uploadify').uploadifyUpload();

giving the following error in IE

Message: Object doesn't support this property or method
Line: 26
Char: 6033
Code: 0
URI: http://192.168.0.1/~/jquery.uploadify.v2.1.0.min.js

Is any solution.

Thanks Amit Battan

A: 

Hi All

I notice that its sample is working in IE but I open a div in dialog and then its not working if am not using jquery dialog then its working ok.

$("#new_prod_link").click(function (){
    $('#dialog_div_new_product').dialog({
        autoOpen: false,
        modal: true,
        resizable: false,
        width : 600,
        buttons: {
            "Cancel": function() {
            onclose_new_prod();
                 },
        "Save": function() {
            alert("Save");
            $('#uploadify').uploadifySettings('folder','2001');
            $('#uploadify').uploadifyUpload();
                }
           }
    });
    $('#dialog_div_new_product').dialog('open');
});

If I call uploadifyUpload() out side the dialog then it works ok. otherwise it give same error as I mention in last post

Please help regard this

Amit