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


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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? 1 Year, 1 Month 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? 1 Year, 1 Month ago Karma: 666
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? 1 Year, 1 Month 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? 1 Year, 1 Month ago Karma: 666
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? 1 Year, 1 Month 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? 1 Year, 1 Month ago Karma: 666
The extension doesn't support this ability.

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