• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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?
Posts: 67645
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.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic