Category "javascript"

Array as argument and using the array in the new function in javascript

var filterKeys = ["hello this is javascript", "Movies"]; var title= "Hello" searchKeyInNo = keySearch(filterKeys, title) function KeySearch(filteredArray, sear

(MUI v5) (Nested Modal) Both parent and child modal die at the same time

I have simulate my issue in codesandbox: https://codesandbox.io/s/trusting-babbage-ovj2we?file=/src/App.js I have create a nested modal, when the parent modal i

Return json response in ajax request laravel

I have the following ajax code in my frontend. var formData = $('#application-information-step-one').serialize(); var actionUrl = $('#application-informatio

Error: "Module build failed (from ./node_modules/happypack/loader.js):"

This is the theme I am using for a dashboard project (I am under serious timeline pressure). https://themeforest.net/item/enlite-prime-reactjs-fullstack-website

How can I avoid control character interpretation in Javascript template string interpolation?

I have a string variable containing a control character (newline). I want to output that variable but with the control character as its literal representation a

How can I use the react testing library to test the style characteristics of an range input?

I need to get the styles of the input range-slider in javascript so i can test it. I have made a range slider component which accepts different style properties

Why are the red cells moving? javascript

I have this assingment for school where there is a hidden cell in the table and you will have to try and find it. My problem is that the squares that are incorr

jQuery for showing different text field showing when select two different items in selectbox

How to display the text fields when choosing different option from the selectoption (if select USA option USA text field need to show)? <select name="cntry"&

Display all data before filtering using javascript, kendo and mysql

I have a select option that the purpose is to filter the division of the user, in my current code the data will show if the user start selecting a list of data

Javascript for deleting DIV that blurs website

There is a website with the following div: <div class="x" style="user-select: none; filter: blur(4px);"> under this div there are a lot of other divs. I

Moving of scroll bar up and down hide records from hierarchical records tree from UI. gwt and extjs

I am using tree in treepanel and treestore to show hierarchical records on UI for one of my application. When I add some no of records vertical scroll bar is ap

How can I access and process nested objects, arrays or JSON?

I have a nested data structure containing objects and arrays. How can I extract the information, i.e. access a specific or multiple values (or keys)? For examp

Can't insert data with mongoDB atlas; Error: queryTxt ETIMEOUT

I've tried to connect to mongodb with node.js, but get the following error. Although I've tried several available solution in this platform, like, changing my D

Is it okey to use side effects in the useState hook callback?

Imagine situation: const [value, setValue] = useState(false); const setSomething = (val) => { setValue((prev) => { fn(); dispatch(action); // or an

Error when run in command line "npm install firebase"

C:\Users\user\Desktop\CarInventory>npm install firebase npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: 3d-reac

error handling javascript (paypal sandbox platform)

I am trying to build a PayPal sandbox platform with JavaScript, but unfortunately I did not find any working (at least for me) content from PayPal for setting u

How to do cartesian product with TypeScript?

Here's the type signature that I'm after: function cartesianProduct<T1, T2, T3, T4, T5, T6, T7, T8>([c1, c2, c3, c4, c5, c6, c7, c8]: [T1[], T2[], T3[], T

How can I use tsx in Vue Compostion setup function?

When I write tsx in @vue/composition-api setup(){}, just like <script lang="tsx"> import { defineComponent,} from '@vue/composition-api'; export defineC

how does $: in Svelte works

was reading a svelte tutorial, it's mentioned that $: this is regular in JavaScript, but don't understand it. let count = 0; $: doubled = count * 2; how would

Add eventlistener to multiple elements to execute multiple functions

I am trying to add an eventlistener to 2 objects but only get it to work with 1. There are 2 textinputs which both should execute 4 functions on input. The firs