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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Javascript on selection?
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Javascript on selection?
#58391
Javascript on selection? 7 Years, 7 Months ago Karma: 0
Hi

I have a form in my page along with your Data Table, and I want to read the row of the table when I click over to it
I need to read the values in that row via Javascript. I guess I can do it with getElementById, but I'm not sure how to get that element on the page dynamically.
I mean not just looking at the page source , because it's linked to the underlying data and will change every time.

Can you please advise.

Many thanks.
The administrator has disabled public write access.
 
#58395
Re:Javascript on selection? 7 Years, 7 Months ago Karma: 747
Hello,

Do you use "ARI Data Table" widget ("Choose table type" parameter is set to "ARI Data Table")? Is "Server side pagination" parameter enabled or disabled?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#58404
Re:Javascript on selection? 7 Years, 7 Months ago Karma: 0
Hi

Thanks for your reply.
The widget is "ARI Data Table" and "Server side pagination" is enabled.

Is it possible to click and get the row of my table with JS?

Many thanks
The administrator has disabled public write access.
 
#58408
Re:Javascript on selection? 7 Years, 7 Months ago Karma: 747
See "adt_DataTable_DrawCallback" function in <joomla_directory>/modules/mod_aridatatables/includes/js/widgets/datatable/js/jquery.dataTables.extra.js file. You can place your code in the function. It is called each time when rows are rendered in a table.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#58410
Re:Javascript on selection? 7 Years, 7 Months ago Karma: 0
Thank you, I'll look into it this weekend.

Is there a way to edit a row (actually just a cell) of my table and update directly the underlying table in the database?

Many thanks
The administrator has disabled public write access.
 
#58413
Re:Javascript on selection? 7 Years, 7 Months ago Karma: 747
The extension doesn't support this ability.

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