Menu

Refresh display table without a page refresh.

Help
money
2007-10-16
2012-10-09
  • money

    money - 2007-10-16

    I am trying to implement a display table with pagination and sorting support which should be capable of rendering data without doing a full page refresh. For example, when I sort the table or use pagination.

    How should I go about it ? Does DisplayTag library support AJAX ? If it does, how can I use it to achieve the desired results ?

    Please help.
    Thanks.

     
    • Harun

      Harun - 2007-10-16

      I think every click in display tag, submits/refreshes the page. If you want to ajaxify your display tag, then

      1) try putting entire table in some html container like DIV and modify links for pagination and sorting to point to some Javascript function which would then fire an ajax request.

      2) You may automate the first step by using some ready-made ajax-tag library which would just refresh table created by display tag.
      in this case DisplayTag would be an inner tag. In step 1, you may need to create your own tag similar to this.

      I think this should resolve the problem. I had tried this, and it works fine...

      Thanks.

       

Log in to post a comment.