• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

AJAX or AJAX Framework

 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,

I have 2 tabes, one below another. First table contains country details like name, population, capital, etc and second table contains states, population and other related details.

On click of one of the rows in first table related information should be displayed in the second table accordingly.

Requirement is this should happen without page refresh. So AJAX is the way to go. My question is since we are going to populate a table with data, can we accomplish this using simple AJAX or should we be using any AJAX framework?
 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I always recommend using a library like jQuery to do Ajax -- there are just too many nuances and browser dependencies to bother doing Ajax "by hand".

The fact that you are updating a table isn't an issue. You can either use a jQuery call such as $.getJSON() to get the data from the server necessary to repopulate the table, or you could just use .load() and return the pre-formatted table (easy with JSP or php) to replace the whole thing.
 
this is supposed to be a surprise, but it smells like a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic