Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-21-2011, 04:03 PM   PM User | #1
KeithHenn
New to the CF scene

 
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
KeithHenn is an unknown quantity at this point
Json newbie question

Hello,

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.
Thank you.
Keith
KeithHenn is offline   Reply With Quote
Old 09-21-2011, 04:10 PM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,452
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
json is the perfect way to reduce the cruft of server-client communication of tabular data.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.8% IE9:11.4% IE10:6.5%
rnd me is offline   Reply With Quote
Reply

Bookmarks

Tags
ajax, jquery, json

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:08 PM.


Advertisement
Log in to turn off these ads.