Category "javascript"

get plural value for time units (days, hours, minutes) using Intl API

I'm trying to localize time units and I'm able to do so for singular (hour, day, minute) but I'm unable to find any way to figure out the plural equivalent (hou

How do I get my webpage go to another page when the validations are true

I need help trying to get my webpage to go to a thank you page if all validation are true and entered correctly then it would go there. But I have no luck tryin

HTML text box and button that redirects user to a page of same name not working when <form> is added

Below is a code that redirects people to a page of the same name. For example, if I type in the word 'chocolate' and click 'Submit', the user should be redirect

I am trying to open a new url page and get the title of new page

I am trying to open a new url page and get the title of new page. issue: it is openning new page but the title is for previous page, (not new page). // open pd

@metamask/eth-sig-util" buffer isn't defined?

I'm trying to encrypt some data using MetaMask's public key for encryption (https://docs.metamask.io/guide/rpc-api.html#unrestricted-methods). However, on page

when clicked outside the dropdown menu then top default value of the search need to take

how to set After searching from a search bar if it is clicked outside the search bar then it should take the first value of my search ?? I have tried with addEv

React re-render vs function re-evaluation

Could someone validate if my assumptions after docs and tutorials reading are correct? First of all I would like to introduce some terminology: reevaluation is

Firefox error: NetworkError when attempting to fetch resource only from extension

I'm currently developing an extension for firefox/chrome that requires fetching some data from another website. The extension seems to work fine from Chrome, ho

Why does the ExtJS style not match the official web demo?

This is the official demo This is my demo The splitter element style is different, I don't know why this happened. And my code is here, and I put my demo to htt

React: Uncaught (in promise) Error: Request failed with status code 400

I'm sending a uid a token and two form inputs from formik to my django rest api for a password reset. When i do so i receive a 400 error with a response that i'

How do I filter and then use API Data?

I have this sports API and I want to be able to pull only certain league ids from this data and use those selected leagues to display them. here is the API Call

How to obtain URL from a rel=canonical tag using Javascript

I'm using Disqus comments system and I'm trying to use the feature of adding comment count links. The code that I can use is below: <span class="disqus-comme

Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.6.0)

I was following Patrick Video "https://www.youtube.com/watch?v=9oERTH9Bkw0&t=5700s" where I encounter this error at 2:31:20 and the code in that video is al

React - UI Clicks are not responsive

The problem is after certain changes(for example logout and login), clicks start to be less responsive or not responsive at all. This happens both in local and

MSAL login not working in production for node.js , Javascript application

I have used Msal.js for login to microsoft account inorder to call microsoft graph api. On local everything is working fine but after deployment on production,

Functionality to search bar

I am working on making a search bar that will filter my site for reports(urls) based on what is typed in. It currently works sort of. It will filter the items b

How can I solve 404 issue using the OpenSea JavaScript SDK?

I am trying to use OpenSea API with the JS SDK. I am getting two types of errors. One is a deprecated warning. Another is a 404 error. This is the error I am ge

How to print the checkbox in a row instead of column?

<div> <div> <IndeterminateCheckbox {...getToggleHideAllColumnsProps()} /> Toggle All </div> {allColumns.map((c

I am trying to add an object to the end of an array inside said object

I have some code that creates a bunch of Creatures(cells) and they move around the screen and eat food. They all have an age variable so once they become a cert

Get associative array after post via ajax

I need to send a form and a array/string to the server. My Ajax looks like this: var formData = $("#formpv").serialize(); $.ajax({ type