Category "javascript"

How does this specific piece of external copy/paste code get called if the script it relies on loads asynchronously?

I've noticed a lot of third party monitoring tools that you need to copy and paste into your website follows this pattern: <!-- For example, Loggly -->

Auto focusing on the gmail input field and then auto-filling it

I've gone through all the links that direct me towards using .focus() and/or auto focus(I don't need auto-focus as my work doesn't involve handling the html). I

Decode MVT from the browser

I'm trying to decode MVT data from the browser, to use it in the Google Maps API. In Python, I'm using the following package: import mapbox_vector_tile mapbox_v

How to reach multiple elements in an array without using axios

Yesterday i saw a React project on youtube and i wanted to test it myself. This function connects to the link and returns me the questions of the category and d

Including a specific field from a specific item from an array

I have the following function: function processMegaventorySalesOrder(salesOrder) { let endUser = salesOrder["SalesOrderContactPerson"] let clientName = sale

Trying to swap key value pairs of an object. Any advices?

Trying to swap key-value pairs of an object! // an object through we have to iterate and swap the key value pairs const product = { id: "FRT34495", price: 3

How to properly print out list of scores in order from highest to lowest in code.org/javascript?

I have function of "endgame" and here's how the function goes function endgame() { setScreen("scorescreen"); ismytimergoing = false; appendItem(scorelis

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