File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create a table through ajax dynamically

 
sandeep kethe
Greenhorn
Posts: 14
  • 0
  • 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
 
K West
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • 0
  • 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..

 
Dawn Charangat
Ranch Hand
Posts: 249
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dawn Charangat. This is what i need
 
Srikanth Kumar
Ranch Hand
Posts: 36
  • 0
  • 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.

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic