How to refresh table contents in div using jquery/ajax

I need your help in order to refresh a div id= “mytable” in my xhtml once the function is called from a method. Currently, I am loading the fullpage once it is called using the below lines.

In my java method, I am using the below line to call a javascript method:


The xhtml code :

<script type="text/javascript">
    function autoRefresh() {

<div id='mytable'>
    <h1 id='My Table'>

Source: ajax

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.