Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

How to pass the ViewBag from the view to external Javascript code

I have this method that passes a List if the error occurs: if (userList.Find(U => U.Id == userViewModel.Id) != null) { _response.ApiErrorList = new List<string> { "User already exist&...
Jacopo Grazioli's user avatar
0 votes
0 answers
23 views

Using ajax with php://output [duplicate]

I'm using Phpspreadsheet to generate excel file with data. I want my file to be downloaded immediately after creation by user. It is easy to obtain using: $writer = new Xlsx($spreadsheet); $writer->...
Filip's user avatar
  • 13
0 votes
1 answer
19 views

Ninja Form wordpress plugin reload page after submit

I use ninja forms plugin in wordpress. I submit the form successfully, get a message about it. Everything fine. But if after it I fill the form again and submit, the page is reloaded, but before that ...
user1223445's user avatar
-4 votes
0 answers
25 views

When performing validation (on server) of user submitted form, pass the class(es) along with name and value of <input> element

A javascript component ensures users can only input numbers into numeric input fields. It attaches itself to all inputs with "numeric" class, like below: <input name="foo" class=...
T5k's user avatar
  • 57
0 votes
0 answers
7 views

How to list docs in an Automerge repo?

I have instantiated a repo: const repo = new Repo({ network: [ new BroadcastChannelNetworkAdapter(), new BrowserWebSocketClientAdapter("ws://localhost:3030"), ], storage: new ...
Witek's user avatar
  • 6,462
-5 votes
0 answers
25 views

i get 403 forbidden in postman and the console when trying to add or remove products, i tried everything but still cant make it work [closed]

function isAdmin(req, res, next) { console.log('Session:', req.session); if (req.session.isAdmin) { next(); } else { res.status(403).json({ message: 'Forbidden' }); } }...
MirotadzeLuka's user avatar
0 votes
0 answers
11 views

Calling the toolController.deactiveTool method in a forge viewer custom tool is not triggering on windows while it works on mac

I am trying to create a custom forge viewer tool that only enables the box-selection extension while the shift key is pressed down. This works as expected on Mac devices but on Windows it enables the ...
Michael Rayner's user avatar
-3 votes
0 answers
38 views

I need to write a promise that returns error when the data is not number [closed]

I'm learning a lesson about Callbacks and Promises and this is the exercise. I'm trying to create a promise that performs the following operations: rejects when data received is not a number, ...
tofu's user avatar
  • 1
0 votes
1 answer
24 views

How to apply the minimal theme in sweetalert2?

I am trying to apply minimal theme of sweetalert2. But it is not working. This I put in the head - <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css" ...
Boidurja Talukdar's user avatar
-1 votes
0 answers
11 views

Supabase Authentication Email and Password Error saying email_not_confirmed

I am signing up with email and password function as below:- async function SignUp(email: string, password: string, name: string) { try { const { data, error } = await supabase....
Nikita Pandey's user avatar
-1 votes
1 answer
35 views

Angular mat-chip, use space and tab to enter a new input

Actually, in a mat-chip, we need to press Enter to be able to add a new element in the list. I'd like to have the space, comma and tab to have the same effect. How would this be doable? Here's the ...
Raphaël Balet's user avatar
0 votes
0 answers
5 views

BullMQ Job Not Removed from Queue After Calling job.remove()

I’m prototyping a project using BullMQ and Redis, and so far, everything seems to be working fine. Jobs are being added to the queue successfully. However, when I process the jobs using a worker and ...
John Philip's user avatar
5 votes
2 answers
57 views

Loop inside setInterval does not iterate over the second interation

I have a useTypewriter hook that seems to skip the second iteration since the i never logs as 1. Why is the code not working? The output should be howdy, not hwdy. Here is the full code: const { ...
user8758206's user avatar
  • 2,179
-2 votes
0 answers
30 views

Show hidden content in Chrome with javascript [closed]

I was wondering if there is any possible way to show hidden content/values in chrome and how I can show it? <input type="hidden" id="ct_bot_detector_event_token_5020" name="...
Al Sell's user avatar
-1 votes
0 answers
42 views

How we can import the new changes in json file made by previous test?

I have a spec file where I have to loop through the it block to create orders, and storing them in a Json object of array, Then in same spec file I have to validate the orders create in previous it ...
Muneeb's user avatar
  • 111
-3 votes
0 answers
45 views

How to get the android browser inner dimensions width and height excluding browser title bar, toolbar and tabs [duplicate]

I'm trying to get Javascipt to get the android browser inner dimensions width and height excluding browser title bar, toolbar and tabs. I have already used the current answer from 2 questions here and ...
starrezzy's user avatar
-1 votes
1 answer
32 views

Unable to render the image on canvas

I am trying to create a simple game using JavaScript. I do JavaScript as a hobby, and I did not major in computer. I used ChatGPT's help to write my code, so it might be unnecessarily large and messy—...
Da.D's user avatar
  • 1
0 votes
0 answers
43 views

Load external resources only on button click

I would like to have a "Load More" button that displays all the content of a div tag when clicked. It's important that all external resources within this content (such as images, JavaScripts,...
Alex's user avatar
  • 115
2 votes
2 answers
35 views

How to avoid re-render in Redux based on the outputs of .filter()?

I have a simple scenario in which I want to access my store.entities, but only those which are active. I understand the following is bad because a new reference is given each time: const ...
kiwikodes's user avatar
  • 758
-1 votes
0 answers
13 views

Is it possible to customize the date picker in Ninja Forms so that one field is dependent on another field?

I have two date fields in Ninja Forms. I've already blocked past dates and set it so that the user can only choose a date that is at least three working days in the future. Now, I want to make one ...
legende Yt's user avatar
-1 votes
0 answers
9 views

How to Dynamically Trigger __doPostBack Using UniqueID in WebForms with JavaScript? [duplicate]

I'm working with ASP.NET WebForms and need to trigger a postback dynamically after a successful reCAPTCHA validation. function checkCaptcha(buttonId) { console.log("Button UniqueID:", ...
avihu24's user avatar
  • 53
-6 votes
1 answer
49 views

javascrip indexOf not working with underscore= [closed]

As far as I understand, the indexOf method uses strict equality which in my mind means that if I have an object animal = {id: 1, name: 'bison'} the statement animal.name === 'bison' would be true ...
p-a's user avatar
  • 1
0 votes
0 answers
18 views

OneTrust Consent groups not working as expected through subdomains

Needs: I need to avoid the banner reappearing (if the user has already accepted) when navigating from site A to B and vice versa, using OneTrust. Setup: Non-authenticated side, it's two public sites. ...
Giovanni Giampaolo's user avatar
1 vote
0 answers
17 views

Nx release command doesn't automatically push the release commit and tags

I have the following minimalistic nx.json config: { "$schema": "./node_modules/nx/schemas/nx-schema.json", "targetDefaults": { "build": { "...
johannchopin's user avatar
  • 14.8k
1 vote
0 answers
34 views

Catching reload events to show custom modal

Sorry for the lengthy post but this needs some context. Context I'm building an app for academic papers publishing. The stack is Laravel + vanilla JS and I use Etherpad to edit the papers. It is ...
ept0915's user avatar
  • 23
0 votes
1 answer
11 views

React-query v5 query data contains an empty object when using persistence

I've noticed that many users of my app get unexpected runtime errors because react-query (v5.64.2) query data contains an empty object (and my backend never returns empty objects). I've also noticed ...
Misha's user avatar
  • 341
0 votes
0 answers
38 views

Use FullCalendar eventClick info in SweetAlert2 JSP condition

I'm using FullCalendar API for a calendar page in my website that's supposed to track a maintenance schedule of equipment. I also used SweetAlert2 as the popup modal for when an eventClick happens. ...
Reyes RK's user avatar
0 votes
0 answers
20 views

flyTo function not working with dynamic position

I'm working on a react project, where I display some markers on a leaflet map. I added two buttons on my map. One of them should fly to the position of the selected marker, when I click it. Therefor I ...
Northbret's user avatar
0 votes
2 answers
29 views

NextJS 15 loading.tsx not showing

I am learning NextJS 15 and I have a very simple app just to learn the use of loading.tsx pages, I have a loading.tsx page next to a page.tsx in the src/app folder (as shown in the image below) File ...
taha boud's user avatar
-5 votes
0 answers
49 views

Converting a static webpage to dynamic, [closed]

I have created a static webpage using HTML, CSS, and Bootstrap, and now I want to make it dynamic by adding filter functionality. I have a section where clicking on a filter option should display only ...
Amrit Panigrahy's user avatar
0 votes
0 answers
15 views

How to write data to an NFC card using Omnikey 5422 in a web application (JavaScript)?

I am developing a web application that interacts with an Omnikey 5422 NFC reader. I need help with writing data to an NFC card using JavaScript. I understand that the Omnikey 5422 supports ...
Athul V Sabu's user avatar
0 votes
0 answers
26 views

How to Integrate Plivo SDK in Laravel?

I am integrating Plivo in Laravel to create a "click to call" function on my web app page. I want to provide features such as call, hangup, mute, and unmute on this page. I also want a ...
Hilmi Hidayat's user avatar
-3 votes
0 answers
23 views

I can not implement Node program in Browser (WebRTC Peer reference is not defined) [closed]

I made some WebRTC server, https://github.com/AAlex-11/WebRTCpeer/blob/main/server.js, this is now not full code, start only. Goal of this server is testing my Android application based on WebRTC. ...
Alex161's user avatar
  • 65
0 votes
0 answers
22 views

Can't seem to preserve inline elements such as <span> , with custom blot

I've created a customblot, to handle span conversion but for some reason any text after <span> is being treated as a span too and causing the following: Uncaught s: [Parchment] Unable to create ...
k9commanderz's user avatar
-3 votes
0 answers
31 views

Filter within Nested Array of objects [duplicate]

I have got an array of objects and inside that array of objects there is one more array of objects. I wanted to filter the array according to the genre as the genres object is inside the movielist ...
Hom Gurung's user avatar
-3 votes
0 answers
30 views

Is this a safe and proper way of creating an HTML element with javascript? [duplicate]

I'm trying to create a comment section loaded from an AJAX call. Is this a correct way to do it? <div> <h7>`+ comment.postedby + `</h7> <h7>`+ comment....
Wohn Jick's user avatar
0 votes
0 answers
24 views

PDF Not Displaying in Iframe When Password-Protected

<script th:inline="javascript"> let pdfBase64 = /*[[${pdfBase64}]]*/''; let blob = base64ToBlob(pdfBase64, 'application/pdf'); const blobUrl = URL.createObjectURL(blob); ...
patteera's user avatar
1 vote
1 answer
18 views

How to properly import a modular JS library in Rails using Importmap (case date-fns)?

In my Rails 8 app I'm using Importmap and I would like to use date-fns in an appropriate manner given only one functionality and a couple of locales from that JS library are needed. Below is what I ...
user502052's user avatar
  • 15.2k
-8 votes
1 answer
112 views

Optimization of string concatenation in different languages [closed]

I have a program to perform denormalization on large data files before I import the data to an OLAP database. I am trying to make this denormalization as fast as possible. My "native" ...
CpnAhab's user avatar
  • 153
0 votes
1 answer
32 views

how to sub total amount not show

To fix the issue where the subtotal is not showing correctly in the Cart Summary at the Bottom, we need to ensure that the JavaScript correctly updates the value for the .sub_total element in the cart ...
atozcodes's user avatar
0 votes
0 answers
11 views

How to use onedrive for storage with a firebase authentication [closed]

Hope everyone is well… So I’m developing a pwa (it’s my first one) for a guy with a small covenyencing company. He pays for a family plan of onedrive, allows like 5 people to use up to 1TB of storage ...
Gigantic Gani7's user avatar
-1 votes
0 answers
37 views

Two sets of dialogs that aren't active at the same time but are mapped in the same places, distinguished by a button click? [closed]

I'm a real beginner so bear with me here! Some background: I'm making my own website because I got tired of the customization limits on sites like Carrd, so my website has a goofy style and looks like ...
Adrian Gopal's user avatar
-4 votes
0 answers
25 views

Is it possible to add a .env file to a project that only as vanilla JS? [closed]

I'm working on a project that is using secret keys from Google's Calendar API. I'm trying to figure out a way to hide those keys in a private file without printing them in a publich JS file. Any ideas?...
Sam Kahle's user avatar
0 votes
2 answers
56 views

Cursor jumps to end of the textbox upon edit

I have a textbox which when changed, I need to update server (API to do DB update). The API response will be updated text which I use to update state. Problem is: When I change something in the middle ...
Mahdi's user avatar
  • 2,257
0 votes
1 answer
22 views

window.postMessage({ trigger: "startCounting" }, "*"); does not trigger

i have a rolodex counter that i need at times to trigger the animation via posting a message it does not work, instead of the two digits animating counting, only a single digits flickers without ...
Moshe Klein's user avatar
-3 votes
0 answers
26 views

How to Securely Implement Gemini 2.0 Multimodal WebSocket Proxy in Node.js and React?

I’m building a voice chat system using the Gemini 2.0 Multimodal WebSocket in Node.js for the backend and React for the frontend. Google provides an example repository here: https://github.com/google-...
Rajkumar Pandey's user avatar
-5 votes
0 answers
16 views

Has someone done a load test on ReactGrid #reactgrid? [closed]

We are considering managing a large data set (150K rows) with about 60 columns on the Client Side (React JS Client). We plan to subset the data and then manage the aggregation/view on ReactGrid. So ...
Aadharsh Kannan's user avatar
-2 votes
1 answer
27 views

It is a mechanism of rendering or mechanism of reconcilation within rendering? [closed]

Different sources give a bunch of different definitions of react fiber. But two key ones are: Fiber is a matching mechanism within rendering and Fiber is a rendering mechanism. I'm more inclined to ...
Anatoliy Gavrilov's user avatar
1 vote
0 answers
15 views

Why does Universal ctags fail to record some functions in the TAGS file for a project using React and JSX?

I use Emacs, and when I began my React/jsx project I found that etags missed too many declared names, but it wasn't a problem because the project was small. Now the project has grown to 10,000 lines ...
Percy's user avatar
  • 55
0 votes
1 answer
30 views

Electron + Nextjs: Links have incorrect href after building

My Electron + Next.js application has the client-side generated sidebar with the link: <Link href="/wallets">wallets</Link> Which works as expected when ran locally. When the ...
ArtX's user avatar
  • 3

1
2 3 4 5
…
50657