how do i add a timeout property?

how do i add a timeout property?

espresso74espresso74 Posts: 11Questions: 0Answers: 0
edited February 2010 in General
Currently i want to add a timeout for every request. i know i could add timeout directly inside $.ajax(timeout:1000),
but dont know how to do that in Datatable plug-in? anyone could help?

thank you.
dave

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi Dave,

    You can use fnServerData to pass in a custom function for the Ajax request. That way you can manipulate the Ajax request as you wish. For example http://datatables.net/examples/server_side/post.html - this shows server-side processing with POST rather than the default GET. This will working for Ajax source files as well as server-side processing.

    Allan
  • espresso74espresso74 Posts: 11Questions: 0Answers: 0
    Allan, thanks alot for your reply.

    Thanks
    Dave
This discussion has been closed.