Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

PHP variables
(1 viewing) (1) Guest
Go to bottomPage: 1234567
TOPIC: PHP variables
*
#38738
Re:PHP variables 11 Years, 8 Months ago Karma: 5
sorry, I do not see any reference in that file to server side pagination. Can I put in a request for custom development?

thanks

trevor
The administrator has disabled public write access.
 
#38739
Re:PHP variables 11 Years, 8 Months ago Karma: 760
An SQL query is parsed and executed in the file. Variables are replaced in "prepareQuery" method.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#38740
Re:PHP variables 11 Years, 8 Months ago Karma: 5
I have many variables already defined under "function prepareQuery($query)"

and further defined under "$params = array(".

They have always worked when getting data from the database but the server side does not accept the custom variable.

The current variable I am using is

Code:

$leagueid = ($_GET['leagueid']);


Does the variable have to be defined in another way?
The administrator has disabled public write access.
 
#38741
Re:PHP variables 11 Years, 8 Months ago Karma: 760
"leagueid" request variable is not sent in AJAX request which is used when server side pagination is enabled. If you want to add extra request variables to AJAX request, it requires to modify javascript code.

You can read how to add custom request variables for DataTables widget here.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#38749
Re:PHP variables 11 Years, 8 Months ago Karma: 5
Am I able to add the following to an article containing an ARI table or do I have to add to a specific file

Code:

$("#%1$s").dataTable({
  "fnServerData": function ( sSource, aoData, fnCallback ) {
             aoData.push( { "name" : "leagueid", "value" : $('#leagueid').val() } );
                        $.getJSON( sSource, aoData, function (json) { 
                              fnCallback(json);
                        });
                    },
                });



thanks
The administrator has disabled public write access.
 
#38761
Re:PHP variables 11 Years, 8 Months ago Karma: 760
Javascript code for "ARI Data Tables" widget is generated in <joomla_directory>\modules\mod_aridatatables\includes\kernel\DataTables\Models\class.DataTablesWidgetDatatableModel.php file. See "initClientInstance" method.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1234567