Displaying 3 results from an estimated 3 matches for "getelementbytagnam".
Did you mean:
getelementbytagname
2005 Oct 18
4
responseText Vs responseXML
This is a newbie question.
If I have a xml file that I am opening using Ajax.Request, then the response is trapped using responseText.
Now this response is a set of xml tags, if I need to traverse through it using DOM, I am not able to use the getElementByTagName method?
If I write my own ajax function, then when I do t.responseXML.getElementByTagName(''items'') it works but with responseText it doesn''t work.
Any help would be appreciated.
Thank you,
Mandy.
2008 Mar 25
2
responseXML not working on XML file
...est(url, {
method: ''post'', parameters:''resultSet=simcall'',
onSuccess:parseResponse,
onFailure:function(xhrResponse){alert(''nope'');}
});
}
var parseResponse= function(xhrResponse){
var response=xhrResponse.responseXML;
var paramList= response.getElementByTagName(''lastname'');
alert(paramList[0].firstChild.nodeValue);
}
<?xml version="1.0" encoding="iso-8859-1"?>
<employees>
<employee id="123456">
<lastname>Smith</lastname>
<firstname>Edward</firstname>
<p...
2011 Oct 21
20
How to transform my html form into a rails 3 form
Hi,
I have the following code working in a rails 3 view, but it is
unfortunately not pure rails code!
<% @filter1 = "tr.show1,tr.show2" %>
<% @filter2 = "tr.show1" %>
<% @filter3 = "tr.show2" %>
<form>
<p>
<input type="checkbox" value=<%=@filter1%> onclick="$
(this).is('':checked'')