jquery - Finding a Javascript Event that Blocks All Others -


i working on project uses plupload library.

after upload files using plupload, further jquery events on page stop working (including dropdown menu, datatables, , few other elements .live("click").

i have spent many hours stepping through script in chrome console , have not found cause problem.

i think entire code post here, looking suggestions of cause or put breakpoints figure out.


edit: based on suggestions/answers below, here offending code:

uploader.bind('fileuploaded', function(up, file, response) {     uploadsuccess(file, response.response); });  function uploadsuccess(fileobj, serverdata) {     var item = jquery('#upload-item-' + fileobj.id);      // on success serverdata should numeric, fix bug in html4 runtime returning serverdata wrapped in <pre> tag     serverdata = serverdata.replace(/^<pre>(\d+)<\/pre>$/, '$1');      if ( serverdata.match(/upload-error|error-div/) ) {         item.html(serverdata);         return;     } else {         jquery('.progress', item).hide();         jquery('.closebtn', item).show();     }      [...] } 

serverdata wrapped in skin included new call instantiate jquery. once removed skin, worked properly.

from comment, sounds upload callback blindly dumping server's response page. if server's response html response, make sure not contain script tags messing page. have seen happen in cases site using template system automatically wrapped output in site's template unless directed not to. when developer forgot so, upload callback included new copy of jquery , cleared out of click events.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -