...

View Full Version : Greetings I need some help with AJAX



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

sybil6
12-01-2010, 05:24 PM
For example grab the input using ajax then write the input to an XML file using php. (not tested) or simply store it in a database.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum