正规365体育投注

Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). This tag is rarely used alone but is most often associated with the tags [node.js], [json], and [html].

Filter by
Sorted by
Tagged with
1
vote
0answers
3 views

UWP - Xbox One - JavaScript - disable gamepadB default back navigation behaviour

I have a pure JavaScript/React bundled pwa/hosted web app running on Xbox One. The app has its own custom navigation. I want to disable gamepadB default history.goBack() behaviour. As per xbox one ...
1
vote
0answers
8 views

nodejs crypto and CryptoJS giving different base64(sha256(data)) outputs

I have a node server and a react-native app. On the node server, all cryptography is done using the crypto module. On the react-native app, all cryptography is done through the crypto-js library ...
0
votes
0answers
9 views

How to scrollToView for a specific item in an array

I have a component that scrolls to view after a comment has been submitted. const commentSubmit = (e: any, id: number) => { ...... divRef.current.scrollIntoView({ behavior: "smooth" }); ...
0
votes
0answers
7 views

sending xml file through XmlHttpRequest

I am trying to send XML file via XmlHttpRequest but unfortunately nothing is sent, when I print $_POST it gives me an empty array. I tried two ways to create XML createDocument XMLstring then ...
0
votes
0answers
8 views

How can i delete a row in a table filled from php my admin using ajax?

I have a table containing Id, Firstname, Lastname ... this table is filled from phpmyadmin database, each row has an action button Edit and Delete, When I click on delete I need the row to be deleted ...
0
votes
0answers
3 views

How can I clear a Codemirror editor field from Cypress

I already tried something like this from another SO answer How to type using cypress .type() inside the codemirror editor? If it helps this is the site I am working on Cypress with https://testing-...
0
votes
0answers
5 views

Unexpected token while using modal in react-bootstrap

Running into an compilation error while trying to create a sidebar using react-bootsrtrap modal. here is my code: import Modal from 'react-bootstrap/Modal'; import React, {Component} from 'react'...
0
votes
2answers
22 views

Restructuring Array of JSON objects

I have an array of JSON objects. However, some of the data is repeated. Is there a way to restructure the array to exclude repeated values? Do I have to use the Map function? or a for loop? userData =...
0
votes
0answers
4 views

Qualtrics slider with graphics - getting default image to correspond to image associated with randomized slider value

So, first things first, I have zero experience with HTML or javascript. I'm working in qualtrics to create an survey for a research project. The big project for a know-nothing like me is creating a ...
1
vote
1answer
12 views

Telling .map to skip over an object

In the following code maps over a useState called allTodos. It uses this data to render multiple components: let todoComponents = allTodos.map(item => <Todos key={item.id} item={item} ...
0
votes
0answers
6 views

How do I stop my countdown timer from executing after it has reached the deadline on refresh of my browser

This is how the JavaScript looks like. I tried searching for solutions but couldn't find. Please I need detailed solutions. Online I kept seeing cookies but I don't know how to use it in this case. ...
2
votes
4answers
20 views

how to write a multi lines state with Hooks useState in ReactJs

React 16.9 I am aware that this class component state: class JustAnotherCounter extends Component { state = { count: 0 }; is the equivalent of using Hooks useState: function ...
0
votes
0answers
8 views

Disable eslint(no-use-before-define) eslint rule on typescript

I'm, trying to disable the rule eslint(no-use-before-define) on variables in typescript because in react-native the styles are used after the component declaration, and even though the @typescript-...
0
votes
0answers
8 views

Other host and my client side function properly but my server side fails at onClick Javascript youtube player

Using the pure html source code from the website below for a responsive youtube player on server side, it runs identical to the hyperlink's host. When I upload this into file into my google cloud ...
0
votes
0answers
8 views

How to trigger Javascript function from jinja2

I have a webapp application. The backend is implemented with flask and jinja2. In the app frontend main page, there is a "Download File" button that calls a javascript command that issues a command to ...

15 30 50 per page
1
2 3 4 5
134301