How to get the selected values from a selected list but on the same page, not on the processing one

How to get the selected values from a selected list but on the same page, not on the processing one

vladivostokvladivostok Posts: 2Questions: 0Answers: 0
edited June 2012 in General
Hello

I have 3 select lists, and I need the results below them and in a sorted and paginated table



How do you work with 2 tables on the Server Side Processing page? I have a join query.



Code:

[code]

$(document).ready(function() {
$('#shops').dataTable( {
"bProcessing": true,
"bServerSide": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "datatables/php/server_processing_shops.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
/* Add some extra data to the sender */
aoData.push( { "name": "town_shop", "value": "Krakow" } );
$.getJSON( sSource, aoData, function (json) {
/* Do whatever additional processing you want on the callback, then tell DataTables */
fnCallback(json)
} );

[/code]
This discussion has been closed.