Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8187595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:36:46+00:00 2026-06-07T02:36:46+00:00

How can I call an http: get/ajax from jquery and parse returns tokens? http://localhost/getstuff?id=2

  • 0

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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:36:48+00:00Added an answer on June 7, 2026 at 2:36 am

    You could use the $.ajax method. So assuming that the server correctly set the response Content-Type header to text/xml and sent the XML you have shown in your question, jQuery will automatically build an XML document that you could manipulate:

    $.ajax({
        url: '/api/values',
        type: 'GET',
        success: function (result) {
            // result is the XML, you could do any selectors on it
            // for example var stuff = $('Stuff[id=2]', result);
    
            var stuff = $('Stuff', result);
            var id = stuff.attr('id');
            var someStuff = stuff.attr('stuff');
    
            alert(id);
            alert(someStuff);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the success data from a jquery Ajax call so I
I am trying to get a Ajax-call made from jQuery to return a JavaScript
I am trying to call one jsp files from Jquery-ajax call. But, I can
I know about AJAX cross-domain policy. So I can't just call http://www.google.com over a
I am calling a Page Method from JQuery as described here: http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/ This is
I am using a jQuery Ajax control from this site http://abeautifulsite.net/2008/03/jquery-file-tree/ I have it
I need to pass the response from ajax call to a jquery template.The response
Possible Duplicate: Trying to get tag-it to work with an AJAX call How can
I'm using the script from http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/ I modified the onComplete to add a link
I have created a http handler fro my Jquery ajax call. which is working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.