All Questions
10 questions with no upvoted or accepted answers
1
vote
0
answers
79
views
Should I be integrating Babel with the frontend javascript in my Magento2 module?
I created a magento 2 module which is using mostly javascript. I want to know what is best practice for implementing backwards compatibility across older browsers in magento2.
1
vote
0
answers
22
views
How to list all JS outputed via module?
I want to have all the JS outputted as it's in the HTML, so if the bundle, minify and CDN are enabled or not I would like to get the URL listed via my module.
How could I do that?
1
vote
1
answer
2k
views
Magento2 : Save Button Not Working in Admin Form Custom Module
I am Working on A magento 2 custom Module
i have a Form as well a Product Grid in my form so i created tabs using block but Whenever
i click on save button gives me Javascript Error
TypeError: $....
1
vote
0
answers
699
views
Magento 2.2.4 Implementing Bootstrap 4 Carousel to Homepage | JS seems to not be functioning
I've been trying to get the Bootstrap 4 Carousel to work on my homepage and I've been facing an issues that seems like the JS may not be functioning. This is the way that I went about doing so.
I ...
1
vote
0
answers
41
views
need the CMS path directive for a app/code module folder
i added my own module under /app/code/my/module/ , activated it and put a java script under /app/code/my/module/view/frontend/web/js/myjs/myjs.js
it works so far. The javascript is called within a ...
1
vote
1
answer
601
views
How can i run a javascript just one time in phtml in Magento 2
I have a GTM script for login in Magento_Customer/templates/account/dashboard/info.phtml
<script>
dataLayer.push({
'events':{
'event':'login',
'category':'login',
'...
0
votes
1
answer
663
views
Magento 2 - Custom Module JS error
I am trying to add custom js file using my custom module. But getting below error in console.
Uncaught ReferenceError: Plyr is not defined
DevTools failed to load SourceMap: Could not load content ...
0
votes
0
answers
57
views
Store external API expire time in Custom Module
I use ajax to get the access token from the external API. How can I store the expired time across the site and the ajax only call again when the session expired?
test.js
/helloworld/index/display is ...
0
votes
0
answers
147
views
Adding custom JS to existing module causing errors
So I've been trying to add some custom javascript to a module, however when the JS has added it works fine in itself, but it causes a lot of errors for a lot of different scripts, and I can't figure ...
0
votes
3
answers
3k
views
Uncaught TypeError: $el.ColorPicker is not a function Magento 2
Magento ver. 2.0.18
I created a custom module in backend there is color picker options.
for this i used this link color picker answer of @EmizenTech
it works perfectly but some time it gives and if ...