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?

Style ignored when table has no elements
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Style ignored when table has no elements
#53492
Style ignored when table has no elements 9 Years, 2 Months ago Karma: 0
Hi,

I just created a table which has no <TH> elements and the table renders as if HTML table type was selected. However, If I include <TH> elements then it works fine. Do I have to include <TH> elements for all my tables?

I am using ARI Data Tables version 1.14.6.

Thanks in advance for your help.
The administrator has disabled public write access.
 
#53499
Re:Style ignored when table has no elements 9 Years, 2 Months ago Karma: 748
Hello,

If you use a table widget (like "ARI Data Table", "ARI Table Sorter" and etc.) and convert a plain HTML table to the table widget, code of HTML table should look like:

Code:


<table>
  <thead>
    <tr>
     <th>..</th>
    ...
    <th>..</th>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td>..</td>
    ...
   <td>..</td>
   </tr>
  ...
   <tr>
    <td>..</td>
    ...
   <td>..</td>
   </tr>
  </tbody>
</table>



Regards,
ARI Soft
The administrator has disabled public write access.
 
#53503
Re:Style ignored when table has no elements 9 Years, 2 Months ago Karma: 0
Sorry, I was not very clear with my question.

I am creating my table using PHP and I dont need any <TH> elements, because my table has no table-head elements. The table type I select is "ARI Data Table". When I view the page in the frontend, the table is rendered as if it has no style. However, if I include some <TH> elements, the table renders corectly.

My question is this: Does ARI Data Tables require <TH> elements to be included in the table in order to produce a table that renders correctly?
The administrator has disabled public write access.
 
#53504
Re:Style ignored when table has no elements 9 Years, 2 Months ago Karma: 748
<TH> elements (headers) are required for "ARI Data Table" widget.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#53519
Re:Style ignored when table has no elements 9 Years, 2 Months ago Karma: 0
Thank you for the response.

Unfortunately, requiring <TH> elements makes ARI Data Tables unsuitable for the project for which it was purchased. Can you suggest a possible work-around or could you assist me by telling me which PHP file to modify to remove this limitation?

I also tried to use a <TH> element with a COLSPAN attribute and that failed to render correctly. I would also like to find a work-around or a PHP file to modify to remove that limitation.
The administrator has disabled public write access.
 
#53520
Re:Style ignored when table has no elements 9 Years, 2 Months ago Karma: 748
This is requirement of jQuery plugins which is used to convert HTML tables. For example DataTables jQuery plugin is used for "ARI Data Tables" widget. If you want to change it, modifications of javascript files are required.

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