Questions tagged [javascript]
For questions about programming in ECMAScript (JavaScript/JS) and its different dialects/implementations (except for ActionScript). Note that JavaScript is NOT Java. Include all tags that are relevant to your question: e.g., [node.js], [jQuery], [JSON], [ReactJS], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript
2,533,924
questions
-2
votes
0
answers
22
views
Why "Favor composition over inheritance" and not "Favor aggreggation over inheritance"?
I have read many different articles on "Favor composition over inheritance" over the years and despite reading so many, actually finding clear concise code examples has been difficult.
I ...
-1
votes
0
answers
19
views
Generate editable PDF from html content having forms using angular
With below html content, using jspdf lib, i was able to generate pdf, but when i try to edit it(using adobe acrobat), it was unable to read this checkbox, it is rendered as image post conversion.
<...
0
votes
1
answer
20
views
Change the title and URL on the main page when clicking on a link in the iframe
I need your help, I have a parent A page with an integrated B iframe.
When I click on a link in the B iframe, I want to retrieve the title and url of the clicked link and pass it to the main page to ...
0
votes
0
answers
9
views
Parse aggregate pipeline to match objects with a valid pointer field
const query = new Parse.Query("TimeSpent");
const pipeline = [
{
$match: {
date: {
$gte: new Date(startDate),
$lte: new Date(endDate)
...
0
votes
3
answers
26
views
How can I store the response of my axios get request as json in node.js?
I'm trying to send a request to an api using axios and store the json response in a variable. When I output the response to the console, it shows it, but when setting a variable equal to it and ...
-1
votes
0
answers
9
views
AMR audio type file is not playing [duplicate]
<audio controls>
Your browser does not support the audio element.
I have tested it from the local amr audio file with proper src location loaded in browser but when i hit play button ...
0
votes
0
answers
15
views
Vuetify time-picker change minutes to multiples of 3
Is it possible to dynamically adjust the Vuetify time picker to display minutes in a series such as of 3(e.g.: 3, 6, 9), based on data retrieved from a database? The data from the database will ...
0
votes
1
answer
46
views
Regex not matching group at the end of the string, even though $ is included
The string format is similar to:
1) some question text
A)option
B) option
C) option
D) option
2) some question text.
A) option
B) option
C) option
D) option
etc.....
0
votes
0
answers
20
views
Select2 ajax based results filtering based on regex on client and server side
I have implemented select2 in codeigniter for ajax based results and its working perfectly. But the challenge I am encountering is that the data in database is not sanitized e.g
E.C.G Machine
ECG ...
0
votes
0
answers
15
views
Image as background of data labels i.e as background color in chart.js
Is there any way to add image as background color i.e different image for background of each data label. If there is please let me know.
I tried doing it by putting images in an array and equating it ...
0
votes
0
answers
15
views
Prevent VS Code suggesting turning a function into a class
I have an issue with VS Code suggestion turning a function in JS into a class. It gives the following suggestion message:
This constructor function may be converted to a class declaration. ts(80002)
...
0
votes
0
answers
11
views
How To Let ShaderMaterial Receive/Cast Shadows
So, I have been playing around with vertex and fragment shaders, and wanted to know if there was a way to add shadows to the fragment shaders? I have tried many unsuccessful attempts, and researched a ...
0
votes
0
answers
11
views
Spring-web / Jakarta-servlet: detect input-change in 'when' function
In my .jsp-file, I have a text-field and a button. Both elements are part of a table. The table is filled through a forEach loop, which iterates over a List<WordDto> from the java-controller. ...
-1
votes
0
answers
14
views
Limit User from closing pop-up till it loads completely
I am trying to trigger some operations on page unload. My page contains a form with a submit button. On submitting the form it reloads the page (Basically a postback) and there are some operations ...
1
vote
2
answers
32
views
How can I import file w=in complex file structure?
I have the following project structure:
.src
.FolderA
.File3.js
.FolderB
.File2.js
.File1.js
How can I import File1.js from File3.js?
I have tried import '../src/File1.js'....