Clearing State on Page Reload

Clearing State on Page Reload

smarthomessmarthomes Posts: 14Questions: 5Answers: 0

I would like to clear the state of a table on page reload. I use a lot of ajax for filtering and reloading the table.

I think the answer is to delete the cookie, but I am unable to find documentation that works.

Answers

  • smarthomessmarthomes Posts: 14Questions: 5Answers: 0

    I think I have it:
    localStorage.removeItem( 'DataTables_proposal_table_/proposal.cfm' );

    Does this make sense? Better way?

This discussion has been closed.