Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,296
    Thanks
    10
    Thanked 583 Times in 564 Posts
    json is the perfect way to reduce the cruft of server-client communication of tabular data.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •