Thread:Extension talk:MsUpload/The "select file" no function/reply

Finally, after several months to make the MsUpload button work under IE(7, 8 and 9), i find the issue to do that.

First, i began by externalizing the button outside of the Wikiditor and integrating it in the a new DIV. unfortunately, it didn't work

Then, i had modify the plupload object parameters like that:

var uploader = new plupload.Uploader({                                runtimes : 'html5,flash,silverlight,html4',                                 browse_button : 'upload_select',                               //container : container_msu,  comment this line                                container : 'container',  asign the  div ID newly created                                 max_file_size : '100mb',                               drop_element: 'upload_drop',                               unique_names: false,                               url : msu_vars.path+'/../../api.php',                               flash_swf_url : msu_vars.path+'/js/plupload/plupload.flash.swf',                               silverlight_xap_url : msu_vars.path+'/js/plupload/plupload.silverlight.xap'                                });

At the final, i got this script and the Msupload button included on the wikieditor toolbar:

function createUpload(wikiEditor){ if(wikiEditor==true){ //create upload button var upload_tab = $(document.createElement("span")).attr('class','tab tab-msupload').prependTo('#wikiEditor-ui-toolbar .tabs'); var upload_button = $("         ").appendTo(".tabs"); //I append the ms button with .tabs div class //create upload div var upload_container = $(document.createElement("div")).attr('id',"upload_container").insertAfter('#wikiEditor-ui-toolbar'); var upload_div = $(document.createElement("div")).attr("id","upload_div").appendTo(upload_container); var container_msu = 'upload_container'; $('#wikiEditor-ui-toolbar .tool .options').css('z-index', '2'); //headline dropdown }else{ //only standard editor var upload_button = $("").appendTo("#toolbar"); var upload_div = $(document.createElement("div")).attr("id","upload_div").insertAfter("#toolbar"); var container_msu = 'toolbar'; }        var status_div = $(document.createElement("div")).attr("id","upload_status").html('No runtime found.').appendTo(upload_div);

//same lines

var gallery_insert = $(document.createElement("a")).attr("id","gallery_insert").appendTo(bottom_div).hide; var uploader = new plupload.Uploader({           runtimes : 'html5,flash,silverlight,html4',            browse_button : 'upload_select',            container : 'container',            max_file_size : '100mb',            drop_element: 'upload_drop',            unique_names: false,            url : msu_vars.path+'/../../api.php',            flash_swf_url : msu_vars.path+'/js/plupload/plupload.flash.swf',            silverlight_xap_url : msu_vars.path+'/js/plupload/plupload.silverlight.xap'          });

Works on: firefox, Opera, google chrome, IE 7,8 and 9 enjoy it