|
-
September 26th, 2007, 08:44 AM
#6
Re: populating Drop down with items frmo server.
 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 ..
He is not strong and powerful, who throws people down, but he is strong who withholds himself from anger
MyWeb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|