Category "javascript"

How to add OAuth 2.0 authentication with smtp to send email using javascript?

I need to add oauth 2.0 security in my existing email submission form. There are some other methods that I found online but as I am using smtp, I just want to a

CKEditor: [CKEditorWebpackPlugin] Error: Too many JS assets has been found during the compilation

I am updating the CKEditor packages in my Rails/React app from ~12 to the latest version 27. When running the app locally in my webpack-dev-server I see this e

Is there any solution of "JavaScript heap out of memory" & "Array buffer failed"?

error image I'm building a website with react. But suddenly when I entered npm run start after some time it gave me errors Fatal error: NewSpace:: Rebalance All

How do I set JSON data as a cookie while preserving the indentation?

I'm trying to set a cookie containing some JSON data, but I also need to preserve line breaks. I've got a way of keeping them and rendering them which works fin

Switch Statement Keeps Returning Undefined

I'm fairly new to switch statements in general but please could anyone let me know why my switch statement here is returning undefined? I feel like i've looked

How to preserve scroll-chain on overflow scrollable element on mobile?

I have this fixed height scrollable ul element which is for a video playlist. Scrolling works fine but when the user scrolls thru all the content they get stuck

Why getStaticProps giving error of "Failed to load SWC binary for win32/x64"?

I am using getStaticProps() in a Next.js app but when I run the app it gives ERROR:- warn - Attempted to load @next/swc-win32-x64-gnu, but it was not installed

Require minimum filter input length with TomSelect (like select2's minimumInputLength)

I have a webpage with a multi-select field for names, and to prevent biases, I want to only show list entries to users after they have entered at least 3 charac

My terminal done with javascript doesn't return the correct result

I have a lot of problems with my js code. So, I make an html page looks like terminal, for school exercise. The html and css works good, but now I have to make

How to convert buffer to image with react native

I am using pouchdb with react native (expo) to store the local data and also the images and when trying to recover the image I get the following data Object {

How to DRM protect an image

I am trying to create a comic website, but I want to protect the images to avoid copying the image. I want to do something like the Webtoons viewer. I have no i

Issue with click function not working after toggle

Sorry the title is vague, I'm not sure how best to describe this. I have a function which should do the following: If a menu link has children: preventDefault o

How to change the visibility of a div when browser reloads?

I want to make the main div hidden when someone hits the refresh button and then after sometime making the main div visible. The reload detection code is workin

Is there a way that an event listener function could execute although there's an if statement preventing it from doing so?

I've been trying to make this work but I can't seem to figure out where the problem is coming from or what's producing it. The script randomly executes parts of

Bootstrap 5 carousel with multiple items

i'm new to bootstrap and i'm doing an ecommerce template for learning bootstrap 5. There is a way to make the bootstrap 5 carousel to show multiple slide at the

How to access just the changed data of an 'input' event regardless of text deletion or insertion like pasted or typed or restored text for the latter?

I have a textarea and would like to return the most recent change to the text for use in avia JavaScript function. That would include: Text that is input via ke

React Native Community DateTimePicker value.getTime is undefined

Hey guys I have few questions regarding the community version of the RN DateTimePicker (https://github.com/react-native-datetimepicker/datetimepicker#value-requ

react-query - How can I access my queries in multiple components?

I'm just beginning with react query and used it to get a list of books from the server using useQuery in my ListBooks Component const { data, error, isLoading,

can not loop through $slots object in Vue 3 to pass all slots from parent to child

I can not loop through the $slots object in Vue 3 to pass all slots from parent to child, the $slots object seems empty in the child component. How can I loop t

Replace All references to email Pentaho Jobs error checking in Repository

I have over 100 jobs (kjb) that reference an email address that is no longer active. I wish to globally change the email address dynamically using PDI (spoon) i