Questions tagged [javascript]
JavaScript is a dynamically-typed language commonly used for client-side scripting. Unless a tag for a framework/library is also included, a pure JavaScript answer is expected.
252 questions
0 votes
0 answers
47 views
Facade: load a module dynamically in an article
tl;dr: I want to load a Joomla! module when a user click a button. I have a dj-classifieds map module which calls the Google Map API. This impact my website performances way too much. I decided to ...
0 votes
2 answers
84 views
Use of JoomlaDialog autocreate and JoomlaDialog.confirm()
I'm trying to understand how to use Joomla.Dailog.confirm to implement a better looking confirm dialog than the raw javascript one but running up against problems. So in a custom component on an admin ...
0 votes
2 answers
151 views
Cassiopeia mobile menu collapse bug
I have discovered a bug in the Cassiopeia theme, and I can't find a solution to it, and I don't even know what's causing it. Searching, I found such a page, and it appears here, on several browsers: ...
0 votes
1 answer
152 views
Breezing Forms reCAPTCHA doesn't display with JCH enabled - how to fix?
A combination of JCH Optimize combining of JS files and moving them to the bottom and Breezing Forms with reCAPTCHA enabled results in invisible captcha, inability to send the form and No reCAPTCHA ...
0 votes
1 answer
55 views
JCH - what do I enter to ignore scripts from an extension?
There's an issue with BreezingForms and JCH resulting in the former not showing a reCAPTCHA because JavaScript is moved to the bottom, as I managed to debug. I don't want to disable the feature ...
1 vote
1 answer
265 views
How can I unload scripts in Joomla 5
I need to unload /media/vendor/jquery/js/jquery.min.js from Joomla 5 in my custom template. Anyone can help me?
1 vote
1 answer
84 views
How can I prevent dropdown.min.js from loading on the front end of my website?
dropdown.min.js is conflicting with the way I have my menu set up in my Joomla 4 website, but I can't disable it entirely because the back end of the website needs it. How can I keep it enabled for ...
0 votes
1 answer
436 views
Problem with dropdown menu in Joomla 4 site
I'm having a problem with the dropdown menu in my Joomla 4 site. I think there's some sort of Javascript conflict that's causing it, and I'm hoping someone smarter than me can help pinpoint it. The ...
1 vote
2 answers
248 views
Best way to save timestamp for new or modified records in custom component
In my custom component I have two database tables for items in my component with the standard 'created' and 'modified' datetime columns to contain timestamps when those items are created or modified. ...
0 votes
1 answer
151 views
Loading a JS file with web asset manager for Bootstrap modal
I'm loading a Bootstrap modal file in HtmlView.php and then a js file to manage it with the following schema: joomla.asset.json ... "assets": [ { "name": "almacen....
2 votes
1 answer
412 views
File Upload from WebApp to Joomla API
I have successfully programmed a Joomla 4/5 API to generate an API web service. There is a kind of weird bug uploading files though, because it basically works on localhost - but on the live system I ...
0 votes
2 answers
360 views
J5. Access editor instances in JavaScript
In JavaScript and J4, to get an editor object from the collection of objects with all editor instances running I use: let editor = Joomla.editors.instances[myEditorName]; I can see Joomla object in ...
0 votes
1 answer
444 views
Joomla 4 custom template not loading web assets
I am in the process of writing a custom theme for a client and am having issues with the Web Asset Manager. I have been following examples of other templates that are built for Joomla 4+, but I must ...
1 vote
0 answers
65 views
Is there a JS event that gets fired when a subform row got moved / deleted?
When Adding a subform row (in the backend) it fires the "subform-row-add" event that can be observed with JS. I've tried default namings like "subform-row-moved", "subform-row-...
0 votes
2 answers
654 views
Casseiopa template - Bootstrap Carousel
I am trying to display a carousel in an article using the bootstrap code. This is a new Joomla 4 install using the casseiopa template. Here is my code: <div class="d-flex justify-content-...