WordPress integration using 'wp_ajax_'

WordPress integration using 'wp_ajax_'

benjaminprojasbenjaminprojas Posts: 1Questions: 0Answers: 0
edited October 2011 in General
I am trying to integrate Data Tables with WordPress using the server-side method and the ajax methods built-in instead of a direct file. For example, it would look similar to this:

[code] "sAjaxSource": ajaxurl + "?action=promotionsTable",[/code]

instead of:

[code] "sAjaxSource": "/server_processing.php",[/code]

because of the way that this function is set up, it is inside a PHP class and the first few lines of that look like this:

[code]
<?php
Class DataTables {

public static function promotionsTable() {

}
[/code]

I am just wondering if this will work, or if there is anything different that I need to do. From my initial tests, I have not been able to get anything up and running.
This discussion has been closed.