hi every body
can i upload file using ajax ??
if yes how
pleaze with code
thank u in advance
can i upload file using ajax ??
if yes how
pleaze with code
thank u in advance
function IO(U, V) { // A tiny ajax library. by DanDavis
var X = !window.XMLHttpRequest ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
X.open(V ? 'PUT' : 'GET', U, !1);
X.setRequestHeader('Content-Type', 'text/html')
X.send(V ? V : '');
return X.responseText;
}
// +++++++ customize code below ++++++++
var fileName= "text1.txt";
var data= "hello world";
IO( fileName, data ); //save it
alert( IO( fileName )); //check the file
Comment