*
The moose likes HTML, CSS and JavaScript and the fly likes how to create a table through ajax dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to create a table through ajax dynamically" Watch "how to create a table through ajax dynamically" New topic
Author

how to create a table through ajax dynamically

sandeep kethe
Greenhorn

Joined: Jan 11, 2009
Posts: 14
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

Joined: Sep 10, 2008
Posts: 58

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..



Years teach us more than books.
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
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

Joined: Jan 11, 2009
Posts: 14
Thanks Dawn Charangat. This is what i need
Srikanth Kumar
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
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.



Srikanth Kumar
SCJP 5, SCWCD 5, SCDJWS 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to create a table through ajax dynamically
 
Similar Threads
AJAX and table
creating a database table
can i dynamically create a table from the front end
Create table with JavaScript dynamically
JSP creating html rows for displaying data