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
1 answer
10 views

Facebook API in reactJs

how to got the campaign Id and name how to get all the campaign leads API in facebook ? { "error": { "message": "Unsupported get request. Please read the Graph API ...
ravindar singh chilwal's user avatar
-1 votes
0 answers
9 views

How to solve cors error when fetch image from S3

I try to fetch image from s3. I use fetch(s3url). And i get cors error . I have already set CORS for my bucket s3 My error My setting cors s3 but still not work. I need some help.Please help me to get ...
Phạm Long's user avatar
0 votes
0 answers
6 views

how to HTML5 Drag and Drop effectAllowed and dropEffect?

The relationship between these two properties seems to have been the source of some confusion. Based on reading both the MDN site and MSDN I thought i had figured it out, but now I am not sure... i ...
suresh kumar's user avatar
-3 votes
0 answers
18 views

Change image everytime a button is clicked [duplicate]

So I have a button and everytime I click it, its supposed to change the image, but it only changes 1 time <!DOCTYPE html> <html lang="en"> <head> <meta charset="...
f1lip's user avatar
  • 1
0 votes
0 answers
6 views

How do I call a javascript function of a parent webview in a child webview?

I'm developing a web page with html/css/javascript that will open in a webview. I'm planning to do the following. Use window.open in a webview(webview1) to open another webview(webview2). Call ...
Joons's user avatar
  • 21
0 votes
0 answers
8 views

Prettier format is not working in vscode, it shows some error

["INFO" - 11:47:04 AM] Formatting completed in 44ms. ["INFO" - 12:16:47 PM] Formatting file:///d%3A/Javascript/Work/01-Fundamentals-Part-1/index.html ["ERROR" - 12:16:47 ...
Roshan Suvarna's user avatar
0 votes
1 answer
19 views

localStorage Javascript code works in HTML file but not in Javascript file, I have tried many StackOverflow solutions

I'm trying to use basic localStorage methods. They work perfectly fine in HTML, but do not work in a stand-alone Javascript file. HTML Code (Works): <!DOCTYPE html> <html> <head> ...
shockin's user avatar
  • 13
0 votes
0 answers
4 views

Issue with passing Django URL parameters while dynamically changing the inner HTML of a Django template using Javascript

I am trying to dynamically change the innerHTML of a Django template using Javascript. There are some anchor tags inside the HTML content. Their href contains Django URL with some parameters. There is ...
Maya's user avatar
  • 163
0 votes
0 answers
19 views

Get GPS Coordinates with JavaScript and then store the coordinates to a html file with hyperlink

Get GPS Coordinates with JavaScript and then store the coordinates to a html file with hyperlink I'm trying to get the GPS location of a device from the web browser by using JavaScript scripting ...
Gcnord1008's user avatar
0 votes
0 answers
7 views

NotAllowedError: The request is not allowed by the user agent or the platform in current context in iOS Safair Mobile

I'm encountering an issue while trying to access the camera and microphone permissions on Safari iOS when visiting a streaming page in my Next.js application. The permissions are requested ...
webbninja developer's user avatar
0 votes
0 answers
13 views

Cannot get the tab containing empty required field

Within a modal there are tabs containing required fields : <div class="col-md-12 scrollable_h" style="max-width: 100%;" id="block_clients"> <table id=&...
pheromix's user avatar
  • 18.3k
0 votes
0 answers
11 views

Photoshop script to include nested linked smart objects

The below code replaces the contents of smart objects (SOs) with the new selected image. I have found many different versions of scripts to achieve similar things, and tried to mash them together ...
aye cee's user avatar
  • 180
0 votes
0 answers
11 views

TypeError: Network request failed Error Formdata

I'm getting LOG [TypeError: Network request failed] while sending formdata from the react native client to my Nodejs server the video is a mp4 file like /data/user/0/com.testapp/cache/...
James's user avatar
  • 129
0 votes
0 answers
5 views

Check stream being successfully streamed when using within an <iframe> tag

My stream sometimes can play and sometimes it doesn't. I want to check when the stream can be played and when it can not. Below is when the stream can play. <html> <header></header>...
manaclan's user avatar
  • 846
-1 votes
0 answers
8 views

Can't run correct context in VSC

the other question is: i am following the step by step to create the deploy.js but when i run it, it's different contact between the video. the following is my coding const ethers = require("...
vixxiv's user avatar
  • 9
0 votes
0 answers
8 views

I want to retrieve data with firebase firestore where query

enter image description here This is my database. I want to get the displaynames of the users. With this data, I want to search their names in an input and show their data. This is the code I wrote ...
Esat İnan's user avatar
0 votes
0 answers
13 views

how to only send line notify when conditions are met?

function onEdit() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('bd1') var data = sheet.getDataRange().getValues(); var column = data.map(function(row) { return row[6]; }); ...
Jintana KMV's user avatar
-2 votes
0 answers
31 views

Hi I am trying to make a link that uses the a:active css but once held for 3s it does a animation but stops when I stop holding the button down

Hi I am new to html css and java and don't know how to make it so once a button is held for 3s it will do the animation but I don't want it to be able to stop I want it so once that 3s of holding is ...
Exempt's user avatar
  • 1
-1 votes
1 answer
21 views

How do i print String of Array Using For...in Loop [duplicate]

let arr = ['Apple', 'Banana', 'Watermelon'] for (let x in arr) { console.log(x); } I want to print String elements from the given array whenever I try to access using the above code it only ...
Darshan Chauhan's user avatar
-1 votes
0 answers
15 views

how we can get inner Html code of a component without loading it on Dom In angular

I have a case with an application there I want some labels details without loading component in angular how I get inner html code in angular help me out if somebody have a good answer for me conponent ...
mohammed Shahrukh's user avatar
0 votes
0 answers
11 views

How can i Import ROS2D library in VSCode?

I have a react project for turtlebot3 web controller. I will use ros2dlib but when i install with the command this: npm install ros2d and add with this on my vscode python code: import ROS2D from '...
Berre Sena KIRAÇ's user avatar
0 votes
0 answers
6 views

React Native - security issue sensitive information in memory dump - Frida and Fridump

I am facing some security issues on my React Native App, specifically for Android. I am using Fridump to run some penetration testings and see what is on memory. https://frida.re/docs/android/ https://...
Franklin Velásquez's user avatar
0 votes
0 answers
16 views

How to switch between components in a list and also be able to replace any component in the list in react js? State does not update in current design

I am trying to create a quiz app with 3 buttons, Next, Back and Switch Question. Each question is a unique component of its own, so i cannot pass the question details in a prop. . This is my current ...
Deepjyoti Deb's user avatar
-2 votes
0 answers
11 views

How to connect indoor bike using web Bluetooth and read and write the values [closed]

please help to me . how to connect the Indoor bike read and write the Service Characteristics using web Bluetooth and JavaScript. Instantaneous Speed in (km/h) Instantaneous Cadence in (/min) ...
20SIT47- YASAR's user avatar
4 votes
2 answers
43 views

Why isn't undefined an invalid left hand assignment?

Either my google-fu is failing or no one has asked this question (doubtful), but: Why isn't this throwing an Invalid left-hand assignment error? ❯ node Welcome to Node.js v18.17.1. Type ".help&...
BrDaHa's user avatar
  • 5,228
0 votes
0 answers
29 views

data not uploading in mysql database [duplicate]

I am converting the Url Data to binary here bpdfdata = dataUrlToBinary(pdfData); function dataUrlToBinary(dataUrl) { const base64Part = dataUrl.split(',')[1]; ...
Dhruv Pandey's user avatar
0 votes
0 answers
7 views

Trouble Communicating from Popup Script to Content Script

I am working on a Chrome Extension with JavaScript and I am struggling figuring out how I am supposed to communicate between the popup script (the javascript that is linked to the popup HTML) and the ...
angelplusultra's user avatar
0 votes
2 answers
36 views

How to merge two different arrays of object in one single array Angular 8

i am calling two api at same time and getting below response in array1 and array2.at Now i wanted to merge all the object in one array Below is my array1 and array2 response. Const Array1 = [ { ...
Shilpa's user avatar
  • 3
0 votes
0 answers
5 views

Pypdf installed but still showing module not found

Pypdf package install but still showing module not found Firstly I download the package and it shows in my pc file .but when I import it ls show the module not found error.how can I fix the problem. I ...
Abir Das's user avatar
0 votes
2 answers
23 views

ReactJs- create complex json object

enter image description here When I submit how to get all checkbox state and notes using useState in hooks function handleEditformsubmit(e: any) { e.preventDefault(); var errids = []; var arr_length =...
saranya's user avatar
0 votes
1 answer
22 views

i got error Possible Unhandled Promise Rejection (id: 4): TypeError: Cannot read property 'username' of undefined

so i have a problem with my json in react native, i tried using thunderclient for my API and there's no problem, but when i wrote this code `async klikEdit(kdpemb){ await fetch(this.url+"/?op=...
Arief Febrian's user avatar
0 votes
1 answer
17 views

Connection failed Error: "WebSocket connection to 'ws://127.0.0.1:8080/' failed" in WebSocket using PHP, JavaScript

I am currently learning to implement Websockets using PHP and JavaScript in the client side. I received connection failed error in the browser console: WebSocket connection to 'wss://127.0.0.1:8080/' ...
Parveez Ahmed's user avatar
0 votes
0 answers
10 views

In Solidjs, how do I create form submissions with multiple paramters similar to this onInput change?

I have a backend service that can be called using http://localhost:7070/search?q=someterm and I'm trying to implement a frontend using Solidjs. I used their documentation and examples to come up with ...
djsumdog's user avatar
  • 2,570
-1 votes
0 answers
11 views

How javascript recognise this property typeof before even assigning a value [duplicate]

refer to the code I wrote a class and declared two variables: name & department and both are empty. When I log there type name has a typeof string while department is undefined. How is this ...
Aryaman's user avatar
0 votes
0 answers
3 views

How can I retrieve the tiles I'm seeing at specific coordinates and a certain zoom level in OpenSeadragon?

I'm working on an OpenSeadragon project, and I need to retrieve the tiles (or their names) I'm currently viewing at specific coordinates and a particular zoom level. This is necessary because I will ...
BRIAN ARIAS MONTES's user avatar
0 votes
0 answers
27 views

call a modal window from another file

How can I make a modal window call. From another file? I don't understand why I can't do it. file 1: <template> <section class="header"> <div class="header-...
JuliaBland299's user avatar
-1 votes
0 answers
10 views

Working with functions: Update these global variables as needed based on user input [closed]

I am trying to create separate functions that place a user's income or expense into its respective heading and then updates and displays the total amount spent and earned in a month along with its ...
Tan Kadel's user avatar
0 votes
0 answers
16 views

Composing Svelte Components in JavaScript/TypeScript runtime

Let's say we have a Button Component that takes props variant: 'primary'|'secondary' <Button variant='primary' on:click={()=>console.log('hello')}> click </Button> I want to create a ...
Eric Kim's user avatar
  • 10.6k
0 votes
0 answers
21 views

setInterval slows down in chrome after unsubscribe and re-subscribe

<html> <head> <script src="https://unpkg.com/rxjs@^7/dist/bundles/rxjs.umd.min.js"></script> </head> <body> <script> /*let {interval, take } =...
Balaji's user avatar
  • 201
0 votes
0 answers
7 views

Implementing filter feature in angular

I am trying to implement a filter feature in my angular application. In my page, I have subscribed to changes in the filter component and as soon as user makes any change I want to filter the result ...
Tony Roczz's user avatar
  • 2,366
1 vote
1 answer
22 views

TypeError: Cannot add property 0, object is not extensible with Stripe

I am trying to get the prices from the products call within Stripe. I have the function working for the most part, however, I got this error when adding the price. I have tried every possible ...
Dotman's user avatar
  • 63
-1 votes
0 answers
26 views

Javascript match case insensitive in HTML table

I have HTML tables that use DataTables (https://datatables.net/) for searching the rows. I also have added another field on the page for Excluding. So I can search for something and enter a string in ...
Roger McCarrick's user avatar
1 vote
2 answers
44 views

Prevent scroll div when wheel a input range

I have a div, fixed height, and scroll. But inside this div, have an input range. When I fire the wheel event then the scroll of the div is also triggered, so is there any way to block this scrolling ...
Trần Hồng's user avatar
0 votes
0 answers
9 views

Block web from show notify app badge in taskbar, Electronjs

taskbar icon I have this issue when i use telegram with the webview inside my Electron js app, telegram show notify of new chat message, then a badge number show in taskbar (check the image above) How ...
Hoonigan029's user avatar
-1 votes
1 answer
23 views

Error: Could not access built-in Node.js modules

I deploy next js on cloudflare pages and get an error like this : Error: Could not access built-in Node.js modules. Please make sure that your Cloudflare Pages project has the 'nodejs_compat' ...
fajriyan's user avatar
0 votes
0 answers
9 views

DJango - JS - Ajax - Upload file to NRM/Nexus (another domain) - CORS Issue

PLEASE HELP With the following JS function `function nexusUploader(file) { let filename = file.name, formData = new FormData(); formData.append('package', file); $.ajax({ url: ...
user1548923's user avatar
0 votes
1 answer
47 views

Dropdown Button in HTML/CSS/JS

I have the code: <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts....
Tech User's user avatar
-1 votes
1 answer
22 views

How do I get 2 values from useParams()? | react js

I want to get the values :URL_name and :teamName from using params to display the teams information <Route path="/:URL_name/equipos/:teamName" element={<TeamInfoPage />} /> I ...
Martin Arreola's user avatar
0 votes
0 answers
6 views

Create an interactive Photomap with leaflet, JS. Trying to figure out how to size the photo to fit the state borders

Hello I am working on my first frontend JS leaflet project trying to make an interactive PhotoMap using pictures I personally took that I want to display on the map. I created clipped arts of all the ...
Parker Thomson's user avatar
-1 votes
0 answers
11 views

What JS table/spreadsheet package I could use for that? [closed]

I'm developing a project with a one to many relationship, I you'll be calling it Immobile and Variable. I need to display a spreadsheet like view for a Immobile with his Variables, in this ...
Fernando Boueres's user avatar

1
2 3 4 5
50272