React keep interval running in the background
I can't find an answer to my question anywhere. long story short i have a web app (MERN stack) and i want to keep making requests from the frontend (react) to the backend (node) periodically EVEN WHEN...
View ArticleCarousel Indicators progress bar
I want to fill the bootstrap carousel indicators with a progress bar,synchronized to the slide change interval (about 4 sec. ). This is my best solution I came up so far.The problem is: not active...
View ArticleHow to display data in input from selecting option in drop down with database...
I have a problem with display data in the input after selected items in database. because I use a dynamic row. I selected data from first row, and data display on a first row input text. and then I add...
View ArticleFire change event only after single column value changes in Kendo grid
I am trying to get a button flash behavior when any single column value is changed in the Kendo grid. With the below code, this event is firing when I select column not when I change value. Is there...
View ArticleHow to dynamically print the raw value of the input with AutoNumeric js?
I need your help on AutoNumeric js.I use input and span this way:<input type="text" name="currency" id="currency"> <span class="value_currency"></span> I'm using AutoNumeric in...
View ArticleGetting distance from center to top right corner in Google map [closed]
I searched and found that we can get distance for the pink line. so is there anyway to get distance from center to top right corner of google map directly? Or anyway to get distance for the blue line.
View ArticleVue form validation issue
I am trying to build my own simple form validation(modeled after laravel form validation) with vue that I plan to use on a project that am currently working.My issue is peculiar in that when I click...
View ArticleHow do I reset the setInterval timer?
How do I reset a setInterval timer back to 0?var myTimer = setInterval(function() { console.log('idle'); }, 4000); I tried clearInterval(myTimer) but that completely stops the interval. I want it to...
View ArticleAssign prop values when doing a default export in ReactJS
I am having such a pain with such a small issue. I am integrating Launch Darkly which takes a certain number of parameters for it work during the export. My export is as follows:export default...
View ArticleAll methods return '.autoNumeric is not a function - Can't unformat numbers
I'm trying to get the raw values of input numbers formatted using autoNumeric, but can't because every method I try to do this with it returning '.autoNumeric is not a function' in the...
View ArticleVUE:how to bind multiple tabs to one component and let it activates only one...
I have those tabs to be created dynamically by results returned from spring boot. Lets's say, there are 3 tabs generated.Now I bind one component to those generated tabs.But, once I click on either one...
View ArticleAngular 6 Form not passing variable to URL
I am trying to create a form in angular that takes a name, passes it to a URL, and returns a portion of a .json file. I can't figure out why the url is not getting updated though.The HTML:<form...
View ArticleJavascript to export html from web page into excel template (xltx)
I want to use javascript to export html from my web page into a specific excel template (extension xltx). I found this code below which is working perfectly to export the html into a new workbook,...
View ArticleRemove duplications and sort array by most frequent tags
I have array of objects. That objects has array of tags.For example:const tags = [{ id:"1, Category: "Food" tags: ["One", "Two", "Three"], }, { id:"2, Category: "Drinks" tags: ["Four", "Five", "Six"],...
View ArticleIs there a way to have one part of a code loop but not another? (p5)
I'm trying to make a settings screen where you can change your name and the color of the screen but in order to have the input box be editable I have to have noLoop() running, this makes it so the...
View ArticleHow to check empty div in Javascript/jQuery?
I have HTML code below in which I want to check empty div in javascript. If div.featured-block is empty then it should apply display: none on the house-senate class. HTML Code:<html class="js...
View Articlejavascript working in fiddle but not in my html
this is probably the biggest noob question, but i have code that works in the fiddle and not in my html. What's missing? Here's the fiddle link and below is my index.html:...
View ArticleDescription Box using "onmouseover"
I am playing with the onmouseover event in javascriptI would like a little box to pop up and remain up until there is no onmouseover anymoreI think it's called a description box, but I am not sure.How...
View Articlefunction changing property on click (width) not working
I started adding some JS to my website and I have problem with this function. It is not working:html:<img class="button1" src="button1.svg" alt="" onclick="buttonclick()"> js:function...
View ArticleReturn index of greatest value in an array
I have this:var arr = [0, 21, 22, 7]; What's the best way to return the index of the highest value into another variable?
View Article