How can i extract a live row counter for out-of-site implementation?

How can i extract a live row counter for out-of-site implementation?

joshljoshl Posts: 3Questions: 1Answers: 0

I've looked through the code and can't find a way to track the counter. Could someone please guide me in the right direction?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921

    Not sure which counter you want. Are you looking for information provided by page().info()?

    Kevin

  • joshljoshl Posts: 3Questions: 1Answers: 0

    I should have stated that. The project count where it states currently '340'. This number is constantly changing in my business and I would like to put this number on to my main company website.

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921
    Answer ✓

    The Project Count: 340 (0 Hidden) doesn't look like a Datatables element. You can probably retrieve it using standard Javascript/jQuery methods. However that number does seem to correspond with the Datatables info element (Showing 1 to 50 of 340 entries). You can get the 340 from this using the page.info() (sorry had the wrong link earlier) API. The recordsTotal value is the 340.

    Kevin

  • joshljoshl Posts: 3Questions: 1Answers: 0

    Interesting.. Thank you for your help. I still need to find a way to convert it to a live counter but at least i now know the source.

This discussion has been closed.