I am receving xml file from a server via javascript. i can populate all xml file to a textbox. but,
is it possible to get the values from xml tags to populate the textboxes with that values?? if yes how
for example i have an element in xml file as "address". i want to get the value of that element and fill the textbox
Thanx
var xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
var xmldoc = new ActiveXObject("Msxml.DOMDocument");
function start(){
xmlHttp.open('GET', server3, true);
xmlHttp.onreadystatechange = event;
xmlHttp.send();
xmldoc=xmlHttp.responseXML;
var dsRoot=xmldoc.documentElement
}
function event(){
if(xmlHttp.readyState == 4){
document.form1.TextBox1.innerText=xmlHttp.responseText
} else {
}
}
is it possible to get the values from xml tags to populate the textboxes with that values?? if yes how
for example i have an element in xml file as "address". i want to get the value of that element and fill the textbox
Thanx
var xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
var xmldoc = new ActiveXObject("Msxml.DOMDocument");
function start(){
xmlHttp.open('GET', server3, true);
xmlHttp.onreadystatechange = event;
xmlHttp.send();
xmldoc=xmlHttp.responseXML;
var dsRoot=xmldoc.documentElement
}
function event(){
if(xmlHttp.readyState == 4){
document.form1.TextBox1.innerText=xmlHttp.responseText
} else {
}
}