aspose file tools*
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
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
 
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
Clean up script
Ajax JSON looping in jQuery
problem in json/ajax
JSON JQuery Grid Not getting value in JSP
Populate a dynamic table with data using JQuery