[Proto-Scripty] Re: prototype to populate select box via ajax

2010-08-16 Thread T.J. Crowder
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 {

Re: [Proto-Scripty] Re: prototype to populate select box via ajax

2010-08-17 Thread Phil Petree
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

Re: [Proto-Scripty] Re: prototype to populate select box via ajax

2010-08-17 Thread Phil Petree
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