User Profile
Collapse
-
check this link http://www.sitepoint.c om/article/server-side-xml-javascript... -
-
You can go to this site http://aspalliance.com/1194_Web_Applic ations_with_AJA X...Leave a comment:
-
Thanks pbmods,
I am new to Java Script and I couldn't understand the present variable.Can u explain briefly how it works in our code.
i have an XML file and have to retrieve the particular node texts and add them
to the drop-down.In that XML file 3 or 4 nodes may contain the same texts.So I have to check whether the drop-down already contains the similar text before adding the next option(next node's text).If the drop-down already...Leave a comment:
-
Thanks pbmods,
I understand the code u have mentioned.....b ut i don't know really whether it is syntactically correct or not.
and if it is the first time looping through is it OK to use "&& present" in the for loop.
can u correct the syntax and post...
-Satya...Leave a comment:
-
Thanks for ur reply,
but my population is not from the database and my requirement is to check whether that particular option is there on the browser side itself.Leave a comment:
-
Yes,if u want to view the XML content of the response object u have to call
XmlHttpRequest. responseText.
If u alert the XmlHttpRequest. responseXML it shows an [object].
Use XmlHttpRequest. responseXML method to handle the XML file on the browser side.Use XmlHttpRequest. responseXML.doc umentElement to get the root node of the XML file.By using this u can go thru' whatever the nodes and attributes of the nodes u want to...Leave a comment:
-
How to find that a particular option is there in a SELECT element
Hi all,
My page has a SELECT(drop-down list) element and i have to add options dynamically to it.Before adding i have to know whether that option is already there in the drop-down list.
i tried this....
if(myDropDown.o ptions[2].text == "NewYork") {
............
this checks the 3rd option of the drop-down list, but i want to check all the option items.
i can go thru' every...
No activity results to display
Show More
Leave a comment: