Changing page after validating a form
I created a form with basic info input, and a button that onclick will run my JS validation script. This form is on validation1.htmlAfter being secsessfully validated (basically a bool will end up as...
View ArticleAutomatic Date Calculator without button
This is my HTML code: HTML Code<div class="input-field col s12"> <label for="PMDate">PM Date</label></br> <input type="Date" name="PMDate" id="date" value="<?php echo...
View Articlereact-redux - in the hooks documentation, why is a parameter of the selector...
In the useSelector hook examples of react-redux documentation, there's a code snippet:const selectNumOfTodosWithIsDoneValue = createSelector( state => state.todos, (_, isDone) => isDone, (todos,...
View ArticleTurn object key to array index and return a new array
I was trying to solve this problem which I have an object that contains key-value pairs and looking for a way to assign each key to a specific index and return a new array. Please note: when the key is...
View ArticleHow to run multiple functions condition in every item of array based on multi...
I been searching for days how to create this.Here's what the multi checkbox looks like I know how to filter the array when i clicked just one checkbox, for example when i clicked the USD 0 - USD 50,...
View ArticleWhy does my querySelectorAll is not working even though I converted it to an...
querySelectorAll is not workingHey guys I have been trying to inject some data from my JavaScript file to my index html with dom manipulation (querySelectorAll) but it is not working. Note that I have...
View ArticleforEach loop does not check all the items in the array if a condition is met...
I have a forEach loop for an array but with an if statement to check if the input is empty. The problem is that the loop stops if it finds an empty input i want it to check all the element in the array...
View ArticleSmooth out array of increasing numbers
I have array of values like below[100,190,290,395,500,800,700,800,600,1020]Here I have sets of numbers with increasing numbers , but here there is two odd numbers when i plot it as graph , 800 and 600...
View ArticleScrollable div with stacked sticky group headers
I'm trying to build a long scrollable list of grouped items. The group titles should always be visible (stacked). If you click the groupheader you should scroll to the responding items. Using position...
View ArticleFastest way to copy typedarray to array in javascript?
The straightforward way to do it is with a for-loop:function copy(a, t, start, end) { for (var j = start; j < end; j++) { a[j] = t[j]; } } I thought a better implementation would be to use spreads +...
View ArticleChecking a substring from a programmatically added element in VueJs
I have a form that adds a new line on a button click. The new line must check for logic independently. In this case, it's chacking the first 2 digits of a barcode and associating it to a data set to...
View ArticleParsing a server log file every x amount of time
i am trying to parse a server log file in javascript every 24 hours and store the information in a database (mongodb).the parsing and storage of the data is what is confusing methe log file is in the...
View ArticleHow can I get an XMLHttpRequest to execute a POST
I'm struggling to get an XMLHttpRequest POST to work. If you look at the url, RequestHeader and body content (see the myJSON), I can use those parameters in PostMan and the POST works just fine. If...
View ArticleGet return value from function in another Class
How can I get the return value of a function in another class:I have a class with some SQLite request and I'm calling this class from another class like this:import lotManager from...
View Articlefetching data from external JSON file into an innerHTML table using JavaScript
I'm trying to fetch data from an external JSON file into the inner HTML but I can't understand what the problem is. Data is smoothly displayed through the console but nothing is showing up on the HTML...
View ArticleHow to filter results using "v-for" in Vue.JS
I am using a tabbed interface built with Bootstrap-Vue. When clicking on one of these tabs I'm using v-for to render some data in an accordion/dropdown which is displayed as a grid.Currently, I have a...
View ArticleRandomize JSON file for use in Bootstrap Table when using data-url
I have created a sort of Database table showing specific pages using an element on the SCP-Wiki which you can see here:http://www.scp-wiki.net/anomaly-classification-system-guide#toc3And here is a...
View ArticlengClass item.value ReactiveForm not working
I need to make a dynamic validation in the form, the problem is that I take the value of the item, but it is not validating when the value of the input is at 0, if someone can help me please: P<div...
View ArticlePrompt user before the session ends
I need to display a dialog box where it shows the remaining time for the current session to expire. I have implemented it, unfortunately,the timer is ticking multiple times.Here is my code.warningTime...
View ArticleCalling a function with onclick inside a form that need to be validated...
I have a button inside a post form, where i would like to call a function from, the issue here is that when clicking the button, the closure function used to validate the form is called because it's...
View Article