Category "javascript"

Next.js server keeps runing but nothing is being displayed in the browser for about 20 minutes

I'm developing this application with Next.js i'm using typescript as a language. I'm also using module css to style my components. I initialized my next applica

Suneditor insertHTML

I'm trying to use the function: insertHTML As per manual: editor.insertHTML('TEXTO DE TESTE', true, true); I created a button and put a jquery suneditor.insertH

Redirect to 404 page if url is incorrect or if a 404 error is got from BE

I need to redirect to a custom page in case if the entered URl does not exist or in case if I receive a 404 error from BE. To catch the BE error I do a navigati

Dynamics Crm - Get Triggering lookup field on quick create form load in Javascript?

Does anyone know if its possible to get the lookup field that a quick create form was launched from in javascript. I know I can get the triggering entity from t

How to properly implement useQueries in react-query?

I'm using react-query to make two separate queries in the same React component. I originally tried using two useQuery hooks: export default function Component()

Javascript Filter Method

I am trying to filter an array of objects to display some content and for some reason it does not display anything . App.js <BrowserRouter> <Routes&g

How i can change text in HTML with Javascript [duplicate]

<a href="/knowledgebase/category/community?language=tr" class="Category-Item"> <h4><span><i class="fas fa-comments">&l

How to prepopulate a react formik form

I have a table tha stores Students with an edit buttom tha opens a formik form. const EditStudentFrom = (props) => ( <Formik initialValues={{s

I want to enable crypto payment on my site [closed]

I want to enable crypto payment by giving the customer an wallet address and the send the amount of crypto to my wallet lets say 10USDT but I

rambda is missing sortWith

I really like rambda (vs ramda), however I faced the function sortWith is missing and that is even not mentioned in spec. Is there any way to get a similar func

Upgrading Jest to v28 - Error Test environment jest-environment-jsdom cannot be found

Has anyone successfully upgraded to latest Jest version 28.0.0? I'm receiving an error: Error: Test environment jest-environment-jsdom cannot be found. Make sur

how to alter reduce function so it produce different result

I have this array: data: [ '+section1+', 'big text 1 here.', 'big text 2 here followed by list:', '-this is list item;', '-this is another list item;'

Why is a _react-native-otp-verify_ library call throwing an 'is not a function' error?

I am trying to use a ReactNative package, react-native-otp-verify to implement automatic SMS verification. At this point, I am getting an error though, that I n

Supabase and Google Apps Script

Is it possible to use Supabase with Google Apps Script (GAS)? I'm new to Supabase and I've never tried to import external library to GAS before. I'm planning to

Lower the variable without impact database variable

I would like to know if it is possible to lower the quantity without touching the database because here I would like the quantity variable to decrease but witho

protected router with react-router v6

this Protected route is works well for profile page. but i want to make a protected route for multiple page. in my project , i want to implement protected route

How does function within addEventListener gets hoisted?

I found a weird behavior that I couldn't understand even reading MDN doc about hoisting. It says that functions and variables gets moved to the top of the scope

codewars Array.diff javascript

this is my first question as I'm learning programming for few days but now and I'm stuck Task: Your goal in this kata is to implement a difference function, wh

How to use a loop inside a slick slider in Vue.js

I'm using vue-slick link https://www.npmjs.com/package/vue-slick inside a bootstrap modal and when i use a v-for loop to loop through the items it display's thi

how to pass a variable to REST API with NodeJS

I must use NodeJs to set different API routes to provide front-end functionalities. I have designed the server as : routes=> controller => models The snip