wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Pass JSON object from server to jQuery and loop on the object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Pass JSON object from server to jQuery and loop on the object" Watch "Pass JSON object from server to jQuery and loop on the object" New topic
Author

Pass JSON object from server to jQuery and loop on the object

Muhammad Ramahy
Greenhorn

Joined: Jun 14, 2011
Posts: 11

Hello I want to know how to loop on an Object "JSON" within jQuery

I use SpringMVC as server side

the code goes like this:

the server:


the page:

now I need to know how should I loop on the "forms" object inside jQuery and isn't the forms which is a list converted into JSON object or what?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Look at the callback function in their getJSON example

http://api.jquery.com/jQuery.getJSON/

Eric
 
Don't get me started about those stupid light bulbs.
 
subject: Pass JSON object from server to jQuery and loop on the object
 
Similar Threads
Ajax JSON looping in jQuery
JSON JQuery Grid Not getting value in JSP
Populate a dynamic table with data using JQuery
Clean up script
problem in json/ajax