I need help!
I have the following code onSubmit one file upload: function upload file () {var file = _ ("file1"). Files [0]; Var formidata = new form data (); Formdata.append ("file1", file); Var Ajax = New XMLHttpRequest (); Ajax.upload.addEventListener ("progress", progress handler, wrong); Ajax.addEventListener ("load", full handler, incorrect); Ajax.addEventListener ("Error", errorHandler, incorrect); Ajax.addEventListener ("abort", abortHandler, incorrect); Ajax.open ("Post", "php_parsers / file_upload_parser.php"); Ajax.send (formdata); } Function Full Handler (E) {var fileDest = e.target.responseText; // file location response is Text_ ("unloaded IMG"). Src = fileDest; // '_' iselementbyid function is $ ('# sesame'). BPopup (); } I started the JCRPP on the object as follows:
jQuery (function ($) {$ ('# uloadedImg'). );}); HTML is:
When I test this code, the image tag changes in this way:
I do not understand what the style element in the image tag is putting, but when Jackpot is not working, Removal device from If I can not get it to work, then I'm going to throw my laptop on the wall: (
In view of the heavy response, I had the answer to this question, I thought what was going wrong!
I had an image before I used to upload the image tag I was initializing the jcrop on the image tag. I went to jcrop in my script's Ajax review as follows : function upload file () {var file = _ ("file1"). Files [0]; var formatta = new form data (); formdata.append ("file1", file Ajax.addEventListener ("Error", errorHandler, incorrect); Ajax.addEventListener; Ajax.addEventListener ("abort", abortHandler, false); ajax.open ("post", "php_parsers / file_upload_parser.php"); ajax .send (formdata);} function full handler (e) {var fileDest = e. Target.responseText; // file location response. Text_ ("unloaded emiz"). Src = fileDest; // '_' is gethelmentbyid function JQuery (function ($) {$ ('# UloadedImg') Jcrop () .; }); . $ ('# Sesame') bPopup (); } Thank you for all your help!
Comments
Post a Comment