rem: var jForm = $(form); var par = $(jForm).parent(); $("div.upload_message",par) 
add: var jForm = jQuery(form); var par = jQuery(jForm).parent(); jQuery("div.upload_message",par) 
context:   function do_async_upload(form) {    jQuery.async_upload_count++;    var num = jQuery.async_upload_count;    var jForm = $(form);    var par = $(jForm).parent();    $("div.upload_message",par)    .remove();    if(!form.async_init) {      form.async_init = true      jForm      .append("<input type='hidden' name='iframe' value='iframe'>")      .find("input[@name='redirect']")        .val("")      .end();    }    		jForm.attr("target","upload_frame"+num);    var jFrame = $("<iframe id='upload_frame"+num+"' name='upload_frame"+num+"' frameborder='0' marginwidth='0' marginheight='0' scrolling='no' style='position:absolute;width:1px;height:1px;' onload='this.iframeload("+num+")'></iframe>")      .appendTo("body");        //IE apparently do not write anything in an iframe onload event handler     jFrame[0].iframeload = function(num) {        //remove the previous message        $("div.upload_message",par).remove();        var res = $(".upload_answer",this.contentDocument || document.frames(this.name).document.body);        //possible classes         //upload_document_added        if(res.is(".upload_document_added")) {          return add_function(res,jForm);        }        //upload_error        if(res.is(".upload_error")) {          var msg = $("<div class='upload_message'>")          .append(res.html())          jForm.after(msg[0]);          return true;        }         //upload_zip_list        if(res.is(".upload_zip_list")) {          var zip_form = $("<div class='upload_message'>").append(res.html());          zip_form          .find("form")            .attr("target","upload_frame"+num)            .append("<input type='hidden' name='iframe' value='iframe'>")          .end();          jForm.after(zip_form[0]);          return true;          }    };        jForm.before($("<div class='upload_message' style='height:1%'>").append(ajax_image_searching)[0]);    return true;  }
meta: 207	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/207/2a412036f3c5a2b3a80f77365766e10a2029938f/async_upload.js/buggy/dist/javascript/async_upload.js