Hi,
The XML can be in whatever form you find useful to parse. Here's a
complete example that handles an XML response that looks like this:
CaliforniaArkansas
Code (also -- more readably -- here: http://pastie.org/1097106):
* * * *
Test Page
body {
font-family: sans-serif;
}
#log p {
T.J. YOU are a gentleman AND a scholar! I looked everywhere for how to do
this! Hopefully this post will move up in the search engines and others can
find it!
One other question on this...
What if the XML response is:
more and more
California
Arkansas
How do I need to
Here is a completed function that will populate a select box with data in an
XML format (XML format below):
// fill the dropdown list box
// @ajax response (transport as returned above)
// @id of the select field (defaults to elFieldName
// @xml_data_node_name (our dataset uses 'state')
function