ReloadAjax, same source URL, different POST parameters

ReloadAjax, same source URL, different POST parameters

GerardoGerardo Posts: 66Questions: 0Answers: 0
edited February 2011 in Plug-ins
I have a page which loads a table using a php script as ajax source.
This script gets a set of user given parameters (form in same page).

Eventually the use might want to introduce a new set of parameters.

Questions:

1) Is there any way to initialize the table once but delay the actual draw till data is given?

2) Is there any way to pass both the source URL AND its parameters to fnReloadAjax?

Thanks,
Gerardo

Replies

  • GerardoGerardo Posts: 66Questions: 0Answers: 0
    Got it working using fnReloadAjax.

    However, as I add variables to aoData in fnServerData, had to change the call to:

    oSettings.fnServerData( oSettings.sAjaxSource, [], function(json) {

    (that is, [] instead of null as 2nd parameter.

    thanks,
    Gerardo
This discussion has been closed.