Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Json newbie question
09-21-2011, 05:03 PM #1
- Join Date
- Sep 2011
- Thanked 0 Times in 0 Posts
Json newbie question
I have a java web application and am looking to implement some ajax into it. I plan on using jquery and have been reading about jquery with json to return data.
What I have is a table that contains all values entered for a specific month, there are about 40 rows, and each contain 3 text boxes which can be modified. At the top of the screen there is the ability to jump to previous months or next months. It is the traversing between months that I'd like to implement using ajax. My plan was to submit the month number asynchronously and re-render the table that was returned from ajax.
The question I have is, is JSON a viable option to return a whole page of data? In the past what I would have done would be to make the call via jquery get the html code as a response and over-write that code onto the page.
Any advice would be greatly appreciated.
09-21-2011, 05:10 PM #2
- Join Date
- Jun 2007
- Thanked 626 Times in 605 Posts
json is the perfect way to reduce the cruft of server-client communication of tabular data.Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com