I would like to $('string').appendTo('#include_to'); Code (markup): where the string is <div><p><input type="file" name="filename" onchange="ajaxUpload(this.form,'scripts/ajaxupload.php?filename=name&maxSize=9999999999&maxW=200&fullPath=/jquery/uploads/&relPath=../uploads/&colorR=255&colorG=255&colorB=255&maxH=300','upload_area','File Uploading Please Wait...<br /><img src=\'images/loader_light_blue.gif\' width=\'128\' height=\'15\' border=\'0\' />','<img src=\'images/error.gif\' width=\'16\' height=\'16\' border=\'0\' /> Error in Upload, check settings and path info in source code.'); return false;" /></p><div> Code (markup): My question is how to write quotations '. I have tried almost everythings (',",/',/") and nothing works. So how to mix this string into code. tnx
I have a problem with a line before last one. The error is missing ) after argument list ajaxUpload(this.form,'scripts/ajaxupload...it...<br /><img width='128' height='15' $("<div><form action=\"scripts/ajaxupload.php\" method=\"post\" name=\"sleeker\" id=\"sleeker\" enctype=\"multipart/form-data\">" +"<input type=\"hidden\" name=\"maxSize\" value=\"9999999999\" />" +"<input type=\"hidden\" name=\"maxW\" value=\"200\" />" +"<input type=\"hidden\" name=\"fullPath\" value=\"/jquery/uploads/\" />" +"<input type=\"hidden\" name=\"relPath\" value=\"../uploads/\" />" +"<input type=\"hidden\" name=\"colorR\" value=\"255\" />" +"<input type=\"hidden\" name=\"colorG\" value=\"255\" />" +"<input type=\"hidden\" name=\"colorB\" value=\"255\" />" +"<input type=\"hidden\" name=\"maxH\" value=\"300\" />" +"<input type=\"hidden\" name=\"filename\" value=\"filename\" />" +"<p><input type=\"file\" name=\"filename\" onchange=\"ajaxUpload(this.form,'scripts/ajaxupload.php?filename=name&maxSize=9999999999&maxW=200&fullPath=/jquery/uploads/&relPath=../uploads/&colorR=255&colorG=255&colorB=255&maxH=300','upload_area','File Uploading Please Wait...<br /><img src=\'loader_light_blue.gif\' width=\'128\' height=\'15\' border=\'0\' />','<img src=\'images/error.gif\' width=\'16\' height=\'16\' border=\'0\' /> Error in Upload, check settings and path info in source code.'); return false;\" /></p>" +"</form></div>").appendTo('#include_to'); Code (markup): if it was like this it would work <form action="scripts/ajaxupload.php" method="post" name="sleeker" id="sleeker" enctype="multipart/form-data"> <input type="hidden" name="maxSize" value="9999999999" /> <input type="hidden" name="maxW" value="200" /> <input type="hidden" name="fullPath" value="/jquery/php_ajax_image_upload/uploads/" /> <input type="hidden" name="relPath" value="../uploads/" /> <input type="hidden" name="colorR" value="255" /> <input type="hidden" name="colorG" value="255" /> <input type="hidden" name="colorB" value="255" /> <input type="hidden" name="maxH" value="50" /> <input type="hidden" name="filename" value="filename" /> <p><input type="file" name="filename" onchange="ajaxUpload(this.form,'scripts/ajaxupload.php?filename=name&maxSize=9999999999&maxW=200&fullPath=http://www.atwebresults.com/php_ajax_image_upload/uploads/&relPath=../uploads/&colorR=255&colorG=255&colorB=255&maxH=300','upload_area2','File Uploading Please Wait...<br /><img src=\'images/loader_light_blue.gif\' width=\'128\' height=\'15\' border=\'0\' />','<img src=\'images/error.gif\' width=\'16\' height=\'16\' border=\'0\' /> Error in Upload, check settings and path info in source code.'); return false;" /></p> </form> Code (markup):
Yes, we are the same implemented the single quotations using a backslash (\). Double quotes will not need to be escaped.