obsivus
11-28-2010, 11:56 PM
Greetings
This is my code:
function klick() {
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","note.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
document.getElementById("fraga").innerHTML=
xmlDoc.getElementsByTagName("fraga")[0].childNodes[0].nodeValue;
I want to be able to recieve a value from a form input textarea by a visitor that typed in a value and then store it in xml, so XML gets the value.
Is it possible?
Best Regards
R
This is my code:
function klick() {
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","note.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
document.getElementById("fraga").innerHTML=
xmlDoc.getElementsByTagName("fraga")[0].childNodes[0].nodeValue;
I want to be able to recieve a value from a form input textarea by a visitor that typed in a value and then store it in xml, so XML gets the value.
Is it possible?
Best Regards
R