I am building a website with the CMS Prestashop,and I am trying to change its style. In prestashop we can add one javascript file and do some change, however the system executes just the first lines.So the question is, why ? Maybe its comes from my code. When i try to change the order of my lines just the fir…
Tag: javascript
Problem with showing divs on click with Jquery
if you run my snippet and start clicking around you will be shown div’s like mercedes, boats or houses and that’s perfectly fine but problem is that when you first run this snippet nothing will be shown, you need to click something and that isn’t way to go. How can i make first div visible f…
is there any workaround for returning the value of res from readCsv() method instead of undefined?
the scenario is i am having the file uploader, which accept .json,.csv file after having file, If i clicked on upload button ,then homeComponent call the service dataparser , which is having two function readJson readCsv, and readcsv function returning the observable other one returns array ,this is simple i …
Javascript not printing within php loop
new to php and javascript. I am trying to print an id using javascript within a php loop and nothing is turning up. Here is the code: Answer The problem is, that you want PHP to know, what printID() is and what it should do. PHP knows nothing about JavaScript functions, because JavaScript and PHP are executed…
Web page components animation
I’m a beginner learning front end development. I’m curious to know and learn how other developers create animated component like the one in below site. https://bzx.network/ Do we have a tool that will let us create this? Where I can learn these? I couldnot find the tool, right search keyword in go…
Booking reminder Nodemailer node-cron MongoDB
I am having problem sending a booking reminder email. I use nodemailer and node-cron. It works good. I would like to read date from database and e.g. send email one week before reservation. I have no idea how to do it. My model: I think start time parse to date? How read only this reservation which will be in…
Error with menu button toggle css js html
I would like to use part of this code from codepen on my website but the menu button does not currently work. I do not know what the problem is so I have not tried anything to solve it. The code works flawlessly on codepen but stops working when use in visual studio. The HTML code is: The CSS: And
JavaScript,Discord.js, Node.js TypeError: Cannot read property ‘execute’ of undefined
I’m building a discord bot and I want to save information in bdays.json but this error pops up. All other commands are working just fine but I am getting this error: TypeError: Cannot read property ‘execute’ of undefined What should I do? main.js and remeber.js What should I do? Answer You h…
How to call a method once a component is rendered?
I have a parent component that conditionally renders two components. Once I am done entering data in the first component, I click done and then render the second component. I want the second component to only then parse all the data I entered in the first component. Im a little confused which lifecycle method…
Express Sharp install via Docker issue
I need to use sharp. Its work fine on my workspace but if I deploymeny via docker then I get error. I am implementation all steps. I think sharp is prebuilt when first install. It uses the architecture of my computer(darwin, arm) But when it runs on the docker, although it gets built again, the work talks abo…