javascript - Error calling method on NPObject! -



javascript - Error calling method on NPObject! -

sorry english updated uploadify recent version (uploadify-v2.1.4) , broked uploadify: can't upload . firebug console returns erroe when i'm trying phone call "error calling method on npobject!".

what doing wrong?!

here's code: http://pastebin.com/bheyhxhw

thanks,

daniil.

/* original code */ uploadifycancel:function(id) {

jquery(this).each(function() { document.getelementbyid(jquery(this).attr('id') + 'uploader').cancelfileupload(id, true, true, false); }); },

/*new code */

uploadifycancel:function(id){ jquery(this).each(function(){ document.getelementbyid(jquery(this).attr("id")+"uploader").cancelfileupload(id,true,false) }); },

/*original code */

jquery(this).bind("uploadifycomplete", { 'action': settings.oncomplete }, function(event, id, fileobj, response, data) { if (event.data.action(event, id, fileobj, unescape(response), data) !== false) { jquery("#" + jquery(this).attr('id') + id).find('.percentage').text(' - completed'); if (settings.removecompleted) { jquery("#" + jquery(event.target).attr('id') + id).fadeout(250,function() { jquery(this).remove() }); } jquery("#" + jquery(event.target).attr('id') + id).addclass('completed'); } });

/* new code */

jquery(this).bind("uploadifyprogress", {

'action': settings.onprogress, 'todisplay': settings.displaydata }, function(event, id, fileobj, data) { if (event.data.action(event, id, fileobj, data) !== false) { jquery("#" + jquery(this).attr('id') + id + "progressbar").animate({ 'width': data.percentage + '%' },250,function() { if (data.percentage == 100) { jquery(this).closest('.uploadifyprogress').fadeout(250,function() { jquery(this).remove() }); } }); if (event.data.todisplay == 'percentage') displaydata = ' - ' + data.percentage + '%'; if (event.data.todisplay == 'speed') displaydata = ' - ' + data.speed + 'kb/s'; if (event.data.todisplay == null) displaydata = ' '; jquery("#" + jquery(this).attr('id') + id).find('.percentage').text(displaydata); } });

javascript jquery flash uploadify

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -