upload file by ajax, javascript,php -


please want upload file ajax , javascript,php without refresh page : idea send file ajax xmlhttp.send(file); , file in script php, don't know how uing function record

function record(elem){  	      	 }
<td style='font-size:11px;'><span id='confirm1 $id'>confirm : <input id='confirm1' onchange='record(this.id);' style='font-size:9px; height:27px; width:134px;' type='file' name='confirm1' /></td>

you're looking formdata api:

https://developer.mozilla.org/en-us/docs/web/api/xmlhttprequest/using_xmlhttprequest#submitting_forms_and_uploading_files

an easier method may use iframe.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -