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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

i can't to fix CORS

When i register to my form it's not work because : Access to fetch at 'http://127.0.0.1:8081/api/auth/register' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to ...
soso's user avatar
  • 1
0 votes
0 answers
7 views

onClick event is not getting triggered in React horizontal scrolling menu library

i am using ScrollMenu from React horizontal scrolling menu i wanted scroll on mouse drag so i added it like this <ScrollMenu LeftArrow={LeftArrow} RightArrow={RightArrow} ...
shubham's user avatar
  • 71
0 votes
0 answers
7 views

@nestjs/swagger - Only One Response (Success) Listed in Swagger-UI

I am attempting ot generate docs for a project and it seems like the CLI plugin for @nestjs/swagger is only picking up 1 response for each function (picking it up correctly, by the way, my 200s are ...
Sa'id Kharboutli's user avatar
-2 votes
0 answers
8 views

How to disable future dates from the current date on an adaptive card?

I am trying to disable dates starting from the current date on an adaptive card . { type: 'TextBlock', text: ' ', wrap: true, }, { type: 'Input.Date', label: 'date',, placeholder: 'date',, max: new ...
victor Alfonso Arboleda villa's user avatar
-4 votes
0 answers
23 views

Hello Everyone. Just wanna apologize in advance for asking a redundant question but I'm having a specific problem in regards to creating with JS [closed]

I am a self-taught individual who has just finished a UDEMY course on JS. Half way through the course, the guy was going way too fast for me and everything started to turn gibberish. Though I did ...
A.Simple.Man's user avatar
0 votes
0 answers
16 views

jQuery - element.find only returns the first result in a list. It doesn't return the value I clicked on

Im writing some tracking in GTM and the script is only returning the first value in a list regardless of which 'brand' is clicked on. How would I update the brandImage variable to 'find' the element I ...
hellothree23's user avatar
0 votes
1 answer
22 views

sum the value inside array of objects based on multiple conditions

I have this object [ { "year": 2020, "term": 1, "worthAmountEGP": 0 }, { "year": 2020, ...
Mohamed Khalifa's user avatar
-2 votes
0 answers
20 views

Visual Studio Code .class [closed]

I'm just starting with visual studio code, and I'm trying to edit a JavaScript .class file. However, it keeps saying I can't edit in read-only mode even though the file and folder it's in are marked ...
Iskra Wilson's user avatar
0 votes
0 answers
6 views

dragable icons to denote hours in a weekly calendar

Can someone give me a tip on this static web page of a weekly calendar where through javascript I can define a schedule by blocking out hours of the day by clicking and dragging downward to block out ...
bbartling's user avatar
  • 3,288
1 vote
1 answer
16 views

No routes matched location when I use params

I am calling data from a file called 'data.js' into the component 'OurWork.jsx', and everything works fine since the file 'OurWork.jsx' shows all the data objects. But anytime I want to click the more ...
Luis Alejandro Lopez de Anda's user avatar
-3 votes
0 answers
15 views

How to create and select avatar based select list in html [closed]

Many time i have seen in different CRMs that user select list shows the avatar and user name of different users. and if we select any user, its object gets selected and if we hover over selected value ...
Shekhar Singh's user avatar
0 votes
1 answer
26 views

JS cloneNode() with a new element - createElement()

I'm trying to clone an element into a brand new element, but I need to check that the parent exists first, so I need my clones to live inside of an if statement. How can I define my nodes/elements ...
guitar4jc's user avatar
0 votes
1 answer
24 views

How can I convert large array data into a url query param?

I have an array that has lat/lng coordinates in a angular typescript web app. const myArr = [ [lat, lng], [lat, lng], ...x 500 lines ] I want to be able to convert this into a url query param ...
Jonathan002's user avatar
  • 9,709
0 votes
0 answers
7 views

AES-128-CTR decryption gives empty string output in node while using crypto & Crypto-JS Module

I am trying to decrypt data using crypto-js javascript library and trying to encrypt the same encrypted text on nodejs side using node crypto library. I am using AES 128 encryption algo with CTR mode. ...
Abhineet Kumar's user avatar
0 votes
0 answers
15 views

Typescript: How to satisfy union type with function and arguments

The union of (arg: string) => void and (arg: number) => void is (arg: never) => void, because no value can be a string and a number at the same time. But how can I work arround this issue in ...
Pietro Carrara's user avatar
0 votes
0 answers
10 views

How do I ensure both my objects have loaded before I render the page?

I have a react app using firebase as my database. I am trying to load 2 separate objects and display their info on the page, problem is that only the "user" loads and is shown, but if I ...
Paryblocks's user avatar
0 votes
0 answers
12 views

WebSocket with Django and Expo not working

I am building an expo app that uses Django for backend. For the app I need to use WebSocket. But when I try to connect to the WebSocket on my Django project, I get Not Found: /ws/ [25/Sep/2023 19:34:...
Itay Lador's user avatar
-2 votes
0 answers
16 views

Error coming while Decoding JWT in Front End | TypeError: Right-hand side of 'instanceof' is not an object

I have a frontend in NextJS and a backend in NestJS. while decoding the token in the front end, this problem is coming. For just checking purposes. I have put an entire key statically in my front end. ...
shivam chawla's user avatar
0 votes
0 answers
4 views

How to use DetectOverflow or Custom Middleware from Floating UI JS with Serverless Vanilla JS?

I am dealing with an overflow problem on my div when dragging my Floating UI tooltips. Floating UI has a solution for this natively called detectOverflow, but I've had issues trying to prevent it from ...
newdevon's user avatar
0 votes
0 answers
17 views

ORA-01830: date format picture ends while downloading excel with date filter

I have a functionality where I have to download excel based on date filter. But while downloading from Stored procedure I am getting error as ORA-01810: format code appears twice Below is the logic ...
Nad's user avatar
  • 4,620
0 votes
0 answers
8 views

.NET Core web application with Popup modal. Can it move off screen to a new screen?

I have a .NET Core 5 web application. Client side I am currently using Bootstrap modals. I have a partial view that is just a button and when clicked we open a bootstrap modal. So my users want this ...
SapphireGirl's user avatar
1 vote
0 answers
15 views

How do I handle client side routes, when a page refresh returns the backend rails' route instead?

I have deployed my SPA to Render. It consists of a React with Redux frontend, and a Rails backend. When the app mounts, it renders the correct frontend route in the browser, and any subsequent ...
holodiscus's user avatar
0 votes
0 answers
5 views

Download drawn item in Folium via Draw feature with Export option set to False

I am trying to download the properties of a drawn rectangle using Folium and ipywidgets but need the export option to be set to False (i.e., Draw(Export=False)). Is there a way to download the ...
Alex Thompson's user avatar
0 votes
0 answers
32 views

Refining this name parse pattern

This pattern /^(.*?)\b((?:[Vv][ao]n|(?:[Dd][eu]\s+)?[Ll]a|[Dd][eu]|St\.|Le|Auf\s+der)\s+\p{L}+\.?)(.*)/gum parses name tokens. I had help deriving this pattern (ECMAScript Flavor) and have made small ...
Ken Ingram's user avatar
  • 1,572
0 votes
0 answers
26 views

How to scroll to a certain element of a sibling component?

I'm quite new to ReactJS and I need a bit of guidance : I've got a ReactJs/Vite App that fetches and lists countries in alphabetical order. I added a side nav with the alphabet in form of clickable ...
Bagdadi7's user avatar
0 votes
0 answers
25 views

Array declaration in typescript [duplicate]

I started learning TS and I have a doubt around Array in TS. Code - let array: Array<number> = [123]; array = [5,6]; array= []; In the above code TS compiler is not throwing any error. But I ...
Nesh's user avatar
  • 2,401
0 votes
0 answers
7 views

Editable fields inside aggrid table are moving out of table while scrolling [Angular]

I have a ag-grid table in angular and I am trying to edit the date column which is custom and I used the following config: ...(column.id === "date" && { cellEditor: ...
Shaik Nizamuddin's user avatar
0 votes
1 answer
16 views

React-router-dom with custom sidebar

I am new to ReacjJS, and i would like to use the react-router-dom with my custom sidenav. I have created the styling for a sidebar navigation, and now i would like to make the buttons clickable with ...
user9650193's user avatar
0 votes
0 answers
5 views

issues npx create-next-app --example with-tailwindcss with-tailwindcss-app Creating a new Next.js

i want to creating the next.js with taliwindcss but it is not creating the project it is only created the "README.md" file this commond i'm using "npx create-next-app -e with-...
zahid zahid husssain's user avatar
0 votes
1 answer
41 views

Each child in a list should have a unique "key" prop. how to fix this

function App() { return ( <StrictMode> {data.map(creatcard) } </StrictMode> ) } function creatcard(characters){ return( <Card id={characters._id} name={...
mm m's user avatar
  • 55
0 votes
0 answers
8 views

How can I make a nested inner join with findOne options using TypeOrm on Express?

I have the following: const estudios = await findOne(Estudio, { relations: { 'solicitud': true, 'area': true, 'promotor': true, 'propuesta': ...
Miguel V's user avatar
  • 608
0 votes
1 answer
19 views

Stripe Integration Problems

I'm integrating stripe to a project for school. I've gone through the docs and followed their instructions. I'm getting a POST 500 (INTERNAL SERVER ERROR) and a Error fetching payment intent: Error: ...
Alyssa's user avatar
  • 1
0 votes
2 answers
54 views

Why is the code not waiting for the listener to complete?

I am trying to wait for the listener to listen to all messages before moving on to console.log("Done") using await but it is not happening. What am I missing. const f = async (leftPaneRowEle,...
ishandutta2007's user avatar
-1 votes
0 answers
22 views

$.ajax is not a function error, tried the latest version of jquery too [closed]

<!-- Javascript --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-...
Anirudh Srivathsavan S's user avatar
-2 votes
0 answers
14 views

Functions called from flask backend via Ajax in html script do not work

I have a flask project which has 2 HTML files, HTML_File1 and HTML_File2. HTML_File1 content: <!doctype html> <html lang="en"> <head> <title> HTML_File1 </title>...
Kartik Tanwar's user avatar
1 vote
0 answers
23 views

Javascript application as a proxy for another url tree

I'm trying to make a javascript application that essentially serves as a proxy for a web page located at a different location. So if my application is running at https://my.host/my-app, it would take ...
juniper-'s user avatar
  • 6,282
-1 votes
0 answers
10 views

Click in a browser window and place a random image in the location

I have a site I am making for a good friend, On the page there are road signs for navigation, they have bullet holes on them, but what I want is for the curser to turn into a custom png, like cross ...
MarkKiessling's user avatar
-4 votes
1 answer
32 views

CSS: All of my items are top of each other, how can I fix it? [closed]

I have tried to fit all of my thing in one line but I could not. How can I fit all of my things in one line in my nav-bar? What should I add to my css code or how can I fix this problem. But now all ...
burhan's user avatar
  • 1
0 votes
0 answers
20 views

How to connect to web socket in Vue 3 or Nuxt 3 and display a message on receiving the message?

I want to build a web application using Vue 3 or Nuxt 3 where I want to subscribe to a Web Socket using the URL, ClientID and Client Secret and on receiving a message within the subscription I want to ...
BATMAN_2008's user avatar
  • 2,767
-4 votes
0 answers
19 views

How do I get started with severs/php? [closed]

I have only been programming for around a year with HTML, CSS, and JS. I learned all of the basic code, but can't seem to make anything complex as there are no tutorials on how to learn stuff like ...
Cerric Liadon's user avatar
0 votes
0 answers
11 views

updateUrl() always redirects to the starting page URL and not to the specific page

I have a flask app and I try to load my table copying URL on browser. For example, when I use table pagination URL is builded like this http://localhost:5000/?length=5&page=5 http://localhost:5000/...
Alex Doc's user avatar
  • 167
-1 votes
0 answers
10 views

Tools and Libraries for Sentiment Analysis of Tweets Containing Specific Keywords in Python [closed]

I'm aiming to analyze the sentiment of tweets mentioning a specific keyword or hashtag from the past week on twitter. I was wondering if anyone can suggest any tools or libraries that would allow me ...
Alisabrljak's user avatar
0 votes
1 answer
18 views

Correct way of defining routes when using paths loaded from an API?

const App = () => { const url = `${urlApi}gallery`; const [dataChange, setDataChange] = useState(false); const { data } = useFetchGet(url, dataChange); return ( <div className ='app'...
loomi.dev's user avatar
0 votes
0 answers
5 views

How to create a mask of an image in NextJS 13 for AI Image modification

I am building a room interior design application with NextJS and Replicate, the generation is done, now if I want to create a selective edit by creating a mask of an image like this Replicate Mask ...
HOSENUR's user avatar
  • 305
0 votes
0 answers
8 views

Stop lottie animation when a specific function is executed in Angular js

I have a animation which is being shown in lottie-player like this: <lottie-player class="lottieAnimation" src="assets/Pulsating_Element.json" background="transparent" ...
Hello World's user avatar
0 votes
0 answers
9 views

Getting TypeError when trying to destroy Chart.JS object

I am developing an Angular application with a component that utilizes Chart.js to draw bar graphs from queries. Software versioning info: Angular CLI: 14.2.12 Node: 14.21.3 NPM: 6.14.18 Chart.js: 2.9....
liberlux's user avatar
-1 votes
0 answers
10 views

Not able to connect to database with Cypress db plugin

I am using Cypress to connect to database using cypress-sql-server Plugin. The version of cypress in 13. The errors I am encountering are due to the fact that some node modules like crypto, os, net, ...
Anderson neo's user avatar
-1 votes
0 answers
13 views

Print the body of the modal using dompdf

The generate-classroll-pdf.php page states Modal content is not provided when I click the print button. I can't get the modal body to show up in dompdf. This is the classroll.php. <?php ...
fruityloops's user avatar
-3 votes
0 answers
15 views

How can I alert a sql query result in AJAX and NodeJS

I want to fetch the Color1SStock column from my MYSQL server and alert it with a Javascript alert. ChatGPT wrote the code inside of the script tag in the file Product-Display.ejs . I want the system ...
CookieMonster's user avatar

1
2 3 4 5
50256