This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 15362
    
    6
Look at the callback function in their getJSON example

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass JSON object from server to jQuery and loop on the object
 
Similar Threads
Ajax JSON looping in jQuery
Clean up script
JSON JQuery Grid Not getting value in JSP
problem in json/ajax
Populate a dynamic table with data using JQuery