I have the following situation: I have a component in my vue app that dynamically loads components depending on an API query. Here is my template: Here is my script part So basically the app dynamically loads a given component depending on some string. This works perfectly fine on my dev environment, however if i try to deploy it in
Tag: web
How Do I Add an SVG to My Javascript .textContent?
I am simply trying to insert an exclamation SVG here, but I can’t seem to do it, and I am unable to find an adequate answer on Google. The SVG is downloaded, and contained within my project folder. Answer Assuming e-mailError is a display element in your html (span, p, div etc.) the icon and associated text can be loaded
How do I keep this text content centered in a flexbox container? Because when text is added with DOM manipulation it moves off the screen
I have a project in CS class where we have to clone an app that we use on a daily basis. I chose cashapp. I have a flexbox container holding the balance value, and I want the balance text to be responsive and shit itself to always be centered in the middle of the screen. I’ve achieved this with justify-content:
Puppeteer , bringing back blank array
I’m trying to grab products from ebay and open them on amazon. So far, I have them being searched on amazon but I’m struggling with getting the products selected from the search results. Currently its outputting a blank array and im not sure why. Have tested in a separate script without the grabTitles and the for loop. So im guessing
search for value in json and return the main key [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 12 months ago. Improve this question i have a json with structure like this Now if I search for
Converting existing site to React JS (Adding ReactJS to existing webpage)
I am kinda new to front web development, but there is one interesting question for me. I got a simple vanila html+css+js website, in which I want to integrate a few actions (profile page, custom e-commerce, checkout, etc) using React. As I followed this tutorial (Add React in One Minute), I had successfully “inserted” react component into the webpage. But
Error and blank page on Vue JS when creating a json file in assets
I went through a very strange issue. I have a vue project created with vue ui. I’m editing my code in visual studio. i want to prototype and work with fake data before connecting my API. So i had the idea to create a json file in my assets folder to host my moock datas and import them to work
Dropdown on click doing nothing
I am just starting JS, so this may be a stupid question. I want to make a dropdown, where if you pick one option the related paragraph would be visible. I didn’t really know how to start this so I created the cars function to make the “e38value” paragraph visible when clicking the e38 button, but nothing happens when I
Why I can’t add “keydown” event on td >p element?
I want to trigger some action when user press a key inside a p tag inside a td element, here is the HTML of a “td” on my table. The problem is that when I add the keydown event to every paragraph element I don’t see any response. Here is how I did it. I had some other “keydown” events
What’s wrong with the animation for the menu?
Okay so basically I have to do an internet site for school with HTML but only javascript animation, all the code work proprely but when I want to transform the three lines I use for my hamburger menu into a cross with a javascript animation nothing is happening and I really don’t know why. If someone can help me I