T
Tim B
I've posted this to a Java group and a Javascript group because it involves
both languages.
I want to update a select list dynamically when the value of another select
changes. The XMLHttpRequest would be send to a servlet. I have done this
previously using the responseText, parsing out a pre-encoded string that was
returned from the servlet.
I would like to try it instead using the responseXML. An example of how to
get the information I need out of the responseXML would be very helpful.
Also, what would I need to send from the servlet? Would it have to be XML,
or could I write an array of objects to the ServletOutputStream that would
be marshalled into XML and be available in the responseXML with (preferably
built in) javascript functionality?
Examples or links would be great, but I don't have time to wade through an
Ajax tutorial.
Tim Blanchard
both languages.
I want to update a select list dynamically when the value of another select
changes. The XMLHttpRequest would be send to a servlet. I have done this
previously using the responseText, parsing out a pre-encoded string that was
returned from the servlet.
I would like to try it instead using the responseXML. An example of how to
get the information I need out of the responseXML would be very helpful.
Also, what would I need to send from the servlet? Would it have to be XML,
or could I write an array of objects to the ServletOutputStream that would
be marshalled into XML and be available in the responseXML with (preferably
built in) javascript functionality?
Examples or links would be great, but I don't have time to wade through an
Ajax tutorial.
Tim Blanchard