Category "javascript"

<Link> does not work as expected in NextJS

I am working on creating a Next.js app and part of it requires me to create a dynamic route on click of a card component. However, after wrapping my Cards with

Vue3 - Ace Editor on v-model change

I am using Ace Editor with Vue3: <v-ace-editor v-model:value="currentRecord.prompt" lang="json" theme="textmate" style="height: 100%;" :o

Unable to integrate Stripe checkout into Vue JS app

I am trying to redirect to stripe checkout using a click event that calls the payStripe function <button @click="payStripe" class="btn btn-primary" type="but

Is there a way to create different d3 axis for unique groups in the data? (d3.js)

I am trying to create multiarray joy plot for some data, but I struggle to make a proper axis. I am facing the problem that each column in the joy plot needs it

How to use Cypress datatables to loop through multiple test scenarios?

I am trying to use datatables to test one input field in my Cypress scenario below Scenario: The one where the user enters a value to calculate the factorial

Determine distance from the top of a div to top of window with javascript

How do I determine the distance between the very top of a div to the top of the current screen? I just want the pixel distance to the top of the current screen

Leaflet - Allow dragging outside of map

I recently set up a non geographical map with leaflet using an image layer. This obviously is a stupid decision working with 'bigger' maps due to high memory us

How does Angular differentiate between refresh event and close browser/close tab event?

How does Angular differentiate between refresh event and close browser/close tab event? I tried to listen to the event beforeunload, but I found that this event

Javascript set button active

I have a table of buttons and once it is populated, I am using document.getElementById("btn0").click(); to click the first button. The button is doing what it

Javascript - Convert object to array object

Try to convert the following object (which was getting from an API response) to an array object. const oldObj = { Georgia : { notes: "lorem ipsum",

yup date validation - Start Date must not be same as end date

I am currently stuck on how to do validation with yup for same date. Currently I am able to validate if endDate is not before startDate using : schema = yup.obj

"Uncaught TypeError: inventories.map is not a function".?

After deleting an item from the database and updating the UI with hook, I am getting this error saying "Uncaught TypeError: inventories.map is not a function".

Starting with AR.js the documentation example does not work

I'm starting with AR.js and having plenty of issues, so I tried re-starting again with the basics. I do want to put a gltf file on top of a custom marker I went

Check if Intl.DateTimeFormat options.dateStyle is supported?

Is there any way to check if the dateStyle option is supported in the Intl.DateTimeFormat API? I just became aware that older versions of Safari support Intl.Da

Why I am getting this error: declares '<MODULE>' locally, but it is not exported

I have a typescript file which exports a function to send emails using aws ses //ses.tsx let sendEmail = (args: sendmailParamsType) => { let params = {

how to do the update when my key is called key

I have a problem with an update in dynamoDB , when performing the update in dyanamo it tells me that I cannot use the key keyword "message": "Value provided in

Nightwatch JS | Looping/Iterating through Table

I've been working with Nightwatch for a few months now, using the page object method to try and make my tests as modular as possible. I've ran into a block on m

Nightwatch JS | Looping/Iterating through Table

I've been working with Nightwatch for a few months now, using the page object method to try and make my tests as modular as possible. I've ran into a block on m

the require function doesnt works and i tried node.js and it still doesnt works [duplicate]

So when i launched my website it tells that the require function isnt recognized i think that its cause its a node.js function but when i trie

Displaying javascript calculated variable output as currency

I currently have a variable that is made up of two calculated variables. How ever I need to display the outputted variable as a currency which includes thousand