This question is locked. New answers and comments are not allowed.
Hi,
I am using silverlight multiipload to allow user to upload file to my site. The silverlight control are embedded in the radwindow. Those javascript that are related to the silverlight control cannot be trigger as usual. ( It works fine when i move the silverlight control out of the radwindow. )
Please advise.
Thanks.
Code (Partial only) - Javascript related to the silverlight
//DO NOT FORGET TO REGISTER THIS FUNCTION WITH THE SILVERIGHT CONTROL
// OnPluginLoaded="pluginLoaded"
function pluginLoaded(sender) {
alert('testing loadign');
slCtl = sender.get_element();
//Register All Files Finished Uploading event
slCtl.Content.Files.AllFilesFinished = AllFilesFinished;
//Register single file finished event
slCtl.Content.Files.SingleFileUploadFinished = SingleFileFinished;
//Register Error occurred during uploading event
slCtl.Content.Files.ErrorOccurred = ShowErrorDiv;
}
Code - Silverlight control
<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/mpost.SilverlightMultiFileUpload.xap"
MinimumVersion="4.0.50401.0" Width="100%" Height="270" OnPluginLoaded="pluginLoaded" InitParameters="HttpUploader=true,MaxFileSizeKB=,MaxUploads=1,CustomParam=yourparameters,DefaultColor=#DBD8C7" />
Regards,
Nelson
I am using silverlight multiipload to allow user to upload file to my site. The silverlight control are embedded in the radwindow. Those javascript that are related to the silverlight control cannot be trigger as usual. ( It works fine when i move the silverlight control out of the radwindow. )
Please advise.
Thanks.
Code (Partial only) - Javascript related to the silverlight
//DO NOT FORGET TO REGISTER THIS FUNCTION WITH THE SILVERIGHT CONTROL
// OnPluginLoaded="pluginLoaded"
function pluginLoaded(sender) {
alert('testing loadign');
slCtl = sender.get_element();
//Register All Files Finished Uploading event
slCtl.Content.Files.AllFilesFinished = AllFilesFinished;
//Register single file finished event
slCtl.Content.Files.SingleFileUploadFinished = SingleFileFinished;
//Register Error occurred during uploading event
slCtl.Content.Files.ErrorOccurred = ShowErrorDiv;
}
Code - Silverlight control
<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/mpost.SilverlightMultiFileUpload.xap"
MinimumVersion="4.0.50401.0" Width="100%" Height="270" OnPluginLoaded="pluginLoaded" InitParameters="HttpUploader=true,MaxFileSizeKB=,MaxUploads=1,CustomParam=yourparameters,DefaultColor=#DBD8C7" />
Regards,
Nelson