[jQuery] How to create content from Ajax XML reply?
Hello all,
I'm still quite new in jQuery/JavaScript, but I'm managing some old
school
perl cgi web application, which I already improved with few jQuery
plugins
and enhancements (datepicker, wymeditor,timeentry). I have a working
self
made Ajax part for update of inputs (specially selects) from xml
server
response.
so when i get
<result>
<car_id>5</car>
</result>
It looks for input with id="car" and update value
or when I get
<car_sel selected="selected" value="5">nice one</car_sel>
<car_sel value="6">nice one</car_sel>
then select with id="car_sel" is found and two rows are created with
one
I'd like to extend my application with creation of content, so I
imagine that
my server side will reply ie.
<create>
<append id="last">
new input:
<input class=".." id=".." onclick="">empty</input>
</append>
</create>
and it will be done by
I think it 'should' be quite easy with jQuery abilities to prepare an
xml
structure which will be easy to process with jQuery.
But I'll be surprised If I'm the first who thinks about that - could
you point
me to some working solution, concept, or hint which I can follow?
regards Radek