SSL Labs ScoreSecurityHeaders.io ScoreHSTS Preloaded

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× EU e-Privacy Directive needs your help!

A free extension like this survives only by reputation. You can help by submitting a review in the Joomla Extension Directory. Please take the time to make a review by clicking on the link below (opens in a new window)

extensions.joomla.org/write-review/review/add?extension_id=4850

Show Cookies Table Onclick

More
1 month 5 days ago #4185 by marco-marco
Hi Michael,

Thank you for the plugin, all works well and the best solution for Joomla.

I would like to show the cookies table inside the page strip on a button click.

I've added a button to trigger the script and the following code:

<script type="text/javascript">
function showCookies(cookieDetailsTable) {
var c = document.getElementById("cookieDetailsTable");
console.log (c);
if(c.style.display === 'none')
c.style.display = 'block';
else
c.style.display = 'none';
}
</script>

The code runs without any errors, I can see the table style changing in the console but it's not updating the html. Is there a function that is stopping the table from showing?

Many thanks!

Please Log in or Create an account to join the conversation.

More
1 month 5 days ago #4186 by marco-marco
Hi,

I found the problem, I was loading the page strip and the module at the same time so had multiple IDs on the page.

Thanks again for the plugin.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum