How can I call an http: get/ajax from jquery and parse returns tokens?
http://localhost/getstuff?id=2 // end point is from asp.net mvc4 web api
Output:
<StuffList> <Stuff id="2" stuff="thestuff"/> </StuffList>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use the
$.ajaxmethod. So assuming that the server correctly set the response Content-Type header totext/xmland sent the XML you have shown in your question, jQuery will automatically build an XML document that you could manipulate: