using child text of an element to set/update a variable
Does anyone know what I could to my <li> elements in the following component so that clicking on one of the <li> elements would set activityType to the text contained in that particular...
View Articlecan't get output from server firebase(reactjs)
i want to outputting dataList(paragraph, text, title), you can look data at screenshot 2. i can't get an dataList output from server, but i can get an vote output using props.vote (Post.js). also,...
View ArticleMy javascript code is not working due to my infite loop that is made by purpose
Hye, I started with javascript and made an infite loop by purpose. The problem is that it is not executing. Don't think I don't want an infitite loop, I do, but it is not working! Here is my code:...
View ArticleLaravel 6 using Axios to upload image with vuejs-clipper
I want to implement a function to upload a cropable profile photo using vuejs-clipper. I got the frontend set which uses the clipper-upload& clipper-fixed to upload and view/cropping the image....
View ArticleRender a date that comes asynchronous for each item in v-for
I have an array of servers, which I display in the template using v-for. Using the vue-nats library, I subscribe each server to receive dynamic data.methods: { subscribe(uuid) {...
View ArticleBootstrap 4 responsive navbar potential bug, extra space included in...
I'm fairly certain I've found a bug within the laravel included bootstrap jquery collapsing div code. I have a sidebar which collapses into a menu at a certain screen size breakpoint. I created a post...
View ArticleNo component factory found for [object Object]. Did you add it to...
I understand that this will probably be marked as a duplicate as it has been asked many times on various forums i.e.Error: No component factory found for [object...
View ArticleHow to get scrollbar position with Javascript?
I'm trying to detect the position of the browser's scrollbar with JavaScript to decide where in the page the current view is. My guess is that I have to detect where the thumb on the track is, and then...
View ArticleHow can i get dateRange based on month
I am trying to get the dateRange within a month based on the start of the week in that month to the end of week. So for example, if i pass the month January, 2020, the dateRange should fetch data from...
View ArticleNodeJS, adding actions to a Promise in a While loop
so I am fairly new to using Promises in NodeJS. I am trying to dynamically create a promise with a few actions depending on the characters in a string.//let actions = []; getPromise = get(srcBucket,...
View ArticleUse CSS to only display a custom horizontal scrollbar when the mouse is...
I have a custom scrollbar that I only want visible when the mouse is moved on the page. When the mouse has been still for ~2 seconds, the scrollbar should fade out. I've tried to set this up with CSS,...
View Article(Javascript) How to check if long/lat coordinates from...
I request the user's location from the browser using navigator.geolocation.getCurrentPosition(), but I want to check if they are within a radius of 100ft from a center point. The center point will be a...
View ArticleHow do you use a reduce function to find the intersection/union between a set...
I have re-created foreach + map + reduce functions in js:function forEach(array, callback) { for (var i=0;i<array.length;i++) { callback(array[i]) } } function mapWith(array, callback) { var output=...
View ArticleKeep changes to a variable from an if statement
I am trying to figure out how to change a variable in an if statement and make it so that the changes stay globally. User input: !change Hivar A = "Hello" if (msg.content.includes ('!change')) { A =...
View ArticleInsert in public Google calendar using API
I have a google calendar that I have set up as public, I want to build a web app so that anyone can see the availabilities and can insert an event. I am using javascript, the retrieving of the...
View ArticleNo code was changed. No Firebase App '[DEFAULT]' has been created - call...
I was about to start coding my app when all of a sudden, my app doesn't work. It keeps popping up with an error (I shared a screenshot to the attached files). I did not change any code at all. Just...
View ArticleBasic question for javascript professionals
I created this function to work only if the goerror variable is = 0. That is, if the variable is goerror = 1, it will execute the regad() function or not ? var goerror = 0; player.on('adserror',...
View ArticleHow to map through api data in React?
Im building a app using a country api and which displays information such as name, population and region of a country. I want to display the languages, currencies and borders with the country. Ive...
View ArticlePHP script for SMTP mailing seems to not run
I've been working on a website page that was supposed to send data that was entered on my e-mail. And seems like this script just doesn't work I'm new to html and php, so i'm not sure what to...
View ArticleHow can I use multiple refs for an array of elements with hooks?
As far as I understood I can use refs for a single element like this:const { useRef, useState, useEffect } = React; const App = () => { const elRef = useRef(); const [elWidth, setElWidth] =...
View Article