Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 votes
0 answers
8 views

Identify problem in the post request in html

I am working on a Flask application that manages therapy sessions for children. Each session can have multiple goals, and I recently updated my models and form handling. However, I'm encountering a ...
ayal khier's user avatar
0 votes
0 answers
7 views

How to hide custom buttons in jqgrid ^3.4.4

I am using jqgrid 3.4.4 version, I want to hide few buttons on select row, but the problem is if I add id or title in navButtonAdd, it doesn't work. So I cannot hide them using the id/title. Is there ...
Derrick's user avatar
  • 4,177
-2 votes
0 answers
12 views

The function sumAscii should take an array of names and calculate each name's score based on the total of each character's lowercase ASCII value

The function sumAscii should take an array of names and calculate each name's score based on the total of each character's lowercase ASCII value. It should return the name with the highest score. E.g. ...
Cazoomy Maths's user avatar
0 votes
0 answers
6 views

why poi.emergency doesn't work in javascript map api

I want to color some geometry using API, but I found some of the geometry didn't work like what it is on the cloud style editing webpage. For exameple, below I want to color the poi.emergency, but it ...
Yongsan Huang's user avatar
0 votes
0 answers
4 views

Need help in error for react app where i get Seamless SSO error in react application

`Can you please help in providing suggestion to resolve this issue? I am encountering an issue with the seamless single sign-on (SSO) functionality in my front-end React application. When I attempt to ...
Ahmed Khan's user avatar
0 votes
0 answers
10 views

when export data to pdf using itextcharp libarary it give me empty file downloaded and can't open

I work on asp.net I face issue when export grid view have more than 2000 rows it download empty file pdf without data inside . and when click on file not open and give me file not in correct format ...
0 votes
0 answers
9 views

streaming a video into a web player using javacsript (react component)

I am using Javascript, however the possibly important caveat is in a WebView. I have a stream of data which is an mp4 that I can retrieve like so window.runtime.EventsOn('playback-continue'...
amlwwalker's user avatar
  • 3,252
-1 votes
1 answer
38 views

Difference between {} as an object and {} as empty block scope in JS [duplicate]

let a=10; {} //empty block scope //lets say there is an object let b ={}; so, how does js differentiate between the two ? console.log({}=={}) ( as an example ) is there a way where we can use {} as ...
Rizwan Saifi's user avatar
0 votes
0 answers
5 views

How to style Mapbox' Heatmap

I have this GeoJSON (can be downloaded here). The data is distributed through a grid, thus the points are distributed regularly. However, each point has a different "weight" via the prop ...
four-eyes's user avatar
  • 12k
0 votes
1 answer
23 views

What is the equivalent JavaScript syntax to Python's rawstring syntax r"" (instead of rf"")?

In Javascript, we can use the ES6 raw string String.raw`raw text` to form a raw string, but it uses the template string syntax at the same time. If I want to store the string "${a}\\${b}, with \\...
Tastror's user avatar
0 votes
0 answers
16 views

EJS isn't being rendered

I'm making a rock, scissors, paper game on the backend of Node.js with express server, frontend.js client-side, index.ejs and main.css files. I firstly want to render a string line of the result of ...
Yuval Yanay's user avatar
2 votes
1 answer
30 views

Is there a way to activate the printing header and footer using JS or CSS?

I've heard about @page in CSS, that can change margin, orientation, page break, but my question is: Is there a way to activate the "Headers and footers" option, for that when I open the ...
Henrique Dias's user avatar
-1 votes
0 answers
7 views

Responsiveness problem with my div using Vue and Tailwind (Keeping the width when it should shrink)

<div class="flex flex-col bg-sky-600 bg-opacity-35 w-full overflow-y-hidden h-auto max-h-64 px-5 rounded-lg shadow-md pt-5 text-white shrink scroll-smooth"> <h1>TODAY'S ...
Yasin's user avatar
  • 1
0 votes
0 answers
4 views

Passing an object to a route with vue-router

Based on this from vue-routers site it seems as though you can pass an object as a prop. However, everytime I try to do this it seems to it fail saying invalid param My route is defined as follows: ...
Qiuzman's user avatar
  • 1,471
0 votes
0 answers
7 views

Linking to emulator

Has anyone got any idea why this emulator won't link directly? It accepts code from the address bar and links from scruss.com okay https://scruss.com/blog/2018/07/02/moar-10print-nonsense/ I want to ...
Oggy Osborne's user avatar
0 votes
0 answers
16 views

Can I be sure that the application/json header is only set on ajax requests?

I need to distinguish browser requests from ajax requests and can see that when making a request via a form submission in regular HTML, I get the following value for the accept header: text/html,...
Oscar R's user avatar
  • 452
0 votes
0 answers
11 views

Mark table with swipe gesture on mobile phone

I have the following code: index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=&...
r5tr3's user avatar
  • 134
0 votes
0 answers
15 views

Show custom HTML in Firefox add-on popup/dialog

I'm learning how to make an extension (for Firefox). This add-on reads the youtube main page (https://www.youtube.com/) and get the visible videos on it. From those videos, I'm able to extract the ...
Mauricio Arias Olave's user avatar
0 votes
1 answer
14 views

Refresh / Reload page on pause youtube iframe api

I have a problem with my code. I want to refresh the page on pause or exit of full screen. The exit on Full screen works. The pause using the youTube iframe API does not "onstatechange". ...
Tone's user avatar
  • 19
-2 votes
0 answers
40 views

How can I make all my images to fit in the screen? [closed]

const names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", ]; ...
Alex's user avatar
  • 91
0 votes
0 answers
9 views

Hide page count from the go to section of the pdf toolbar when pdf is opened in browser

From java side I am converting tiff images to PDF like below. Rectangle pagesize = new Rectangle(maxWidth, maxHeight); Document document = new Document(pagesize); PdfWriter.getInstance(document, ...
Raju Kumar Shah's user avatar
0 votes
0 answers
29 views

How to automatically change the background color on left side of an HTML range slider?

I'm making an HTML music player project and I'm trying to make the left part of the <input type="range" value="0"> slider be black. The slider is to show how much a song has ...
user26529736's user avatar
0 votes
0 answers
12 views

How to create coupon/paywall in an Elementor Pro page for FREE

Hi there masters good day! Is it possible to create a page with a coupon code form, then the selected visitors need to enter the valid coupon code I emailed to them, and if the coupon code they ...
troyds's user avatar
  • 65
1 vote
2 answers
28 views

PHP HTML JS pagination

I have a page which feedbacks which looks like this (I just show 1 comment per page to see if the pagination works fine. Otherwise I'll show more): The feedbacks come from a mysql database and are ...
Andy McRae's user avatar
0 votes
0 answers
7 views

Download/Preview files in MS Teams from mobile device in custom teams application

I'm facing a wall on how to be able to download/Preview a file from a Microsoft Teams app on mobile. We have a custom Microsoft Teams application. In our application we have files that users should be ...
Caribouflex's user avatar
0 votes
0 answers
13 views

Simple sticky scroll effect causes glitch on mobile browsers

I wanted to use a scroll effect (parallax + filters) in a very simple page. It's just a sticky 120vh div with a background image and some text. Everything works fine in the desktop browser and with ...
Moritz Roessler's user avatar
0 votes
0 answers
7 views

Context Load before Client? react-native

i created a context to start up the socket but before that it validate the token sending a request to the server. there is an issue that i can't really figure it out. if the app is closed and i open ...
anfield's user avatar
  • 33
0 votes
0 answers
10 views

React & Cypress Component Tests: How to pass an object to an imported library in the Cypress setup?

I'm setting up Cypress to run component tests on a React-based app. The app uses multiple libraries, which I cannot change in any way. Although the app runs perfectly well, I'm unable to get any ...
Dorian Fabre's user avatar
0 votes
1 answer
8 views

How to build a Vue web component which reflects an internal state as an attribute?

I am building a web component input which looks like this with Vue 3: <my-input value="Search"></my-input> How can I make sure that the value attribute is always equivalent to ...
leonheess's user avatar
  • 19.9k
0 votes
0 answers
26 views

Vue 3 and Vitest focus input sets document.activeElement to HTMLBodyElement in test in composition API

Given a Vue 3 component <template> <input id="input" type="text" @focus="handleOnFocus($event)" /> </template> <script setup type="ts">...
mummybot's user avatar
  • 2,750

15 30 50 per page
1
2 3 4 5
33