2,533,082
questions
0
votes
0
answers
8
views
Video or Audio autoplay play with sound without user interaction
I have a ticket booking website. When a ticket is ready to be served, a modal should open, and a sound should play along with the ticket information. I want the sound to play without requiring user ...
-3
votes
0
answers
21
views
HTML And CSS And Java [closed]
function toggleMenu() {
const navLinks = document.getElementById("navLinks");
const hamburger = document.getElementById("hamburger");
navLinks.classList.toggle("show");
if (navLinks....
-2
votes
1
answer
24
views
How to navigate to a specific element in another page?
Suppose I have my "/" page and another page "/Blog". I want to go from /Blog to /#Blogs, which is a route containing the specific element ID. I am trying to do this using the Link ...
-1
votes
0
answers
9
views
(NOBRIDGE) LOG Bridgeless mode is enabled and JavaScript logs will be removed from Metro in React Native 0.77
I created a new React Native project with the following versions:
"dependencies": {
"react": "18.3.1",
"react-native": "0.76.3"
}
The project built ...
0
votes
0
answers
13
views
Render BotFramework webchat in shadow dom
I have a requirement to render the webchat from BotFramework-Webchat in a shadowDom to prevent css leakage to an embedding site.
According to this GitHub Issue: BotFramework-Webchat issue 5194 and ...
0
votes
0
answers
9
views
FilePond not showing previews of loaded local existing pdf on laravel
I use FilePond to show displays existing data like image and pdf. When displaying images it works but when displaying pdf: Invalid PDF structure.
I saved the file in storage and run artisan storage ...
-2
votes
3
answers
53
views
Filter a object based on another Array
I am trying to filter a object based on an another array.
data = {
'TypeA': ['A1', 'A2', 'A3', 'A4'],
'TypeB': ['B1', 'B2', 'B3', 'B4'],
'TypeC': ['C1', 'C2', 'C3', 'C4'],
}
array = ['TypeA', '...
0
votes
0
answers
17
views
is signal asReadonly automatically overwrites original source?
How does signal asReadonly() work?
private _users = signal<User[]>([]);
users = this._users.asReadonly();
addUser(newUser: User): void {
mutating current value
this._users.mutate(users =&...
-2
votes
0
answers
13
views
Test on same pattern for a same string returns different result [duplicate]
The pattern is /^.*FooBar.*$/g, please help me understand why.
Why does it return different results alternately? This can be reproduced in Chrome and Safari. I expect that it always returns true for ...
-1
votes
0
answers
35
views
JavaScript is not working as per our expectation in transforming the card from its original position
I have multiple card in the card_section, and in card there is also a div named card_img. I was writing a query for each card that when we click on any card the card_img changes its position to the ...
-1
votes
0
answers
35
views
Why is my mouse hovering offset from actual element selected?
For whatever reason, my mouse is offset down and to the right of what it is supposedly hovering over inside of a mapbox map. It doesn't line up. The red dot in the image is where my mouse is and the ...
-1
votes
0
answers
32
views
How to remove the horizontal scrollbar everytime v-select dropdown area is clicked
How to remove this horinzontal scrollbar that is appearing everytime i click the v-select data items.It will only popup 1sec then it will be gone Ive already tried using overflow-x ,y ,and others ...
0
votes
0
answers
14
views
Zoom Video stream on Mobile Browser While using getUserMedia
I am using getUserMedia in my web page to open user's camera and then capture image from the video stream. On Desktop it works fine, but on mobile devices, the pinch zoom zooms in the entire web page, ...
0
votes
0
answers
18
views
How do I use Bootstrap 5.3.3 css and have the buttons back to their original colours with glyphicons?
I have been using Dropzone.js for a few years and have an app that has been working well. There are three buttons that are used.
<span class="btn btn-success fileinput-button">
<...
0
votes
0
answers
12
views
how to draw a line cuted off a short piece at begin or end
In maplibre, is there any way to draw a line that's shorter than its actual length in pixel unit, just like CIMGeometricEffectCut in ArcGIS Maps SDK for js,
The ideal result could be showed in the ...
0
votes
0
answers
9
views
How to View Windchill .pvz Files Directly in Mendix Using REST APIs?
I’m working on a Mendix application where my customer needs to view Windchill .pvz files (3D CAD files) directly within the application before downloading them. The files are being fetched from a REST ...
0
votes
1
answer
32
views
How can I programmatically change the color of the hamburger menu icon?
I'm trying to change the color of the hamburger menu icon in a mobile view using Velo in Wix. However, when I attempt to set the color using the following code:
$w.onReady(function () {
$w("#...
0
votes
0
answers
10
views
NextAuth 404 not found route on sign in to google provider
/auth/[...nextauth]/route.ts path
i am trying to set auth for my website, specifically using google provider, however whenever i sign in in the admin page, it redirect me to some non existing route, ...
0
votes
0
answers
4
views
Notifications not showing up as banner, only in toolbar (android PWA)
I am making a PWA and got to a point where I hear notifications and when I slide down, I can see the notification with title and body, but I wish it showed up on the screen as well, in the case where ...
1
vote
2
answers
56
views
How to wait until an HTML Element doesn't exist?
I'm working in ReactJS. What is the best way to find out when an element has been removed, and does not exist? I prefer to use latest MutationObserverAPI , unless ReactJs has library function to ...
0
votes
0
answers
29
views
Axios Error : Bad Request with status code 400 (in nodejs)
I have a simple code that is working on windows server 2019 node v14.21.3
But it doesn't work on my linux machine RHEL8 node v10.24.1 , v12.22.12, v16.20.2 , and v20.11.1 and my Windows 11 node v18.15....
0
votes
1
answer
31
views
Exception: Those columns are out of bounds. - For-loops stops unexpected
So i got this code implemented in a bigger function. Basically it searches for hidden columns to hide them in a new formed sheet that will be exported as a pdf. What happens is that at every hidden ...
1
vote
1
answer
9
views
TypeError: functions.database.ref is not a function at Object
I'm trying to deploy my project using Firebase Functions, and encountered this error:
TypeError: functions.database.ref is not a function at Object.
(C:\\Users\\minse\\Downloads\\spj\\spj14 - 복사본 - ...
0
votes
0
answers
9
views
OneSignal service worker installing issue with GitHub Pages
Simply script tryes to get script from my GitHub Page root, I think I set up OneSignal good.
How to fix it?
Maybe there is a way to set "default" path for OneSignalSDK.sw.js?
Error:
[...
1
vote
1
answer
47
views
CSS Animation to go only forward and stop. Currently it goes back and forth
I am trying to make this work so that only one pseudo-element shows "progress" if the item is highlighted (i.e., has the highlighted class).
Currently, the animation moves forward correctly, ...
0
votes
1
answer
35
views
Does anyone know how i keep keep my drop down menus open when the button is clicked?
I'm in the middle of learning JS so I'm new to it and self-learning. When i click the dropdown buttons my buttons dont stay active and open for half a second and close again. would anybody be able to ...
0
votes
1
answer
43
views
Issue With JavaScript "change" not picking up a drop down menu selection
I am populating a dropdown menu and when the user selects a choice from the menu I want a function(pullWeights) to happen. I cannot figure out where my error is, I have added an echo statement to ...
0
votes
0
answers
12
views
Hardhat test Error. "TypeError: (0 , ethers_1.getAddress) is not a function"
I am using Hardhat to unit test a Solidity smart contract in Sepolia Network.When I try to test my contract, I get this error: "TypeError: (0 , ethers_1.getAddress) is not a function". I ...
0
votes
0
answers
19
views
Display real-time element from one page to another in same domain using Jquery load
I'm looking for a solution that can extract an element from one of our pages (on same domain) that constantly updates to a new page.
One constraint is the back end web-server that is displaying the ...
0
votes
0
answers
28
views
Due to insufficient memory, it was not possible to complete the previous operation problem
Let's go, I have a site that creates a link for the user, the user opens this link on the cell phone (because I created methods so that the page only opens in mobile mode) on the cell phone he needs ...
-5
votes
0
answers
33
views
What is the meaning of Javascript Curly braces around mulitple variables [duplicate]
What is the meaning of Javascript Curly braces around mulitple variables? For example, what is { setRows, setRowModesModel } in toolbar: { setRows, setRowModesModel }? Is it an object?
<DataGrid
...
0
votes
1
answer
26
views
What does "avoid imports of package:package_name/src/" mean in the docs
In the dart documentation it says
For the best performance when developing with the development
JavaScript compiler through webdev serve, put implementation files
under /lib/src, instead of elsewhere ...
1
vote
2
answers
35
views
Hungarian words in an array sort with JavaScript
Sorting words(Hungarian words with Hungarian accents) in an array.
How to reach the following sort order: [ 'ab', 'abbb', 'áb' ]
From the following source: ['áb', 'ab', 'abbb'] with sort in JavaScript?...
-7
votes
0
answers
33
views
Which one should I choose Next or Remix? [closed]
I am a React developer and now I want to select a framework that is best for SSR and CSR.
I hear that Next.js may cause issues when upgrading, and that its app router is not the fastest. I also hear ...
0
votes
0
answers
20
views
Tampermonkey: This script was not executed yet
I have a tampermonkey script that doesn't fire on a page it should. I click on the tampermonkey extension icon in the browser frame and I see my script (so the URL match is right). I mouse over that ...
0
votes
1
answer
25
views
Firebase RTDB Completion Callback Not Catching Errors
I am missing something in what the completion callback actually captures, as far as errors are concerned. When I pass bad data to the update call, it simply errors out and stops processing.
export ...
-1
votes
0
answers
12
views
How do I convert raw binary image data to TexImageSource [closed]
So I have a microcontroller with Wi-Fi. I am sending an HTTP request to a webserver hosted on my computer which hosts an object detection model. This HTTP request contains raw binary image data, but ...
0
votes
0
answers
15
views
API Fetch Request Works on Desktop but Not on Mobile – CORS or HTTPS Issue?
I'm building a Svelte app that fetches random quotes from an API (https://zenquotes.io/api/random). The app works perfectly on desktop browsers but fails to fetch data on mobile devices (both locally ...
0
votes
0
answers
15
views
Cache Storage vs IndexDB for short lived data
I need to handle a 500MB file upload where the user may be redirected to a login page and later return to resume the upload. To store the file temporarily, options like IndexedDB or CacheStorage seem ...
0
votes
0
answers
12
views
How to add a scroll to top button in Blazor app?
I need to a add a scroll to top button in my Blazor server-side app. I have found this How T o - Scroll Back To Top Button article and can follow it till it comes to add the javascript code.
As I'm a ...
0
votes
1
answer
11
views
Service worker not triggering visible notification
I am testing a new integration with push notifications, and I get the correct console.logs, but in the end, there is no browser notification showing up.
This is my service worker:
self....
-1
votes
0
answers
24
views
How to access the .textContent of a textarea INSIDE a dialog tag
Goal: I want to display a dialog box, with a textarea in it, that my user can enter text into, then click "Save" and the text in the textarea element will be programmatically sent to my ...
-1
votes
0
answers
18
views
Best approach for dynamically controlling CSS animations with JavaScript (start, pause, reverse)? [closed]
I’m currently working on a project where I need to control CSS animations dynamically using JavaScript based on user interactions. I have a few elements with animations applied via CSS, and I want to ...
1
vote
1
answer
24
views
How can I sort a list of vehicles by maintenance due date in JavaScript?
I’m building a web application to track vehicle maintenance schedules. Each vehicle in my list has a nextMaintenanceDate property, stored as a string in
YYYY-MM-DD
format. I need to sort this list ...
-3
votes
0
answers
30
views
Unable to Save Post in Forum Application: PHP, MySQL, and JavaScript Issue [closed]
Problem:
I am working on a simple forum application where users can submit posts via a form. When I click the "Post" button, the post should be saved to a MySQL database, but it doesn't seem ...
0
votes
0
answers
8
views
Connection problem between NextJS and AdonisJS (backend framework)
Here's a quick summary of my code infrastructure: NextJS is there for the frontend side and AdonisJS is there for the backend side.
When the user connects (to the dash) NextJS sends the form data to ...
1
vote
0
answers
16
views
MathJax refuses to compile a specific class of commands
I recently opened a blog in blogger.com to mainly write about short math snippets. To do so, I had to edit HTML and add MathJax. After some googling, I figured out (maybe wrongly) that the way people ...
0
votes
1
answer
22
views
How to change icon when collapse/expand a div?
I have the following in a razor component:
@{
var id = $"collapseNotes{itemId}";
var href = $"#{id}";
<div>
<i class="fas fa-angle-right">...
0
votes
0
answers
12
views
antd: Upload `value` is not a valid prop, do you mean `fileList`? Error Component Stack
I have to use uplaod in ant design but in the browser console there is an error in the next.js app.
This is my form submission code.
"use client";
import {
Form,
Upload,
Input,
...
0
votes
0
answers
9
views
Windows cutoff bug on bottom of screen that is not visible on Macs [closed]
I've seen a bug that is present on Windows that isn't there on Macs. There is a cutoff at the bottom of the page that cuts off all elements, including the chart, legend, and bar chart.
In the chart, ...