How to load multiple data table in a page using ajax.

How to load multiple data table in a page using ajax.

sandeeppsandeepp Posts: 5Questions: 0Answers: 0
edited September 2013 in General
There are 3-4 accordions are present in my page, and each accordion has to contain a data table. Inside each accordion I have separate forms, There I will enter my query when click on submit, it will go to the backend and return me the data which needs to be display in data table. Since each accordion has separate forms, And a search is made inside a particular accordion, then I want to do another search in other accordion, at that time I don't want to loose the data for previous accordion. Thus I was trying to load the data table in Ajax(without page load), in that way we can keep the previous accordion data in-tact. But not able to find the solution.

Here is an image which will describe more about my requirement: http://imm.io/1h6gM

Replies

  • ThalliusThallius Posts: 31Questions: 4Answers: 0
    Dont know exactly what your problem is. You must replace the submit button with an input button and onClick you call a javascript function which first serialize your form data and then starts the AJAX request. How this is done is described in the manual here.

    Regards

    Claus
  • sandeeppsandeepp Posts: 5Questions: 0Answers: 0
    I did not find the manual, where is the link.
This discussion has been closed.