Table - initial view

Table - initial view

MarcBMarcB Posts: 3Questions: 1Answers: 0

I would like to know if it is possible to preset the initial view upon loading the webpage.
I would like that the page load 50 entries and have the first column sorted in a descending order.

Here is the code I'm using. ( I would like not to use JS if possible)

Bulletins
Pub# Type Title
2017-04 RECALL Hard Hats
2017-03 NEW Plug Wiring

Answers

  • MarcBMarcB Posts: 3Questions: 1Answers: 0
    <table>
    <caption><strong>Bulletins</strong></caption>
    <thead>
    <tr>
    <th scope="col">Pub#</th>
    <th scope="col">Type</th>
    <th scope="col">Title</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td><a rel="nofollow" href="/files/2017-04.pdf">2017-04</a></td>
    <td>RECALL</td>
    <td>Hard Hats</td>
    </tr>
    <tr>
    <td><a rel="nofollow" href="/files/2017-03.pdf">2017-03</a></td>
    <td>NEW</td>
    <td>Plug Wiring</td>
    </tr>
    </tbody>
    </table>
    
  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    You don't seem to be using DataTables. Why are you posting in the DataTables forum?

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    Yup - this is a forum for the DataTables Javascript library. If you don't want to use Javascript, then I'm afraid DataTables wouldn't be for you (even if it does do what you need ;)). Perhaps post on a forum or StackOverflow that is specific to whatever server-side environment you are using (Ruby, Python, something else?).

    Allan

  • MarcBMarcB Posts: 3Questions: 1Answers: 0

    ok, thanks.
    I will check on StackOverflow.

This discussion has been closed.