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 9244445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:01:59+00:00 2026-06-18T09:01:59+00:00

I have a WCF service that returns a record from my database..I get the

  • 0

I have a WCF service that returns a record from my database..I get the value from my WCF using an ajax call to it and get it as an JSON object..

The below image shows the response object in my browser..

enter image description here

That is fine..but when i want to give it using an alert like

alert(myData.version);

I could not get the values of it.. How do i get the values from my response ??

MY AJAX CALL :

$.ajax({

                url: urlToHandler,
                type: 'POST',
                data:{},
               dataType:'json',
                contentType: 'application/json',
                success: function(data) {    

myData = ((data.GetUpdateVersionResult), function (key, value) {
    var type;
    if (value && typeof value === 'object') {
        type = value.type;
        if (typeof type === 'string' && typeof window[type] === 'function') {
            return new (window[type])(value);
        }
    }

    return value;
});

alert(myData[0].version);

},
                    error: function(data, status, jqXHR) {                       
                        alert('There was an error.');
                    }
                }); // end $.ajax



    }
  • 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-18T09:02:04+00:00Added an answer on June 18, 2026 at 9:02 am

    The info you are looking for is in data.

    alert(data.GetUpdateVersionResult[0].version)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that returns some JSON from a serialized object: public
I have a WCF rest service using webHttpBinding that returns JSON result. The problem
My AJAX-enabled WCF service returns JSON using this contract, [DataContract] public class JQGridContract {
I have WCF service that returns an object that contains an array of bytes
I have a WCF service that returns JSON to the clients. This is the
I have a WCF service that is built using EF5. The service to returns
I have a WCF web service that returns JSON data back to an app
I have a WCF service that returns a stream object. But for some reason
I have a WCF service that returns a stream object. But for some reason
I have created a WCF REST service that returns JSON, but the properties in

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.