function does not work add a new row (fnAddData())

function does not work add a new row (fnAddData())

2ur1st2ur1st Posts: 4Questions: 0Answers: 0
edited December 2013 in General
come to the table data of Ajax. When starting work function
[code]$ ('# dt_example1'). dataTable ().fnAddData ([1,1,1,1,1,1,1,1])[/code]
it is not going to add a new line, and makes no new Ajax inquiry

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you please link to a test case. fnAddData is a client-side function, why would it make an Ajax request?

    Allan
  • 2ur1st2ur1st Posts: 4Questions: 0Answers: 0
    I did not properly written, instead of adding a new row , datatales again makes a request to the server, I decided to do through jQuery
    [code] $('#dt_example1 tbody').prepend('1....'); [/code]
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Are you using server-side processing? If so, then yes, every draw will make an Ajax request to the server (that's the basic operation of server-side processing).

    Allan
This discussion has been closed.