I use Uploadify to upload a file to my CMS. Until recently, everything was working fine. I got an error
Error calling method on NPObject
in this line
document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, checkComplete);
in this part
uploadifyUpload:function(ID,checkComplete) { jQuery(this).each(function() { if (!checkComplete) checkComplete = false; document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, checkComplete); }); },
I donโt know why, even after a day of debugging and testing, I found that if I remove replace(/\&/g, '\\&') from
String.prototype.escAll = function(){ var s = this; return s.replace(/\./g, '\\.').replace(/\?/g, '\\?').replace(/\&/g, '\\&'); };
Then it works again. I really don't know why.
Any help would be appreciated!
ByulTaeng
source share