Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2165

Joomla! 4.x Coding • Re: Bootstrap Modal Popup with custom load trigger not working

$
0
0
I read that but I don't think it addresses using custom event triggers using javascript. I am using a child them from the Cassiopeia them and forgot to mention I am loading the correct modules into the index.php file like so:

Code:

// add Bootstrap components:\Joomla\CMS\HTML\HTMLHelper::_('bootstrap.tab', '.selector', []);\Joomla\CMS\HTML\HTMLHelper::_('bootstrap.modal', '.selector', []);\Joomla\CMS\HTML\HTMLHelper::_('bootstrap.carousel', '.selector', []);\Joomla\CMS\HTML\HTMLHelper::_('bootstrap.offcanvas', '.selector', []);
If i'm just using the modal markup as provided by Bootstrap, it works fine when I click the button to trigger it. The difference is I want to trigger the modal after page load. That's when I get the bootstrap function not found error.

I'll try to get a live website url posted this evening.

Statistics: Posted by dmurphy4 — Wed Feb 28, 2024 7:55 pm



Viewing all articles
Browse latest Browse all 2165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>