Category "javascript"

Authentication on Keycloak through REST API (Next JS)

I have a problem. I need to login in Keycloak, but i don't want to use default pages from Keycloak. I have pages for "sign-in" and "sign-up". I wrote requests a

Avoid rerendering when doing button.click() inside useeffect()

I'm trying to set the data from child component to parent component's state in turn that data will be assigned to input text field. And then I want to automatic

Primevue data table input edit style

Prime vue Datatable edit input active by default I prime data table for inserting a value for the table with input on the table but the input become active when

about replace methods in string in js

let code = document.querySelector('.Nform').innerHTML; localStorage.setItem('code',JSON.stringify(code)); let finalCode = code.replace(/ <p class="removeElem

Convert Pickle Object into JS-readable Code?

I'm pretty new to the Pickle Library and JS. I am writing code in JS to interact with a Python server; when I make a POST to the Python server, I am returned a

How to use an inner Flow type?

I have a generated file which exports MyComplicatedType, which has a parameter child with the type I actually want to use. The inner type is not named or export

Use Product Variants Select in Cart Prestashop

I'm developing a cross sell module that will display products in cart that you can add to cart by clicking the button add to cart. I need to take consideration

HighCharts Dates not filling in on xAxis using JSON data feed

/* Historical Performance */ document.addEventListener('DOMContentLoaded', function() { const lineChartUrl = 'https://bfc-dashboard-api.herokuapp.com/lin

Listener Within IFrame Not Called When Submitting postMessage()

I need my parent page to communicate an instruction to the child iframe. I found out that due to cross-origin issues, I must use iframe.contentWindow.postMessag

CORS issues with window.open() and OAuth2

I'm running a site that uses SharedArrayBuffer (ffmpeg wasm) which strictly requires CORS (and/or site isolation), AND a Discord oauth2 workflow. After not look

How to create coinmarketcap api to track total and circulating supply

I want to create an API endpoint that displays only Total Supply as a numerical value in CryptoID like this, http://chainz.cryptoid.info/grs/api.dws?q=totalcoin

How to exclude date in RRule.js?

Suspected code: <script src="https://jakubroztocil.github.io/rrule/dist/es5/rrule.min.js"></script> // Create a rule: const rule = new rrule

How to implement Zurb Foundation to Rails 7?

I'm currently upgrading my rails app to 7. I was just testing it for a while then I have issues on Foundation Rails. I installed it and followed all the steps e

error TS6231: Could not resolve the path '' with the extensions: '.ts', '.tsx', '.d.ts'

I'm working on firebase functions with typescript and this error appears in the console while running tsc . -watch: [12:19:41 PM] Starting compilation in watch

extract text inside <li> tag using java script or jquery

var array1[] ; //i want to store text inside href in a array like this // [cat,dog,cow,hen,elephant] , how can I do that? <div class="ABCD"><h2 c

Convert ch to Px in css

Notes: I tried all questions & answers related to this topic. My Question very simple and clear 1ch = how many px? My sample code Relatest search article Un

How do I edit an array inside a cell in my React-bootstrap table?

As shown in the link below. I have an array inside a cell, when a click on those cell to edit them, they turns to [object, object] instead of their default valu

Can't change background video on button click

I am trying to change the source url of a video tag when pressing a button, but I don't have any luck. Here is the code: const [bg1, setBg1] = useState(true);

React.js giving TypeError : Cannot read properties of undefined (reading 'length')

<MDBRow className="mt-5"> {tours.length === 0 && ( <MDBTypography className="text-center mb-0" tag="h2"> No T

Load js scrips on component variable already in use

I have an angular app, and one component has to load some javascript files from assets. These scripts are loading some data into some graphs on my component pag