id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_4532236
stackoverflow
FRONTEND_DEVELOPMENT
Accessing `window`/DOM/HTML of the webpage from a Chrome extension
Accessing `window`/DOM/HTML of the webpage from a Chrome extension I'm writing a Chrome extension and trying to overlay a <div> over the current webpage as soon as a button is clicked in the popup.html file. When I access the document.body.insertBefore method from within popup.html it overlays the <div> on the popup,...
https://stackoverflow.com/questions/4532236/accessing-window-dom-html-of-the-webpage-from-a-chrome-extension
javascript, google-chrome, dom, google-chrome-extension
1,293,321,746
se_79981675
stackoverflow
FRONTEND_DEVELOPMENT
React using a custom fetch hook, should you put data into state
React using a custom fetch hook, should you put data into state When using something like a simple custom fetch hook: import { useEffect, useState } from "react"; import useAxiosPrivate from "./useAxiosPrivate"; function useFetch(url) { const [data, setData] = useState(null); const [loading, setLoading] = useSt...
https://stackoverflow.com/questions/79981675/react-using-a-custom-fetch-hook-should-you-put-data-into-state
best-practices, javascript, reactjs, react-hooks, react-state
1,784,309,656
se_51906907
stackoverflow
FRONTEND_DEVELOPMENT
How to set an active css tab menu?
How to set an active css tab menu? I have a problem, I try to make menu tab using css, I got it, but the problem is I can't set an active tab menu without click the menu button, this is what i code: function openCity(evt, cityName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassN...
https://stackoverflow.com/questions/51906907/how-to-set-an-active-css-tab-menu
javascript, css, menu, tabs
1,534,582,248
se_79981659
stackoverflow
FRONTEND_DEVELOPMENT
How to use a script Injector to Block Rufus on Amazon permanently
How to use a script Injector to Block Rufus on Amazon permanently Amazon keeps insisting on adding Rufus (they call it Alexa on the website) and forcing it on the general public taking up half of the screen on laptop/desktop and then being told, no, we don't want that. And then taking it away and bring it back anyway....
https://stackoverflow.com/questions/79981659/how-to-use-a-script-injector-to-block-rufus-on-amazon-permanently
javascript
1,784,306,080
se_25035454
stackoverflow
FRONTEND_DEVELOPMENT
Monitor WebRTC video (media) stream quality in Javascript
Monitor WebRTC video (media) stream quality in Javascript I'm using WebRTC to stream video between peers, but changes in network conditions for some clients often produce quality changes in the received video stream. People blame the service for these quality drops and clearly I (the service) cannot do anything about ...
https://stackoverflow.com/questions/25035454/monitor-webrtc-video-media-stream-quality-in-javascript
javascript, video-streaming, html5-video, webrtc
1,406,719,075
se_56874850
stackoverflow
FRONTEND_DEVELOPMENT
Try-Catch not handling errors with an https.get request in Node
Try-Catch not handling errors with an https.get request in Node I have an https.get request in Node for which I need to handle the errors - preferably in a try-catch block. For instance, when the url is incorrect I have tried wrapping the https.get block in a try catch and I have tried handling with res.on('error'). ...
https://stackoverflow.com/questions/56874850/try-catch-not-handling-errors-with-an-https-get-request-in-node
javascript, node.js, https, error-handling, try-catch
1,562,172,792
se_42075288
stackoverflow
FRONTEND_DEVELOPMENT
Diagnosing WebRTC ICE Failures
Diagnosing WebRTC ICE Failures For the last three years, whenever I use WebRTC, somewhere or other I will be dogged by the following error: ICE Failed, see about:webrtc for more details The error seems to have pop up in a variety of places: If the network is turned off for either peer, causing a failure of WebRTC (...
https://stackoverflow.com/questions/42075288/diagnosing-webrtc-ice-failures
javascript, webrtc, sdp
1,486,407,717
se_67729934
stackoverflow
FRONTEND_DEVELOPMENT
Callback function don&#39;t set state so component try to re-render with empty values and throw error
Callback function don&#39;t set state so component try to re-render with empty values and throw error I have a react component that fetching data from an api. Then depending on its state parameters i rendering one of two pages - with teams or with championships. First it renders a list of a championships . And it work...
https://stackoverflow.com/questions/67729934/callback-function-dont-set-state-so-component-try-to-re-render-with-empty-value
javascript, reactjs, react-hooks
1,622,149,323
se_79857680
stackoverflow
FRONTEND_DEVELOPMENT
VS Code stuck on &quot;Initializing &#39;tsconfig.json&quot;
VS Code stuck on &quot;Initializing &#39;tsconfig.json&quot; Recently my VS Code seems to have a problem initializing my VueJs workspaces. When a .vue file is open VS Code displays "Initializing 'tsconfig.json'" in the the lower left-hand corner and it takes at least 20 minute if it finishes at all. Because of this al...
https://stackoverflow.com/questions/79857680/vs-code-stuck-on-initializing-tsconfig-json
javascript, typescript, vue.js, visual-studio-code, vuejs3
1,767,113,726
se_28094192
stackoverflow
FRONTEND_DEVELOPMENT
Difference between response.setHeader and response.writeHead?
Difference between response.setHeader and response.writeHead? In my application, I have my Nodejs server send a JSON response. I found two ways to do this but I'm not sure what the differences are. One way is var json = JSON.stringify(result.rows); response.writeHead(200, {'content-type':'application/json', 'content...
https://stackoverflow.com/questions/28094192/difference-between-response-setheader-and-response-writehead
javascript, node.js
1,421,945,152
se_62375853
stackoverflow
FRONTEND_DEVELOPMENT
How to select &lt;html&gt; element using pure javascript?
How to select &lt;html&gt; element using pure javascript? I want to get the element using javascript without using its ID( html id="somethin" ) or a class. Something like..... var whatIWantedToSelect = document.html; OR Something like..... var whatIWantedToSelect = document.getElementsByTagName('html')[0]; Ple...
https://stackoverflow.com/questions/62375853/how-to-select-html-element-using-pure-javascript
javascript, html
1,592,155,116
se_22403144
stackoverflow
FRONTEND_DEVELOPMENT
perfect-scrollbar default scrollbar remains and the &quot;perfect-scrollbar&quot; not functional
perfect-scrollbar default scrollbar remains and the &quot;perfect-scrollbar&quot; not functional I really need help with this one. I would like to replace the default scrollbar on my iframe with the "perfect scrollbar". I have downloaded the perfect scrollbar. I also have included the needed files into my html documen...
https://stackoverflow.com/questions/22403144/perfect-scrollbar-default-scrollbar-remains-and-the-perfect-scrollbar-not-func
javascript, jquery, css, iframe, perfect-scrollbar
1,394,794,778
se_40830606
stackoverflow
FRONTEND_DEVELOPMENT
Uncaught TypeError: Cannot read property &#39;submit&#39; of null
Uncaught TypeError: Cannot read property &#39;submit&#39; of null I'm trying to call a form in php with Javascript but for some reason, document.getElementById("form1").submit() returns null when it should returns the form1. Javascript: <script> function verificar(){ ........ if(certoCarga &...
https://stackoverflow.com/questions/40830606/uncaught-typeerror-cannot-read-property-submit-of-null
javascript, forms
1,480,260,654
se_70089143
stackoverflow
FRONTEND_DEVELOPMENT
How do I make a Javascript POST request with the KuCoin API?
How do I make a Javascript POST request with the KuCoin API? I'm trying to build a JavaScript/jQuery script which uses the KuCoin API. I'm specifically trying to use the KuCoin API from the browser console, not from Node JS or a local file. I have some success with the KuCoin API and I can make signed REST GET request...
https://stackoverflow.com/questions/70089143/how-do-i-make-a-javascript-post-request-with-the-kucoin-api
javascript, json, rest, kucoin
1,637,710,902
se_65317388
stackoverflow
FRONTEND_DEVELOPMENT
Uncaught ReferenceError, Splide is not defined at HTMLDocument
Uncaught ReferenceError, Splide is not defined at HTMLDocument I have written code for thumbnail slider following an example in the following link splidejs.com/getting-started for primary slider. Tried to look again and again but I don't see anything in the output even pictures are not shown. Header files already link...
https://stackoverflow.com/questions/65317388/uncaught-referenceerror-splide-is-not-defined-at-htmldocument
javascript, css
1,608,093,324
se_57263977
stackoverflow
FRONTEND_DEVELOPMENT
How to make a bot that listens for messages and sends them to another server?
How to make a bot that listens for messages and sends them to another server? I'm trying to make a bot that listens for messages in a channel and sends them to my private server. I don't fully understand coding stuff so I relied on some online sources. I already have done a bot that gets the new messages in a channel...
https://stackoverflow.com/questions/57263977/how-to-make-a-bot-that-listens-for-messages-and-sends-them-to-another-server
javascript, python, bots, discord, discord.py
1,564,457,918
se_71100587
stackoverflow
FRONTEND_DEVELOPMENT
Can i import the SVG file as a react component with dynamic import() Expressions?
Can i import the SVG file as a react component with dynamic import() Expressions? From this answer from stackoverflow, I got a solution on how to import svg as ReactComponent and change their color/width, etc. But is it possible to do the same for dynamic import? My functional component: import * as React from 'react'...
https://stackoverflow.com/questions/71100587/can-i-import-the-svg-file-as-a-react-component-with-dynamic-import-expressions
javascript, reactjs, typescript, react-typescript
1,644,755,144
se_1500260
stackoverflow
FRONTEND_DEVELOPMENT
Detect URLs in text with JavaScript
Detect URLs in text with JavaScript Does anyone have suggestions for detecting URLs in a set of strings? arrayOfStrings.forEach(function(string){ // detect URLs in strings and do something swell, // like creating elements with links. }); Update: I wound up using this regex for link detection… Apparently several...
https://stackoverflow.com/questions/1500260/detect-urls-in-text-with-javascript
javascript, regex, url
1,254,339,700
se_33437909
stackoverflow
FRONTEND_DEVELOPMENT
How to read value from daterangepicker?
How to read value from daterangepicker? I have this daterangepicker runs on my local PHP site. Here is the code for HTML part <form role="form" class="form-inline" method="post" action=""> <div id="reportrange" class="form-control"> <i class="fa fa-calendar"></i> <span></span> <b clas...
https://stackoverflow.com/questions/33437909/how-to-read-value-from-daterangepicker
javascript, jquery, daterangepicker
1,446,213,927
se_79957083
stackoverflow
FRONTEND_DEVELOPMENT
What are the safest tools or plugins you use to minify CSS and JavaScript without breaking site layout?
What are the safest tools or plugins you use to minify CSS and JavaScript without breaking site layout? I’m currently working on a technical SEO audit for a website and running into a wall with Core Web Vitals—specifically LCP and INP issues caused by heavy render-blocking resources. Google PageSpeed Insights is heavi...
https://stackoverflow.com/questions/79957083/what-are-the-safest-tools-or-plugins-you-use-to-minify-css-and-javascript-withou
javascript
1,781,264,668
se_59151432
stackoverflow
FRONTEND_DEVELOPMENT
React-Native-Video how to pause the video when video not in full screen or off the screen
React-Native-Video how to pause the video when video not in full screen or off the screen i am making a Android video gallery app like YouTube using React-Native for that i am using 'react-native-video' , package While using it i had a problem with video auto-play option all videos are playing at a time in the backgro...
https://stackoverflow.com/questions/59151432/react-native-video-how-to-pause-the-video-when-video-not-in-full-screen-or-off-t
javascript, android, react-native, react-native-video
1,575,355,217
se_71919488
stackoverflow
FRONTEND_DEVELOPMENT
WARN: Unable to locate &#39;report-task.txt&#39; in the workspace
WARN: Unable to locate &#39;report-task.txt&#39; in the workspace My stage sonarqube always fails to run the job, I've made sure the server is correct. Console output Started by user Jesaya Fernando Napitupulu Obtained Jenkinsfile from git http://10.8.60.132/jesaya/simple-webapp.git [Pipeline] Start of Pipeline [Pipel...
https://stackoverflow.com/questions/71919488/warn-unable-to-locate-report-task-txt-in-the-workspace
javascript, jenkins, kubernetes, sonarqube, jenkins-pipeline
1,650,340,410
se_66258858
stackoverflow
FRONTEND_DEVELOPMENT
Enable a Storybook control conditionally
Enable a Storybook control conditionally I use controls in a story to see different states of a component. Some props only make sense if some other prop is enabled. For example, I have 3 props: isEmployee - boolean isActive - boolean canContactInTheWeekend - boolean Here, canContactInTheWeekend applies only if isAct...
https://stackoverflow.com/questions/66258858/enable-a-storybook-control-conditionally
javascript, reactjs, components, storybook
1,613,646,983
se_28170718
stackoverflow
FRONTEND_DEVELOPMENT
How to stop scrolling of a div when it reaches on a specific div?
How to stop scrolling of a div when it reaches on a specific div? After clicking on a button im getting a pop up. What i want to achieve is to stop scrolling of this pop up when it reaches to the menu of my website. here is my code <div id="dialog_box" class="dbox" style="display: none; position: fixed; ...
https://stackoverflow.com/questions/28170718/how-to-stop-scrolling-of-a-div-when-it-reaches-on-a-specific-div
javascript, jquery, css
1,422,362,293
se_73331191
stackoverflow
FRONTEND_DEVELOPMENT
Postgres &quot;Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string&quot;
Postgres &quot;Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string&quot; I am trying to connect to a test database to run my unit tests on it and for some reason it is failing but when i connect to my development database everything works just fine that's my database.ts import dotenv from 'dotenv...
https://stackoverflow.com/questions/73331191/postgres-error-sasl-scram-server-first-message-client-password-must-be-a-str
javascript, node.js, typescript, postgresql
1,660,292,308
se_55135069
stackoverflow
FRONTEND_DEVELOPMENT
Lightning Web Component to display JSON String is not working
Lightning Web Component to display JSON String is not working I have the following lightning web component to read a JSON string and display them in Contact record Details page. Please note that I am new to lighting web components and making a considerable amount of effort to learn. MyComponent.html <template> <...
https://stackoverflow.com/questions/55135069/lightning-web-component-to-display-json-string-is-not-working
javascript, salesforce, web-component, lightning
1,552,455,424
se_79981368
stackoverflow
FRONTEND_DEVELOPMENT
How can I make my page scroll past three elements?
How can I make my page scroll past three elements? I am currently making a page on my website, in which you can scroll between profiles of staff in the company I am developing for. This scrolling is horizontal. Currently, I have 5 items that I can scroll between, but my page is only allowing me to scroll to three diff...
https://stackoverflow.com/questions/79981368/how-can-i-make-my-page-scroll-past-three-elements
javascript, html, css, horizontal-scrolling
1,784,220,371
se_79980840
stackoverflow
FRONTEND_DEVELOPMENT
Vite HMR WebSocket fails behind a browser-based coding workspace reverse proxy
Vite HMR WebSocket fails behind a browser-based coding workspace reverse proxy I am running a Vite React app inside a browser-based coding workspace. In my case the workspace is TuyaAI Coding (https://tuya.ai), but I think the issue is more related to Vite HMR and reverse proxy behavior. The app itself loads correctly...
https://stackoverflow.com/questions/79980840/vite-hmr-websocket-fails-behind-a-browser-based-coding-workspace-reverse-proxy
javascript, websocket, vite, reverse-proxy, hmr
1,784,087,247
se_79937559
stackoverflow
FRONTEND_DEVELOPMENT
Why Websocket not working production (Siteground)
Why Websocket not working production (Siteground) I'm trying to get the privkey.pem and fullchain.pem It does not exist in SiteGround I want to connect it to these certificates import { createServer as createHttpServer } from "http"; import { createServer as createHttpsServer } from "https"; import { Server } from "so...
https://stackoverflow.com/questions/79937559/why-websocket-not-working-production-siteground
javascript, node.js, sockets, websocket
1,778,155,789
se_42650966
stackoverflow
FRONTEND_DEVELOPMENT
How to play rtmp live stream in web browser?
How to play rtmp live stream in web browser? I am trying the rtmp url in video js player.But it was not working . In video js we have to give the type(application/x-mpegURL | video/mp4) in the source. <video id="wiPlayer" class="video-js vjs-default-skin" controls codecs="avc1.4D401E, mp4a.40.2" p...
https://stackoverflow.com/questions/42650966/how-to-play-rtmp-live-stream-in-web-browser
javascript, html5-video, video.js
1,488,897,269
se_19042221
stackoverflow
FRONTEND_DEVELOPMENT
How do you curry any javascript function of arbitrary arity?
How do you curry any javascript function of arbitrary arity? Let's say I have some function: function g(a,b,c){ return a + b + c } And I'd like to turn it into its "curried" form (in quotations since it's not exactly curried per se): function h(a,b,c){ switch(true){ case (a !== undefined && b !== und...
https://stackoverflow.com/questions/19042221/how-do-you-curry-any-javascript-function-of-arbitrary-arity
javascript, functional-programming, currying
1,380,252,458
se_29711396
stackoverflow
FRONTEND_DEVELOPMENT
Can you compare multiple variables to see if they all equal the same value?
Can you compare multiple variables to see if they all equal the same value? Working in Javascript, I am trying to see if 5 different variables all contain the same value at a given time. The value could be 1 of 6 things, but I need to see if they are all the same regardless of which value it is. I have tried this: ...
https://stackoverflow.com/questions/29711396/can-you-compare-multiple-variables-to-see-if-they-all-equal-the-same-value
javascript, compare, equality
1,429,316,078
se_63205154
stackoverflow
FRONTEND_DEVELOPMENT
Is it possible to resolve a Promise by user action or manually managed triggers? Yes, so we are able to form editable promises
Is it possible to resolve a Promise by user action or manually managed triggers? Yes, so we are able to form editable promises I want a program to run a chain of actions after certain user action is done. However, part of the chain will need to wait for the resolution of previous Promise OR the fact that user has done...
https://stackoverflow.com/questions/63205154/is-it-possible-to-resolve-a-promise-by-user-action-or-manually-managed-triggers
javascript, promise
1,596,284,537
se_79981283
stackoverflow
FRONTEND_DEVELOPMENT
MongoDB Atlas querySrv ECONNREFUSED while connecting with Express.js and Mongoose
MongoDB Atlas querySrv ECONNREFUSED while connecting with Express.js and Mongoose I'm trying to connect my Express.js application to MongoDB Atlas using Mongoose, but I'm getting the following error: MongoDB connection error: Error: querySrv ECONNREFUSED _mongodb._tcp.cluster0.tz9zxgv.mongodb.net at QueryReqWrap...
https://stackoverflow.com/questions/79981283/mongodb-atlas-querysrv-econnrefused-while-connecting-with-express-js-and-mongoos
javascript, database, mongodb
1,784,202,966
se_39721471
stackoverflow
FRONTEND_DEVELOPMENT
How to receive image file to API server (Node.js)
How to receive image file to API server (Node.js) I want to build API server by node.js, and I want to post image file to my API server. I was able to write GET method logic in my code but, I have no idea write POST method logic. Please help me. ↓My code (node.js) // preprocessing // import library var express ...
https://stackoverflow.com/questions/39721471/how-to-receive-image-file-to-api-server-node-js
javascript, node.js, curl
1,474,969,713
se_78973832
stackoverflow
FRONTEND_DEVELOPMENT
Is it possible to display a base64 docx file in React?
Is it possible to display a base64 docx file in React? I'm receiving documents from an API as a base64 string, and would like to display this in the browser. Is anyone aware of a way to display this base64 docx file? I've tried various packages to do this but they seem to only work if provided with a URL to a file tha...
https://stackoverflow.com/questions/78973832/is-it-possible-to-display-a-base64-docx-file-in-react
tooling-recommendation, javascript, reactjs, base64
1,726,058,304
se_57801954
stackoverflow
FRONTEND_DEVELOPMENT
Why the http response is not displayed in network tab of chrome debug?
Why the http response is not displayed in network tab of chrome debug? I used postman to test my web service. In the http response body, I find the WS's response. When I test my call, in my web application, using ajax, I can not find the response anymore. The tab contains a message saying "This request has no respons...
https://stackoverflow.com/questions/57801954/why-the-http-response-is-not-displayed-in-network-tab-of-chrome-debug
javascript, ajax, google-chrome-devtools
1,567,674,098
se_26987993
stackoverflow
FRONTEND_DEVELOPMENT
Cannot read setMap property of undefined while using Google maps Javascript API
Cannot read setMap property of undefined while using Google maps Javascript API I call the initialize function on page load. Which correctly setsup all the markers. Then I have a searchbox along with a submit button which clears all the markers and then fetches a new JSON object which consist of new markers to be crea...
https://stackoverflow.com/questions/26987993/cannot-read-setmap-property-of-undefined-while-using-google-maps-javascript-api
javascript, google-maps, google-maps-api-3
1,416,292,077
se_39490442
stackoverflow
FRONTEND_DEVELOPMENT
Read data from Excel file using Apex in Salesforce
Read data from Excel file using Apex in Salesforce I have a requirement where we need to parse the excel file and insert the data in one of the object using apex. This excel file contains multiple sheets. We need to read the data from multiple sheets (as of now one sheet is also fine) and upload the data. Please hel...
https://stackoverflow.com/questions/39490442/read-data-from-excel-file-using-apex-in-salesforce
javascript, salesforce, apex-code, apex, sfdc
1,473,855,951
se_10558534
stackoverflow
FRONTEND_DEVELOPMENT
How can you see which Javascript script generated a certain html line?
How can you see which Javascript script generated a certain html line? I have some crazy app done almost 100% by manipulating the DOM and I find myself in the unfortunate position of changing something in it. As there are probably around 100 different scripts that do God knows what, I have no clue in which file should...
https://stackoverflow.com/questions/10558534/how-can-you-see-which-javascript-script-generated-a-certain-html-line
javascript, html, firebug
1,336,769,877
se_79981087
stackoverflow
FRONTEND_DEVELOPMENT
How can I set an object&#39;s property value depending on a condition using if statements?
How can I set an object&#39;s property value depending on a condition using if statements? Here's my attempt at trying to use if statements to define a different object property value depending on a condition (in this case, the "type"): // This will NOT work. function log(msg, type) { const p = document.createEleme...
https://stackoverflow.com/questions/79981087/how-can-i-set-an-objects-property-value-depending-on-a-condition-using-if-state
javascript
1,784,141,507
se_41619497
stackoverflow
FRONTEND_DEVELOPMENT
How to make pseudo class :invalid apply to an input AFTER submitting a form
How to make pseudo class :invalid apply to an input AFTER submitting a form I have created a form and decided to validate it with just HTML5 and some JS without any additional plugins. So all of my required inputs have required attribute. Here is the CSS to make them look nice input:invalid { border: 2px solid...
https://stackoverflow.com/questions/41619497/how-to-make-pseudo-class-invalid-apply-to-an-input-after-submitting-a-form
javascript, html, css, forms, validation
1,484,242,331
se_78879291
stackoverflow
FRONTEND_DEVELOPMENT
How to customize HTML report file name in Playwright
How to customize HTML report file name in Playwright I'm trying to customize the Playwright's HTML report file name. I've tried both fileName and outputFile settings but no luck. I have to mention that when I set outputFolder it changes the folder accordingly. import { defineConfig } from '@playwright/test'; export d...
https://stackoverflow.com/questions/78879291/how-to-customize-html-report-file-name-in-playwright
javascript, typescript, report, playwright
1,723,813,705
se_39533291
stackoverflow
FRONTEND_DEVELOPMENT
Angular2 router 2.0.0 not reloading components when same url loaded with different parameters?
Angular2 router 2.0.0 not reloading components when same url loaded with different parameters? I have this in my .routing.ts file export const routing = RouterModule.forChild([ { path: 'page/:id', component: PageComponent }]); My PageComponent file checks the id parameter and loads the data accordingly. In...
https://stackoverflow.com/questions/39533291/angular2-router-2-0-0-not-reloading-components-when-same-url-loaded-with-differe
javascript, html, angular, angular2-routing
1,474,034,117
se_57123534
stackoverflow
FRONTEND_DEVELOPMENT
how to remove the warning &quot;This will upload all files from [Folder]. Only do this if you trust this site.&quot;
how to remove the warning &quot;This will upload all files from [Folder]. Only do this if you trust this site.&quot; While uploading the folder using Webkitdirectory html feature, we come across the warning message that says "This will upload all files from [Folder]. Only do this if you trust this site." I want to re...
https://stackoverflow.com/questions/57123534/how-to-remove-the-warning-this-will-upload-all-files-from-folder-only-do-thi
javascript, c#, html
1,563,615,950
se_26866708
stackoverflow
FRONTEND_DEVELOPMENT
Responsive Masonry layout without predefined widths
Responsive Masonry layout without predefined widths I'm creating a 2 column masonry layout using images of different sizes. The images can be any size as long as they have the greatest common divisor (as required by the Masonry plugin). In order to make the layout responsive I'm converting the width of the masonry ite...
https://stackoverflow.com/questions/26866708/responsive-masonry-layout-without-predefined-widths
javascript, jquery, css, jquery-masonry, masonry
1,415,714,743
se_37462126
stackoverflow
FRONTEND_DEVELOPMENT
Regex match markdown link
Regex match markdown link I have a string with markdown in it. I am trying to strip all markdown using regex but am having trouble with matching links. Here's how far I got: function stripMarkdown(text) { var str = String(text).replace(/(__|\*|\#)/gm, ''); return str; } var testStr = '# This is the title. ## Thi...
https://stackoverflow.com/questions/37462126/regex-match-markdown-link
javascript, regex
1,464,268,966
se_2231952
stackoverflow
FRONTEND_DEVELOPMENT
Loading remote JavaScript file in a page
Loading remote JavaScript file in a page I've a simple page in which in the head I load several remote JavaScript files (I need them and can't have a local copy). The scripts I load are similar to these: <script type="text/javascript" src="http://mymachine/donald/script1.js"></script> <script type="text/javascript" ...
https://stackoverflow.com/questions/2231952/loading-remote-javascript-file-in-a-page
javascript, html, internet-explorer-7
1,265,744,257
se_61935039
stackoverflow
FRONTEND_DEVELOPMENT
Javascript map add value to exist key
Javascript map add value to exist key Hello I've got problem with map in js, I've got list of orders in form like this=> const ORDERS = [ { orderId:1, category:"sport", amount:350, time:'2019-12-15T19:23:30.000Z' }, { orderId:2, category:"sport", amount:350, time:'2019-12-15T19:2...
https://stackoverflow.com/questions/61935039/javascript-map-add-value-to-exist-key
javascript, dictionary
1,590,065,857
se_79980907
stackoverflow
FRONTEND_DEVELOPMENT
How can I retrieve the text from my search bar and use it in my event listener without triggering a addEventListener is not a function?
How can I retrieve the text from my search bar and use it in my event listener without triggering a addEventListener is not a function? I'm making a website that displays restaurant in a specific area. The website has a search function where the user can search for a restaurant name and the website will display it. E....
https://stackoverflow.com/questions/79980907/how-can-i-retrieve-the-text-from-my-search-bar-and-use-it-in-my-event-listener-w
javascript, html, node.js, express
1,784,103,868
se_18852912
stackoverflow
FRONTEND_DEVELOPMENT
How to make equalization div&#39;s height?
How to make equalization div&#39;s height? How to make equalization div's height? 1st div has "auto" height via listed items and 2nd div has only min-height now: my bad jquery code: $("#contentt").height($("#content").height()); and JsFiddle: http://jsfiddle.net/3b5q9/5/
https://stackoverflow.com/questions/18852912/how-to-make-equalization-divs-height
javascript, jquery
1,379,428,898
se_77583341
stackoverflow
FRONTEND_DEVELOPMENT
Cannot find module @rollup/rollup-win32-x64-msvc. npm has a bug related to optional dependencies
Cannot find module @rollup/rollup-win32-x64-msvc. npm has a bug related to optional dependencies I am facing an error while running the server after creating a vite application please help me resolve this. I was learning threejs and just created a vite application with vanilla framework and javascript as the language...
https://stackoverflow.com/questions/77583341/cannot-find-module-rollup-rollup-win32-x64-msvc-npm-has-a-bug-related-to-optio
javascript, reactjs, vite, rollupjs
1,701,411,813
se_57706882
stackoverflow
FRONTEND_DEVELOPMENT
data is not inserting into mongodb using node.js
data is not inserting into mongodb using node.js hello I am new to nodejs and trying to inserting data in mongodb but its not inserting, and no error is showing, and on page submit it says "Cannot POST /crud", any refrence or suggestion to resolve it (remember no error is showing) schema(Crud.js): const mongoose ...
https://stackoverflow.com/questions/57706882/data-is-not-inserting-into-mongodb-using-node-js
javascript, node.js, mongodb, mongoose, node-modules
1,567,070,028
se_79980626
stackoverflow
FRONTEND_DEVELOPMENT
How to queue microtask at tail end?
How to queue microtask at tail end? In JavaScript, we can queueMicrotask, but this takes the same priority as any newly created promises (e.g. if the codebase is littered with async functions that resolve immediately). Is there a way I can queue to the tail end of the microtask queue, so that any further scheduled mic...
https://stackoverflow.com/questions/79980626/how-to-queue-microtask-at-tail-end
javascript, event-loop
1,784,026,675
se_77965547
stackoverflow
FRONTEND_DEVELOPMENT
Permissions policy violation in Chrome-based browsers while accessing camera
Permissions policy violation in Chrome-based browsers while accessing camera I'm encountering a permissions policy violation issue specific to Chrome-based browsers when attempting to access the camera using the following code. Strangely, the code works without any errors in Safari and Firefox. The error message I'm r...
https://stackoverflow.com/questions/77965547/permissions-policy-violation-in-chrome-based-browsers-while-accessing-camera
javascript, google-chrome, getusermedia, mediadevices, policy-violation
1,707,440,432
se_43601057
stackoverflow
FRONTEND_DEVELOPMENT
Cannot change chart.js size
Cannot change chart.js size <html> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="/css/graph2.css"> <title>Graph</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js"></script> </head> <body> <canvas id="updating-chart" width="200" height="2...
https://stackoverflow.com/questions/43601057/cannot-change-chart-js-size
javascript, html, css
1,493,090,742
se_24332604
stackoverflow
FRONTEND_DEVELOPMENT
What happens to web pages when you copy HTML source code into a .html file in notepad?
What happens to web pages when you copy HTML source code into a .html file in notepad? I am just starting out trying to familiarize myself with some HTML, and for lack of knowledge of better places to start, I have been looking at some source code taken from web sites and copy and pasting them into a notepad and then ...
https://stackoverflow.com/questions/24332604/what-happens-to-web-pages-when-you-copy-html-source-code-into-a-html-file-in-no
javascript, html, css
1,403,285,101
se_77180869
stackoverflow
FRONTEND_DEVELOPMENT
How to play a local audio file in Tauri?
How to play a local audio file in Tauri? I'm working on a mp3 (audio) player on Tauri and Vue.js. I tried multiple solution but none of them worked. My player is using a simple video tag : <video ref="video" :key="queryUrl" controls> <source :key="queryUrl" :src="sourceUrl" ref="source" typ...
https://stackoverflow.com/questions/77180869/how-to-play-a-local-audio-file-in-tauri
javascript, vue.js, audio, mp3, tauri
1,695,737,852
se_29473962
stackoverflow
FRONTEND_DEVELOPMENT
Select2 upon click(not selected), show loading spinner javascript
Select2 upon click(not selected), show loading spinner javascript Ok my code is quite simple. I am using sample data but in my real code, upon clicking the select2 dropdown, the data takes a long time to load and to counter that i want to include a loading spinner that shows when the dropdown is clicked and hides afte...
https://stackoverflow.com/questions/29473962/select2-upon-clicknot-selected-show-loading-spinner-javascript
javascript, jquery, ruby-on-rails, twitter-bootstrap
1,428,332,997
se_79980745
stackoverflow
FRONTEND_DEVELOPMENT
Why does useEffect show an old external store value after React Activity is shown again?
Why does useEffect show an old external store value after React Activity is shown again? I was testing Activity in react 19.2 and noticed that a component using useEffect keeps the old store value after the activity is hidden and then shown again. The same example works correctly with useSyncExternalStore. import { A...
https://stackoverflow.com/questions/79980745/why-does-useeffect-show-an-old-external-store-value-after-react-activity-is-show
javascript, reactjs, react-hooks, react-state-management
1,784,049,717
se_79980662
stackoverflow
FRONTEND_DEVELOPMENT
How to use the &quot;JavaScript Express Application&quot; project type in Visual Studio 2026?
How to use the &quot;JavaScript Express Application&quot; project type in Visual Studio 2026? I've recently started looking into developing a client side JavaScript application, that should run on pure client side JavaScript. With this I've come across the "JavaScript Express Application" project type that feels like ...
https://stackoverflow.com/questions/79980662/how-to-use-the-javascript-express-application-project-type-in-visual-studio-20
javascript, visual-studio, visual-studio-2026
1,784,033,506
se_79966820
stackoverflow
FRONTEND_DEVELOPMENT
How to catch `contextmenu` events while ignoring `mousedown` events on touchscreens
How to catch `contextmenu` events while ignoring `mousedown` events on touchscreens I have this code that detects touchstart, onmousedown, and oncontextmenu events: var h1 = document.querySelector("h1"); h1.ontouchstart=function(){h1.innerText='touchstart';return true;}; h1.onmous...
https://stackoverflow.com/questions/79966820/how-to-catch-contextmenu-events-while-ignoring-mousedown-events-on-touchscre
javascript, html, touch
1,782,389,029
se_43244570
stackoverflow
FRONTEND_DEVELOPMENT
Javascript code using regex allows invalid input strings to pass validation
Javascript code using regex allows invalid input strings to pass validation I am using Javascript to validate a pattern and I'm basically looking to just allow alphanumeric values and a subset of punctuation characters. Strangely, when I enter a ( or a ) immediately followed by something it fails, but if I give it a s...
https://stackoverflow.com/questions/43244570/javascript-code-using-regex-allows-invalid-input-strings-to-pass-validation
javascript, regex, validation, whitelist
1,491,445,101
se_41019127
stackoverflow
FRONTEND_DEVELOPMENT
offsetTop,offsetLeft and getBoundingClientRect() are not working in my React app
offsetTop,offsetLeft and getBoundingClientRect() are not working in my React app I'm working in react and I'm creating a button with a tooltip, but I can't place it. I mean I can't read the button's distance from the top and left. I tried offsetTop and offsetLeft and I got this error: "Uncaught TypeError: Cannot read ...
https://stackoverflow.com/questions/41019127/offsettop-offsetleft-and-getboundingclientrect-are-not-working-in-my-react-app
javascript, reactjs
1,481,118,388
se_20813186
stackoverflow
FRONTEND_DEVELOPMENT
jQuery remove() everything except an item
jQuery remove() everything except an item I currently have the following code: $( '.spandiv:eq(1)' ).remove(); This very nicely removes the second (as it uses 0-based indexing) item in the span list, which is great. However, I have a question. Is it possible to remove everything except the second item? I know I coul...
https://stackoverflow.com/questions/20813186/jquery-remove-everything-except-an-item
javascript, jquery, jquery-selectors
1,388,224,475
se_79978519
stackoverflow
FRONTEND_DEVELOPMENT
How can I get an HTML element to react to :hover at a z-index under 0?
How can I get an HTML element to react to :hover at a z-index under 0? I have been trying to get my animated dropdowns to stay down when hovered but also have them go behind the header for aesthetic purposes. However, every time that I change the z-index of the mega dropdown to be lower than 0, the :hover trigger neve...
https://stackoverflow.com/questions/79978519/how-can-i-get-an-html-element-to-react-to-hover-at-a-z-index-under-0
javascript, html, css, z-index
1,783,652,064
se_65198486
stackoverflow
FRONTEND_DEVELOPMENT
Understanding Typescript Record type with React&#39;s useContext
Understanding Typescript Record type with React&#39;s useContext I'm having some issues understanding the record type in a generator function I'm developing for React contexts. Here's my generator function: import * as React from 'react' export type State = Record<string, unknown> export type Action = { type: string;...
https://stackoverflow.com/questions/65198486/understanding-typescript-record-type-with-reacts-usecontext
javascript, reactjs, typescript, react-context
1,607,428,697
se_79911767
stackoverflow
FRONTEND_DEVELOPMENT
Client-side video crop + audio mux on iOS Safari with HEVC — any viable approach?
Client-side video crop + audio mux on iOS Safari with HEVC — any viable approach? I'm building a web app where users upload a video, the app crops the first 60 seconds client-side, extracts audio for server-side AI processing, then muxes the returned audio back into the cropped video. This must work on mobile includin...
https://stackoverflow.com/questions/79911767/client-side-video-crop-audio-mux-on-ios-safari-with-hevc-any-viable-approach
javascript, ios, ffmpeg
1,774,078,162
se_79980578
stackoverflow
FRONTEND_DEVELOPMENT
How to remove contextmenu event without using getEventListeners() in bookmarklet?
How to remove contextmenu event without using getEventListeners() in bookmarklet? I've got a piece of code which successfully removes the block on right-clicking I need to make it work in Chrome only so getEventListeners() is fine I can't install my own extensions I have code which works in the Console, but it does...
https://stackoverflow.com/questions/79980578/how-to-remove-contextmenu-event-without-using-geteventlisteners-in-bookmarklet
javascript, google-chrome, google-chrome-devtools, bookmarklet
1,783,993,084
se_79980365
stackoverflow
FRONTEND_DEVELOPMENT
Dynamically created divs not draggable
Dynamically created divs not draggable I have a table with two cells with a parent div in each cell. Via an ajax call I am populating the divs with child divs and I want the child divs to be draggable but after setting them to be draggable they are not. If I add hard coded divs then they are draggable so is it a probl...
https://stackoverflow.com/questions/79980365/dynamically-created-divs-not-draggable
javascript, html, jquery, draggable, droppable
1,783,949,836
se_42471521
stackoverflow
FRONTEND_DEVELOPMENT
SyntaxError: Unexpected token export
SyntaxError: Unexpected token export I'm working on a npm package called foobar, locally, to allow me to make changes or modifications in real time without having to publish/unpublish to improve development time and sanity. In projectTest, I have linked foobar by using the command npm link foobar. If you don't know, t...
https://stackoverflow.com/questions/42471521/syntaxerror-unexpected-token-export
javascript, npm, ecmascript-6, babeljs, transpiler
1,488,128,658
se_22774763
stackoverflow
FRONTEND_DEVELOPMENT
How to set max scroll position?
How to set max scroll position? Let's say that we have body width of page set to 2000px with content centered horizontally inside of body with width set to 1200px. <body> <div class="content"></div> </body> CSS: body { width: 2000px; } .content { position: relative; width: 1200px; margin-left: ...
https://stackoverflow.com/questions/22774763/how-to-set-max-scroll-position
javascript, jquery, html, css
1,396,312,773
se_3444719
stackoverflow
FRONTEND_DEVELOPMENT
How to know when an DOM element moves or is resized
How to know when an DOM element moves or is resized I'd like to know if there is a DOM event to listen for that tells me when a DOM element moves is repositioned or is resized on the page. I am not talking about an elements being drag/dropped. An example is if I have a list of three items on a page, and I use JS to ...
https://stackoverflow.com/questions/3444719/how-to-know-when-an-dom-element-moves-or-is-resized
javascript, jquery, dom-events
1,281,393,458
se_12694530
stackoverflow
FRONTEND_DEVELOPMENT
What is TypeScript and why should I use it instead of JavaScript?
What is TypeScript and why should I use it instead of JavaScript? What is the TypeScript language? What can it do that JavaScript or available libraries cannot do, that would give me reason to consider it?
https://stackoverflow.com/questions/12694530/what-is-typescript-and-why-should-i-use-it-instead-of-javascript
javascript, typescript
1,349,195,878
se_63040475
stackoverflow
FRONTEND_DEVELOPMENT
&quot;Uncaught ReferenceError: getEventListeners is not defined&quot;
&quot;Uncaught ReferenceError: getEventListeners is not defined&quot; i'm trying to remove Listeners. In console a code below is working. When i use code in Chrome extension i get: "Uncaught ReferenceError: getEventListeners is not defined". Why does this happen? Is there an equivalent to the function "getEventListene...
https://stackoverflow.com/questions/63040475/uncaught-referenceerror-geteventlisteners-is-not-defined
javascript, google-chrome, google-chrome-extension, google-chrome-devtools
1,595,440,777
se_41431322
stackoverflow
FRONTEND_DEVELOPMENT
How to convert FormData (HTML5 object) to JSON
How to convert FormData (HTML5 object) to JSON How do I convert the entries from a HTML5 FormData object to JSON? The solution should not use jQuery. Also, it should not simply serialize the entire FormData object, but only its key/value entries.
https://stackoverflow.com/questions/41431322/how-to-convert-formdata-html5-object-to-json
javascript, json, form-data
1,483,380,028
se_73925705
stackoverflow
FRONTEND_DEVELOPMENT
how to trim dot at the end of string in JS?
how to trim dot at the end of string in JS? How can I trim the dot at the end of string in JS ? Input: const string = 'ABCD.txt' Output: const string = 'ABCD' How can I do ? Thanks for help me 🥰
https://stackoverflow.com/questions/73925705/how-to-trim-dot-at-the-end-of-string-in-js
javascript, reactjs, string
1,664,712,669
se_54698826
stackoverflow
FRONTEND_DEVELOPMENT
Inserting Javascript into admin footer wordpress
Inserting Javascript into admin footer wordpress I need to add Livechat widget on all WordPress admin pages (backend). The Livechat JavaScript code is this: <!-- Start of LiveChat (www.livechatinc.com) code --> <script type="text/javascript"> window.__lc = window.__lc || {}; window.__lc.license = 12345678; (function()...
https://stackoverflow.com/questions/54698826/inserting-javascript-into-admin-footer-wordpress
javascript, wordpress, wordpress-theming, custom-wordpress-pages, wordpress-admin
1,550,177,232
se_43146480
stackoverflow
FRONTEND_DEVELOPMENT
JavaScript Image Slider - Need to add buttons
JavaScript Image Slider - Need to add buttons Please see my code below. This code works fine but I want to add pause/resume, forward, backward buttons. So if someone click on pause, it will stop auto rotation. I can't use jQuery. I worked on this code but i am not able to add buttons to this code. (function() { ...
https://stackoverflow.com/questions/43146480/javascript-image-slider-need-to-add-buttons
javascript, html, css
1,490,981,306
se_42853818
stackoverflow
FRONTEND_DEVELOPMENT
HTML drop down menu won&#39;t stay open when clicking on it
HTML drop down menu won&#39;t stay open when clicking on it I am creating a web site for a college project using html and CSS and I am trying to add a dropdown menu. I followed a tutorial for this from w3Schools but for some reason when I click the button to open the menu it just won't stay open and disappears straigh...
https://stackoverflow.com/questions/42853818/html-drop-down-menu-wont-stay-open-when-clicking-on-it
javascript, html, css
1,489,743,270
se_42796315
stackoverflow
FRONTEND_DEVELOPMENT
Scale the whole web site by 0.8 when in a certain width
Scale the whole web site by 0.8 when in a certain width I am working on a responsive web site and the elements on the web site are larger than I anticipate. I would like to zoom out or scale back the website such that if the web site is loaded in a device of certain width, it would show the scaled down version. I know...
https://stackoverflow.com/questions/42796315/scale-the-whole-web-site-by-0-8-when-in-a-certain-width
javascript, html, css
1,489,524,697
se_30422741
stackoverflow
FRONTEND_DEVELOPMENT
Reveal image as user scrolls down
Reveal image as user scrolls down I was checking this website: http://www.flagofplanetearth.com/ You can see, the images reveal more as you scroll down. I have seen such an effect on only a few other web sites and was wondering how it is done. I don't even know what it's called so couldn't really search for it.
https://stackoverflow.com/questions/30422741/reveal-image-as-user-scrolls-down
javascript, html, css
1,432,465,093
se_18750459
stackoverflow
FRONTEND_DEVELOPMENT
js called in head does not always load
js called in head does not always load I'm building a responsive web site from the ground up for use as a SharePoint 2013 master page, using skel.js to control the grid and breakpoints. Once published, the js files (skel.min.js, skel-panels.min.js, jquery.min.js, html5shiv.js, and a simple config.js written by me to c...
https://stackoverflow.com/questions/18750459/js-called-in-head-does-not-always-load
javascript, html, css
1,378,930,556
se_18341032
stackoverflow
FRONTEND_DEVELOPMENT
WordPress ContactForm7 datepicker field - disable/block specific dates?
WordPress ContactForm7 datepicker field - disable/block specific dates? I currently have a WordPress site installed where users can book a tour of our facility (we are a university). I have used the ContactForm7 plugin to create a form within a page where visitors can enter their contact information and then can use a...
https://stackoverflow.com/questions/18341032/wordpress-contactform7-datepicker-field-disable-block-specific-dates
javascript, jquery, wordpress, datepicker, contact-form-7
1,377,018,493
se_54869875
stackoverflow
FRONTEND_DEVELOPMENT
Angular 6 ngx-mask plugin, multiple masks on same input field
Angular 6 ngx-mask plugin, multiple masks on same input field So i use this plugin https://github.com/JsDaddy/ngx-mask to mask an input field dynamically (while user is typing). So for example if my mask only accepts 123 and they type abc nothing will happen. The problem I am having is I need two masks on the same inp...
https://stackoverflow.com/questions/54869875/angular-6-ngx-mask-plugin-multiple-masks-on-same-input-field
javascript, angular, masking
1,551,109,544
se_22710180
stackoverflow
FRONTEND_DEVELOPMENT
Auto type inside text input
Auto type inside text input I would like to let there automatically appear text inside an input type=text element. I would like to accomplish that the different kind of texts are stored inside an array and that every 5 seconds or so, a text is 'typed' by javascript into this field. Then I also like that when I focus ...
https://stackoverflow.com/questions/22710180/auto-type-inside-text-input
javascript, jquery, html, css
1,396,002,454
se_74005057
stackoverflow
FRONTEND_DEVELOPMENT
Calling py-script function from button-click with &quot;pys-onClick=...&quot; doesn&#39;t work?
Calling py-script function from button-click with &quot;pys-onClick=...&quot; doesn&#39;t work? I'm relatively new to PyScript and would like to run a function when a button is clicked. However, no matter what code I try, it doesn't seem to work. The button is clickable but doesn't appear to do anything. When I call t...
https://stackoverflow.com/questions/74005057/calling-py-script-function-from-button-click-with-pys-onclick-doesnt-work
javascript, python, button, pyscript
1,665,321,081
se_79948555
stackoverflow
FRONTEND_DEVELOPMENT
Where can I find a list of valid values for esbuild&#39;s &quot;target&quot; property?
Where can I find a list of valid values for esbuild&#39;s &quot;target&quot; property? This is not answered by the docs https://esbuild.github.io/api/#target https://github.com/search?q=repo%3Aevanw%2Fesbuild%20node22&type=code node22 is a valid target according to their CHANGELOG file, but node22 is not in their code...
https://stackoverflow.com/questions/79948555/where-can-i-find-a-list-of-valid-values-for-esbuilds-target-property
javascript, node.js, esbuild
1,780,068,772
se_35231489
stackoverflow
FRONTEND_DEVELOPMENT
Get the last item from node list without using .length
Get the last item from node list without using .length The following code document.querySelectorAll('#divConfirm table')[1].querySelectorAll('tr') returns a NodeList with 3 table row (tr) elements in it. If I know the list size, I can access the last element via NodeList's .item(2) method. Is there a way to get the l...
https://stackoverflow.com/questions/35231489/get-the-last-item-from-node-list-without-using-length
javascript
1,454,698,531
se_77924729
stackoverflow
FRONTEND_DEVELOPMENT
Chrome Extension Take Screenshot of Specific Element
Chrome Extension Take Screenshot of Specific Element I am making a chrome extension that can take a screenshot of a specific element, however, I am not sure how to take a screenshot ONLY of that element because captureVisibleTab takes a picture of the whole tab. I tried using getBoundingClientRect to crop the bigger s...
https://stackoverflow.com/questions/77924729/chrome-extension-take-screenshot-of-specific-element
javascript, google-chrome-extension
1,706,849,298
se_79980164
stackoverflow
FRONTEND_DEVELOPMENT
How to make Vite add react-icons to a separate .js file when executing &#39;npm run dev&#39;?
How to make Vite add react-icons to a separate .js file when executing &#39;npm run dev&#39;? I have to show icons (100+) in my React app so the used can select one which will be used on some diagram. I was able to achieve that so my import looks like ... import * as IconsFa from 'react-icons/fa' import * as IconsIo f...
https://stackoverflow.com/questions/79980164/how-to-make-vite-add-react-icons-to-a-separate-js-file-when-executing-npm-run
javascript, reactjs, vite
1,783,890,670
se_79980489
stackoverflow
FRONTEND_DEVELOPMENT
Facebook iOS in-app browser converts a Page URL to fb://profile but shows a blank page
Facebook iOS in-app browser converts a Page URL to fb://profile but shows a blank page Environment Our mobile landing page is opened from a Facebook ad inside the Facebook iOS in-app browser. The page contains a CTA that should open our public Facebook Page: https://www.facebook.com/profile.php?id=REDACTED_PAGE_ID Th...
https://stackoverflow.com/questions/79980489/facebook-ios-in-app-browser-converts-a-page-url-to-fb-profile-but-shows-a-blan
javascript, ios, facebook, webview, deep-linking
1,783,994,155
se_59780873
stackoverflow
FRONTEND_DEVELOPMENT
Argument of type &#39;RegExp&#39; is not assignable to parameter of type &#39;string&#39;
Argument of type &#39;RegExp&#39; is not assignable to parameter of type &#39;string&#39; I am trying to import an Excel File like so: onFileChange(event: any) { const inputFile: DataTransfer = <DataTransfer>(event.target); const fileReader: FileReader = new FileReader(); fileReader.onload = (event: a...
https://stackoverflow.com/questions/59780873/argument-of-type-regexp-is-not-assignable-to-parameter-of-type-string
javascript, angular, typescript
1,579,232,442
se_31159720
stackoverflow
FRONTEND_DEVELOPMENT
JSSOR Slider not visible
JSSOR Slider not visible I tried to integrate the "JSSOR Image Slider" into a new webpage. I want to use the demo at http://pur-regional.de/test/demos-jquery/simple-fade-slideshow.source.html My Webpage is managed by Contao. In my HTML, I have a DIV (class="six-nineteen") which keeps a 16:9 ratio when you are resizing...
https://stackoverflow.com/questions/31159720/jssor-slider-not-visible
javascript, jquery, html, css, jssor
1,435,749,307
se_38933622
stackoverflow
FRONTEND_DEVELOPMENT
Changing video resolution on HTML 5.0 video with JavaScript
Changing video resolution on HTML 5.0 video with JavaScript UPDATE: I was using the Fotorama plugin and it seems that the bottom menu was causing the problem. Disabling that menu by putting div-tags around the video-tags made the function for setting resolution work. Thanks for the help and encouragement. For the bott...
https://stackoverflow.com/questions/38933622/changing-video-resolution-on-html-5-0-video-with-javascript
javascript, html, html5-video
1,471,097,900
se_71571543
stackoverflow
FRONTEND_DEVELOPMENT
How do I get audio from a web page that is playing?
How do I get audio from a web page that is playing? A website is playing audio. There are no <audio> tags evident in Inspect Element tab from DevTools. How do I get an audio file to download from the webpage (and how are they playing the audio)? After a bit of research, it seems the only way to play audio is through t...
https://stackoverflow.com/questions/71571543/how-do-i-get-audio-from-a-web-page-that-is-playing
javascript, audio, google-chrome-devtools
1,647,949,630
se_64145314
stackoverflow
FRONTEND_DEVELOPMENT
How to convert a string to JSON in JavaScript
How to convert a string to JSON in JavaScript In my application I am getting a response like below: {"success":true,"data":"{\"status\": \"Failed\", \"percentage_completed\": \"0\", \"actions\": \"Error: Insufficient argument: 1\\n\"}","message":"Logs fetched successfully."} How can I convert this into JSON? I tried ...
https://stackoverflow.com/questions/64145314/how-to-convert-a-string-to-json-in-javascript
javascript, json
1,601,497,973
se_79980381
stackoverflow
FRONTEND_DEVELOPMENT
Restricting the droppable vicinity of dynamically generated draggable div
Restricting the droppable vicinity of dynamically generated draggable div I am adding draggable child divs to a parent div and making the draggable child divs draggable upon creation via an ajax call. I want to be able to drag .liveBox divs only to the div .MDTOptionsHostDiv. But I can still drag the child divs anywhe...
https://stackoverflow.com/questions/79980381/restricting-the-droppable-vicinity-of-dynamically-generated-draggable-div
javascript, html, jquery, draggable, droppable
1,783,953,205
se_12002861
stackoverflow
FRONTEND_DEVELOPMENT
format string as table in javascript
format string as table in javascript Is it possible to achieve this in javascript? Here is the format: 1 ITEM1 9.00 0% 9.00 1 ITEM-GET01 8.00 12% 5.00 I would like to create a receipt like layout. I'm using backbone.js so there will be models and collection involve. Also if it were on a table can I use ...
https://stackoverflow.com/questions/12002861/format-string-as-table-in-javascript
javascript, jquery, html, backbone.js
1,345,194,247
se_74927023
stackoverflow
FRONTEND_DEVELOPMENT
Phaser 3 physics group with circle
Phaser 3 physics group with circle I'm fairly new to Phaser, and am following this tutorial: https://www.codecaptain.io/blog/game-development/shooting-bullets-phaser-3-using-arcade-physics-groups/696 Except, that instead of the Laser being a Sprite, I just want it to be a simple circle, so I tried the following; expor...
https://stackoverflow.com/questions/74927023/phaser-3-physics-group-with-circle
javascript, phaser-framework
1,672,128,878