Solved

ajax call how do i get an object inside the object that is returned in the success function???

Posted on 2013-01-20
3
151 Views
Last Modified: 2013-02-06
if the object that is returned has a object that is a member of that object how do i pull out their members in the success function??

object1
{
   public object2 obj;

}

success(object1){
how do i get object 1 members?

}
0
Comment
Question by:cbrune
3 Comments
 
LVL 15

Expert Comment

by:Eyal
Comment Utility
object1.object2
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
Comment Utility
success(object1){

for(var j in object1) {
    alert(  "key is : " + j + "\nvalue is : " + object1[j]  )
}

alert( "whole object as string : " + JSON.stringify(object1)  );

}
0
 

Author Comment

by:cbrune
Comment Utility
u mean obj2 members??
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

by Julian Matz As of jQuery (http://jquery.com/) 1.4 the .live() method (http://api.jquery.com/live/) supports custom events as well as some standard JavaScript events that it previously didn't support. Among these is the submit event. Unlike …
There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now