Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

2,391,459 questions
0votes
0answers
2views

Call two actions from Html.BeginForm ASP.NET MVC

So the first action would be: @using (Html.BeginForm("Edit", "Post", FormMethod.Post, new { enctype ="multipart/form-data" })) and the second would be a ajax call: <...
-1votes
0answers
5views

Where can I get link to javascript file web3.utils?

Where can I get link to javascript file web3.utils? I need function web3.toWei.
0votes
0answers
5views

Validating JavaScript datetimeZone format

I can validate the format of this dates using moment library: 2022-03-26T14:15:51 ("YYYY-MM-DDTHH:mm:ss") 2022-03-26 ("YYYY-MM-DD") But having problem with following : 2022-03-...
-1votes
0answers
6views

Functional , Statistical and Marketing cookies banner in React app

I am trying to implement this kind of cookies banner in a react app : Any idea how can I implement this in my website ?
-1votes
0answers
14views

Creating arrays within for loop without duplicates [duplicate]

I'll do my best to explain what I need to achieve. I am a beginner to JS and couldnt quite figure this one out so I greatly appreciate any help. I have an array with X number of objects. Something ...
0votes
0answers
20views

Iterate through an array of unknown properties to find a specific value in an object

I'm trying to iterate through an array of unknown properties to find a value that exists within a JSON object although there can exist many objects as well, how can I approach this? args1 = ['string'...
0votes
0answers
8views

Lerna boostrap fails with npm ERR! code E401

whenever i'm running Lerna bootstrap on Jenkins its fails with error, but passes on local machine. npm ERR! code E401 npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository ...
-1votes
0answers
16views

How do I pass a string value into a query instead of the variable name?

I am working on JavaScript Notebooks and I need to do a query to a Database to import Data. In the query I need to pass two dates at the format yyyy/mm/dd (it can also be "yyyy/mm/dd") The ...
0votes
0answers
8views

Tabulator: Only return values in 'headerFilter' that are currently in the table

I was wondering if this issue has happened to anyone else whilst using tabulator. I'm trying to create a table with the headerFilter set to select. i.e., inside the column Definitions: {title: 'title',...
0votes
0answers
15views

How to invoke all option values from select with cypress/javascript?

i am trying to get all values under select tag in order to have an array. This is my code: cy.get('[data-tab-name-prefix="selectedFonds[0]]') .scrollIntoView() .should('be.visible') .find('[...
-3votes
0answers
15views

In our project we are using modalpopupextender [closed]

modalpopupextender within the aspx page the functionality is working fine ,while we using the same page in at iframe after click on the button the modalpopupextender is not appearing.any help on this ,...
-1votes
0answers
10views

How to bring circled numbers with jsPDF into my PDF

I'm using jsPDF and need to integrate circled numbers. My content will be created directly for the PDF, there is no webside that has to be printed as PDF. Well, after reading a lot I could figure out ...
2votes
0answers
19views

How to implement GDPR consent for locally defined html and/or Javascript content?

I would like to include a dynamic (leaflet-) map on my homepage. Before the map is shown and background data is loaded from external sources (e.g. OpenStreetMap), the users should explicitly agree to ...
  • 7,863
0votes
0answers
7views

Appium basic test - ReferenceError: beforeAll is not defined

I am trying to run an appium test as described here, https://blog.logrocket.com/testing-your-react-native-app-with-appium/ However, I get an error - how can I get my basic test to work? > ...
  • 9,013
-3votes
0answers
35views

Please help me with this interview JavaScript question [closed]

I was asked this question in an interview : Q. Write a reuseable function to convert the given input to the output. // Output : LDOR WLOELH I also want to ask, is this a common ...

153050per page