Quote Originally Posted by PeejAvery
EDIT: And I agree with Andreas...it's NOT the smartest/best/cleanest way of doing it.
So I am going to use the cleanest way by sending pure XML as Andreas said, it s the Best use of AJAX, and not the XML with <Options> tags, as you said it not smart way.


I only need to know how can I parse XML , so that In the next step I can use those Items read from XML, into the for loop which you gave me an example of

var theOptions = will create array of values read from XML elements.
for(i = 0; i < theOptions.length; i++) {
theSelect.options[i] = new Option(theOptions[i], theOptions[i]);
}

thanks for Help.. I will mark my POST resolved but just in case if you could put up some code to read XML elements..that would be highly appreciated.

Thanks to Both of you ..