I have a web page and there is a list with multiple elements: First type of element: Second type of element: As you can see the second one does not contain the “imstuck” class as well as the “Something” text. (this is an example, in real case the second line of code is nested deeper) I…
Tag: javascript
How to display the desired information on click ReactJS
My page is divided into right and left parts. On the left side there are 3 buttons, and on the right side there is a list with 3 texts. They are in different files. I want the corresponding text to come first in the list when the button is clicked. The functionality is similar to tabs, but I don’t know
Cannot pass a personilized header with axios
I hava an application doing a CRUD, but when i try to use the method delete, i keep getting a 406 (Not Acceptable), I’m using an API formated in json_api, so i need personalized headers, in all other methods its working, but only delete not. My axios.js My headers.js And my editUnit.vue The code referen…
401 race conditions with axios/laravel – CSRF/Unauthenticated
I have a SPA application that is powered via axios. Now, I originally noticed that the CRSF token was being dropped randomly which we identified as a race condition when two requests fired concurrently. I since changed the storage mechanism for sessions to the database and added atomic blocking to my routes a…
Error cause property not recognized in TypeScript
I stumbled upon the possibility to add a cause to the Error constructor in javascript. But when I try to use this feature my app does not start as it does not know this “new” constructor arg. All of the following commands stop with the above compile error I added the following script to my package…
JS Onchange display value before processing
I have a form with a select input element. After the user selects an option, I check that option chosen. If it is bigger than I expected, I bring up an alert box asking the user if they’re sure they selected the right option. This is just a warning, so I don’t reset the value or prevent the user f…
JQuery getJSON Disable Global Events
is there a way to disable global events inside a JQuery $.getJSON function ? The documentation only mention that the global property is available for an $.ajax call, but nothing about $.getJSON. There reason I want to deactivate is that I have a global ajaxStart event that I want to not handle the async JSON …
form.js:24 Uncaught TypeError: Cannot destructure property ‘name’ of ‘e.target’ as it is undefined
im getting some error saying cant destructure the property ‘name’ of e.target undefined I will be grateful for any help. unable to assign any value in the input field. I need to sign up as a client, but when I enter the value they can’t assign, what can i do ? i also writen a code for email …
ApolloError: Fragment was used, but not defined
I have this in my complicated app: Basically, I have an export button which will export a CSV of my GraphQL data. I manually call client.query to fetch the latest data on click of the button, but it throws an error saying it can’t find the used fragment StuffTable. How do I include that fragment in the …
How can I transfer an image from html to nodejs to use it with ejs?
I was trying to create a new website using nodejs and expressjs. Basically I have a page (/ home) where there is a form with an input file. I have already created the code to show the preview of the image once loaded … what I would like to do is essentially transfer the “link” of the image t…