This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

how to create a table through ajax dynamically  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends

I am fairly new to Ajax. CAn any one help me how to create a html table using Ajax dynamically


Thank in advance



Regards
K. Sandeep
 
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Sure..What are you exactly looking for. Explain more.
Are you talking about Javascript

Well is this what you want..



If not explain more what exactly you want to achieve..

 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you've mentioned the word "ajax" here, I take it that you want to populate a table dynamically as opposed to creating one. You can send in the request for fetching your data via an xmlhttprequest, and then the resulting stuff may be populated as a table created via javascript [as mentioned above by another fellow rancher], or create a table structure from within the servlet itself, and return the html code back to the web page, so that you just need to add it to a <div> and refresh it.

Dawn
 
sandeep kethe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dawn Charangat. This is what i need
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the table is already exists and if you want to populate the data into the table from an ajax call, then the following code will be useful.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!