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_58201722 | stackoverflow | FRONTEND_DEVELOPMENT | Flatpickr Calendar - How to Disable listed dates and weekends | Flatpickr Calendar - How to Disable listed dates and weekends
I am using flatpickr.js for my calendar. I want to disable some listed dates together with Saturdays and Sundays. Disabling Sat and Sun works well using the following code. However for the listed dates, only the first date is disabled. Why not the rest? Wh... | https://stackoverflow.com/questions/58201722/flatpickr-calendar-how-to-disable-listed-dates-and-weekends | javascript, date, flatpickr | 1,570,020,066 |
se_49858070 | stackoverflow | FRONTEND_DEVELOPMENT | What is the best way to share variables across Phaser3 class methods? | What is the best way to share variables across Phaser3 class methods?
I am trying to find a clean, readable way to manage variables across functions in a Phaser Class but for various reasons I am unsatisfied with the solutions I've found.
What I am aware is avaiable:
Global Variables
I'm not very fond of this imple... | https://stackoverflow.com/questions/49858070/what-is-the-best-way-to-share-variables-across-phaser3-class-methods | javascript, phaser-framework | 1,523,883,881 |
se_42918142 | stackoverflow | FRONTEND_DEVELOPMENT | How to paste text and file in html? | How to paste text and file in html?
I want to copy text and image mixed content into the text-area, my code like this:
<!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<input type="hidden" name="">
<textarea id="ta" name="" rows="30" cols="100"></textarea>
<script ... | https://stackoverflow.com/questions/42918142/how-to-paste-text-and-file-in-html | javascript, image, clipboard, paste | 1,490,068,432 |
se_56087016 | stackoverflow | FRONTEND_DEVELOPMENT | variable created with "let" in global scope vs variable created with "var" inside a loop | variable created with "let" in global scope vs variable created with "var" inside a loop
I am trying to get some experience with the variable declarations in JavaScript.
in the following code, whenever I try to define the variable inside the loop with var keyword it throws me an error:
"Uncaug... | https://stackoverflow.com/questions/56087016/variable-created-with-let-in-global-scope-vs-variable-created-with-var-insid | javascript, variables | 1,557,546,582 |
se_41487030 | stackoverflow | FRONTEND_DEVELOPMENT | Trigger a CSS :hover with JavaScript by scrolling | Trigger a CSS :hover with JavaScript by scrolling
I am working on a web site with fixed menu at the top of the site. If you hover over the navigation bar it moves down to reveal the links.
The hover is realised with CSS classes.
The navigation should be shown completely, when you enter the site or scroll to the top.
I... | https://stackoverflow.com/questions/41487030/trigger-a-css-hover-with-javascript-by-scrolling | javascript, html, css | 1,483,624,979 |
se_41409321 | stackoverflow | FRONTEND_DEVELOPMENT | How to integrate a html bootstrap code into JavaScript code? | How to integrate a html bootstrap code into JavaScript code?
I wrote an html web site. There is a button created with bootstrap. I want to change the design of the button and the label text on it, depending on a boolean variable.
Here are the two types of buttons:
<div class="alert alert-success" role="alert">
<ce... | https://stackoverflow.com/questions/41409321/how-to-integrate-a-html-bootstrap-code-into-javascript-code | javascript, html, css | 1,483,196,260 |
se_40741491 | stackoverflow | FRONTEND_DEVELOPMENT | How to put color on the image without affecting the transparent area? | How to put color on the image without affecting the transparent area?
I am wondering how to put color on the image without affecting the transparent area. I must say that I want to apply a gradient with a hard transition.
I tried to implement it through the svg, but there is a problem in the animation of the gradient.... | https://stackoverflow.com/questions/40741491/how-to-put-color-on-the-image-without-affecting-the-transparent-area | javascript, html, css | 1,479,816,623 |
se_39315600 | stackoverflow | FRONTEND_DEVELOPMENT | AJAX Post HTML Code | AJAX Post HTML Code
I'm having an issue with sending some HTML code using AJAX please see my code below
<iframe src="http://www.w3schools.com" width="10" height="10" id="awc_frame"></iframe>
<script>var iframe = document.getElementById("awc_frame");</script>
Here is the AJAX code below
<script>
$.ajax({
... | https://stackoverflow.com/questions/39315600/ajax-post-html-code | javascript, jquery, ajax, iframe | 1,472,982,359 |
se_71820032 | stackoverflow | FRONTEND_DEVELOPMENT | Is there a way to stop a function from running if a certain button is clicked? | Is there a way to stop a function from running if a certain button is clicked?
I have a small function for an AI player in Tic-Tac-Toe, but I dont want it to run at all if the player selects the "2 Player" version of the game.
function computerPlayer(){
let computerPlayer = true;
chooseRandomSpace();
... | https://stackoverflow.com/questions/71820032/is-there-a-way-to-stop-a-function-from-running-if-a-certain-button-is-clicked | javascript | 1,649,620,051 |
se_65803728 | stackoverflow | FRONTEND_DEVELOPMENT | "Error: expected a string or a class/function but got: undefined." Error in Reactjs even my Export and file sturcture is correct | "Error: expected a string or a class/function but got: undefined." Error in Reactjs even my Export and file sturcture is correct
I am beginner to Reactjs . I am making a Login page in Reactjs for which I have made another folder "Components" in "src" folder . Inside "Components" folder I made a "LoginSignUp.... | https://stackoverflow.com/questions/65803728/error-expected-a-string-or-a-class-function-but-got-undefined-error-in-reac | javascript, reactjs | 1,611,121,606 |
se_79600831 | stackoverflow | FRONTEND_DEVELOPMENT | TypeError: bs58.decode is not a function | TypeError: bs58.decode is not a function
I'm working on a meme coin trading bot using Node.js and Solana's web3.js library. When I run my script, I get the following error:
'TypeError: bs58.decode is not a function
at Object. (C:\Users\charl\meme-coin-bot\meme-coin-bot\bot.js:15:24)
at Module._compile (node:internal/m... | https://stackoverflow.com/questions/79600831/typeerror-bs58-decode-is-not-a-function | javascript, node.js, error-handling, solana | 1,746,033,738 |
se_39018004 | stackoverflow | FRONTEND_DEVELOPMENT | Create Video by Images in Javascript | Create Video by Images in Javascript
My Link
Using a Javascript for loop I am trying to create a video by simple jpeg file.
I am not able to achieve this, any help will be appreciated.
Here is my code:
var Allimages = ["eardrum0", "eardrum1", "eardrum2", "eardrum3", "eardrum4"];
var canvas = document.getElementById(... | https://stackoverflow.com/questions/39018004/create-video-by-images-in-javascript | javascript | 1,471,522,573 |
se_6885554 | stackoverflow | FRONTEND_DEVELOPMENT | mouseOver on touch screen | mouseOver on touch screen
I want to make mouseOver or hover like command in Javascript. I want when I hold my finger on an element that element changes attribute(get darker) and when you drag your finger on another element it changes to its original state but the element on which is my finger currently changes. | https://stackoverflow.com/questions/6885554/mouseover-on-touch-screen | javascript, events, cordova, touch | 1,312,054,523 |
se_77240217 | stackoverflow | FRONTEND_DEVELOPMENT | Adding a JS Button Click Handler function with chaining javascript functions within it for a Book Finder program | Adding a JS Button Click Handler function with chaining javascript functions within it for a Book Finder program
I have a help function file (helper.js) that is used to test my functions that are implemented in script.js. After the project is rendered the user should be able to search for a book that is provided in a ... | https://stackoverflow.com/questions/77240217/adding-a-js-button-click-handler-function-with-chaining-javascript-functions-wit | javascript, html, event-handling | 1,696,535,871 |
se_62575805 | stackoverflow | FRONTEND_DEVELOPMENT | Convert blob to pdf file | Convert blob to pdf file
Using react-pdf's BlobProvider, I'm trying to store the file to state. Here's what I tried:
MyDocument = () => {
return (
<Document>
<Page size="A4" style={stylez.page}>
<View style={stylez.section}>
<Text>Section... | https://stackoverflow.com/questions/62575805/convert-blob-to-pdf-file | javascript, reactjs, react-pdf | 1,593,089,527 |
se_32647898 | stackoverflow | FRONTEND_DEVELOPMENT | Import Excel file to a table of HTML page | Import Excel file to a table of HTML page
I have a simple Excel file in my computer at "D:/Book1.xls". I want to import it to make a table and append the table to a div tag in my HTML page.
Would you modify my code below?
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
<style... | https://stackoverflow.com/questions/32647898/import-excel-file-to-a-table-of-html-page | javascript, jquery, excel, alasql | 1,442,566,725 |
se_60668999 | stackoverflow | FRONTEND_DEVELOPMENT | React direct to a "thank you" page after submitting a form | React direct to a "thank you" page after submitting a form
I made a simple form and after I hit the submit button of the form, I want it to automatically redirect to a "thankyou" page I have set up. Can anyone help me solve this.
Currently, this is how I think it might work, but it keeps popping up errors.
c... | https://stackoverflow.com/questions/60668999/react-direct-to-a-thank-you-page-after-submitting-a-form | javascript, reactjs | 1,584,096,203 |
se_19605150 | stackoverflow | FRONTEND_DEVELOPMENT | Regex for password must contain at least eight characters, at least one number and both lower and uppercase letters and special characters | Regex for password must contain at least eight characters, at least one number and both lower and uppercase letters and special characters
I want a regular expression to check that:
contains at least eight characters,
including at least one number and
includes both lower and uppercase letters and
include at least one... | https://stackoverflow.com/questions/19605150/regex-for-password-must-contain-at-least-eight-characters-at-least-one-number-a | javascript, asp.net, regex | 1,382,780,530 |
se_59663512 | stackoverflow | FRONTEND_DEVELOPMENT | Entire react native app showing on lockscreen | Entire react native app showing on lockscreen
I have an app with the following code on the MainActivity.java:
package com.MyApp;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandler... | https://stackoverflow.com/questions/59663512/entire-react-native-app-showing-on-lockscreen | javascript, java, android, react-native | 1,578,571,193 |
se_19580823 | stackoverflow | FRONTEND_DEVELOPMENT | how to get the values from fieldset using javascript? | how to get the values from fieldset using javascript?
<form action="welcome.php" method="post" onsubmit="return validate();">
<fieldset>
<legend> <b>Personal Info</b> </legend>
<pre>
<b>First Name</b> <input type="text" id="fname" size="30">
<b>Last Name</b> <input type="text" id="lname" size="30">
<b>Phone Number</b>... | https://stackoverflow.com/questions/19580823/how-to-get-the-values-from-fieldset-using-javascript | javascript, forms | 1,382,673,339 |
se_44618100 | stackoverflow | FRONTEND_DEVELOPMENT | WebStorm error: expression statement is not assignment or call | WebStorm error: expression statement is not assignment or call
I'm using WebStorm and I'm getting an error that I can't understand. Node.js + MongoDB.
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
mongoose.connect(' mongodb://localhost:27017/TodoApp');
var Todo = mongoose.model('Todo', {
... | https://stackoverflow.com/questions/44618100/webstorm-error-expression-statement-is-not-assignment-or-call | javascript, node.js, webstorm | 1,497,809,834 |
se_60207995 | stackoverflow | FRONTEND_DEVELOPMENT | How to work re-organize array so that its sorted in columns rather than rows | How to work re-organize array so that its sorted in columns rather than rows
I have some checkboxes on a page that are organized in 3 columns. However they are alphabetically sorted and go across the rows instead.
What is currently happening:
A B C
D E F
G H I
What I want to happen:
A D G
B E H
C F I
Right now I've... | https://stackoverflow.com/questions/60207995/how-to-work-re-organize-array-so-that-its-sorted-in-columns-rather-than-rows | javascript | 1,581,597,285 |
se_40586021 | stackoverflow | FRONTEND_DEVELOPMENT | Best way to align image png file to bottom left? | Best way to align image png file to bottom left?
I'm trying to add this image to the bottom left but it keeps heading underneath the header. Any tips to fix this, or where I am going going wrong? The last code is the one I am trying to get aligned.
How the website normally looks:
When I add the img code:
Jsfiddle
... | https://stackoverflow.com/questions/40586021/best-way-to-align-image-png-file-to-bottom-left | javascript, html, css | 1,479,117,621 |
se_40407012 | stackoverflow | FRONTEND_DEVELOPMENT | HTML5/CSS User location select | HTML5/CSS User location select
You know those nice dropdown menus for choosing your location, those in which you type something and it start narrowing it down to various location/countries/languages.
I refuse to believe that everyone implements them by hand but I'm having a hard time finding some examples/templates to... | https://stackoverflow.com/questions/40407012/html5-css-user-location-select | javascript, html, css | 1,478,191,543 |
se_40393440 | stackoverflow | FRONTEND_DEVELOPMENT | How to make an image tile in CSS? | How to make an image tile in CSS?
How can I make it so that a 100 by 100 image repeats itself all throughout the web page. I want the image to duplicate itself and fill the screen.
For example lets say I had this picture:
and I wanted it to look like this:
The spacing doesn't matter, but how would I do this? | https://stackoverflow.com/questions/40393440/how-to-make-an-image-tile-in-css | javascript, html, css | 1,478,144,123 |
se_39261675 | stackoverflow | FRONTEND_DEVELOPMENT | Is it possible to download a web site's entire code, HTML, CSS and JavaScript files? | Is it possible to download a web site's entire code, HTML, CSS and JavaScript files?
Is it possible to fully download a web site or view all of its code? Like for example I know you can view page source in a browser but is there a way to download all of a web site's code like HTML, CSS and JavaScript then run it o... | https://stackoverflow.com/questions/39261675/is-it-possible-to-download-a-web-sites-entire-code-html-css-and-javascript-fi | javascript, html, css | 1,472,695,842 |
se_77908546 | stackoverflow | FRONTEND_DEVELOPMENT | Restrict filter if blank in Netsuite | Restrict filter if blank in Netsuite
EDIT - Not sure I articulated myself that well so wanted to sum up:
I'm using variables as the values for a saved search filter, however those variables won't necessarily always have values, in those instances I want that filter to be disregarded.
Thank you
Thanks to a great post b... | https://stackoverflow.com/questions/77908546/restrict-filter-if-blank-in-netsuite | javascript, netsuite, suitescript | 1,706,638,243 |
se_49171107 | stackoverflow | FRONTEND_DEVELOPMENT | How to add and remove table rows Dynamically in React.js | How to add and remove table rows Dynamically in React.js
my attempt fiddle here ..........
https://jsfiddle.net/techboy0007/j1eas924/
https://i.sstatic.net/KXFot.png | https://stackoverflow.com/questions/49171107/how-to-add-and-remove-table-rows-dynamically-in-react-js | javascript, reactjs | 1,520,505,655 |
se_71322231 | stackoverflow | FRONTEND_DEVELOPMENT | How can I mimic a Javascript "spread operator" in C#? | How can I mimic a Javascript "spread operator" in C#?
I am following a tutorial on Dynamic Programming on youtube to understand more about Recursive functions, and I am stuck where a spread operator is used.
Code in JavaScript
const howSum = (targetSum, numbers) =>{
if(targetSum === 0) return [];
if(... | https://stackoverflow.com/questions/71322231/how-can-i-mimic-a-javascript-spread-operator-in-c | javascript, c#, recursion | 1,646,221,853 |
se_17720264 | stackoverflow | FRONTEND_DEVELOPMENT | Remove last comma (and possible whitespaces after the last comma) from the end of a string | Remove last comma (and possible whitespaces after the last comma) from the end of a string
Using JavaScript, how can I remove the last comma, but only if the comma is the last character or if there is only white space after the comma? This is my code.
I got a working fiddle. But it has a bug.
var str = 'This, is a ... | https://stackoverflow.com/questions/17720264/remove-last-comma-and-possible-whitespaces-after-the-last-comma-from-the-end-o | javascript | 1,374,141,522 |
se_9296411 | stackoverflow | FRONTEND_DEVELOPMENT | finding out which object to point to in javascript | finding out which object to point to in javascript
I have several global objects that contain arrays of objects; let's call these appointments. Let's say I have these objects: AppointmentsToday, Appointments02102012, Appointments02092012... I also have a global variable CurrentAppointments that holds a reference to th... | https://stackoverflow.com/questions/9296411/finding-out-which-object-to-point-to-in-javascript | javascript | 1,329,320,604 |
se_11688250 | stackoverflow | FRONTEND_DEVELOPMENT | Setting equal heights for div's with jQuery | Setting equal heights for div's with jQuery
I want to set equal height for divs with jQuery.
All the divs may have different amount of content and different default height. Here is a sample of my HTML layout:
<div class="container">
<div class="column">This is<br />the highest<br />column</div>
<div class=... | https://stackoverflow.com/questions/11688250/setting-equal-heights-for-divs-with-jquery | javascript, html, jquery | 1,343,393,937 |
se_78534997 | stackoverflow | FRONTEND_DEVELOPMENT | Dynamically Change Highlight.js Theme with Button Toggle (Light/Dark Mode) | Dynamically Change Highlight.js Theme with Button Toggle (Light/Dark Mode)
I'm using the highlight.js library to display code snippets on my webpage. I'd like to add a button that allows users to switch between light and dark themes for the code snippets. Ideally, clicking the button should dynamically change the CSS ... | https://stackoverflow.com/questions/78534997/dynamically-change-highlight-js-theme-with-button-toggle-light-dark-mode | javascript, html, css, highlight.js | 1,716,720,642 |
se_11004730 | stackoverflow | FRONTEND_DEVELOPMENT | javascript if condition with multiple ifs | javascript if condition with multiple ifs
I'm running a UI component on every page and on one of the pages, there's an extra functionality linked to it. The UI component has a boolean called MyValue and the extra functionality has an object called ExtraObject and one of its properties is a boolean called ExtraBool.
I ... | https://stackoverflow.com/questions/11004730/javascript-if-condition-with-multiple-ifs | javascript | 1,339,534,496 |
se_35933102 | stackoverflow | FRONTEND_DEVELOPMENT | How to make an error message div sticky? | How to make an error message div sticky?
An error message(which is rendered conditionally) is displayed on top of the screen and if the user is at the bottom of the screen, he always has to scroll up to view the error.
So I am trying to display that error within the view of the user.
I am using Primefaces p:messages... | https://stackoverflow.com/questions/35933102/how-to-make-an-error-message-div-sticky | javascript, jquery, css, primefaces, sticky | 1,457,675,046 |
se_9748498 | stackoverflow | FRONTEND_DEVELOPMENT | javascript: getting the name of the calling function | javascript: getting the name of the calling function
I'm writing an error event handler that captures an error and makes an AJAX call to the server to report it. The problem is that a lot of times, my code looks like this:
function A() {
//lots of works to calculate SomeParameters; can bug
CalledVeryOften(SomePar... | https://stackoverflow.com/questions/9748498/javascript-getting-the-name-of-the-calling-function | javascript | 1,331,973,385 |
se_77790093 | stackoverflow | FRONTEND_DEVELOPMENT | How to show and hide multiple divs as I click the respective button with only JavaScript? | How to show and hide multiple divs as I click the respective button with only JavaScript?
I'm trying to show and hide divs as the user clicks the button.
I wanna change the image source of the button too, but my head is already exploding. So, one thing at time.
I know how to hide and show the divs one by one, but I'm ... | https://stackoverflow.com/questions/77790093/how-to-show-and-hide-multiple-divs-as-i-click-the-respective-button-with-only-ja | javascript, show-hide | 1,704,840,040 |
se_38237673 | stackoverflow | FRONTEND_DEVELOPMENT | How to Hide an API Key in Client-Side Javascript | How to Hide an API Key in Client-Side Javascript
Right now I am writing a client-side javascript app that makes a request to the USPS Price Calculator API. In order to make this request, I need to provide my API User ID in the xml of the request. The tag looks like this:
<RateV4Request USERID="ThisIsWhereMyUserIdGo... | https://stackoverflow.com/questions/38237673/how-to-hide-an-api-key-in-client-side-javascript | javascript, jquery | 1,467,866,691 |
se_9594166 | stackoverflow | FRONTEND_DEVELOPMENT | google closure compiler error on external jquery | google closure compiler error on external jquery
I'm getting a weird error using google closure compiler. I'm using externs to indicate a reference to jQuery but it's not working. I know the picture is not too good but if you open it on a new tab, you'll see what I'm referring to.
It bugs on the .html() function but n... | https://stackoverflow.com/questions/9594166/google-closure-compiler-error-on-external-jquery | javascript, jquery, google-closure | 1,331,080,798 |
se_17643182 | stackoverflow | FRONTEND_DEVELOPMENT | Should I use == or === In Javascript? | Should I use == or === In Javascript?
I am learning Javascript with codecademy, and I was doing some comparisons, and for my code I did:
`console.log(1 == 2)`
and it returned False.
I also did:
`console.log(2*2 === 3)`
and that also returned False.
To check that I have not made a mistake, I did:
`console.log(1... | https://stackoverflow.com/questions/17643182/should-i-use-or-in-javascript | javascript, boolean, comparison, equality, console.log | 1,373,832,063 |
se_37943006 | stackoverflow | FRONTEND_DEVELOPMENT | Unable to change class name of SVG element | Unable to change class name of SVG element
I want to change the class applied on an SVG with the click of a button. The code is here .
My SVG looks like:
// I tried both the below code :
document.getElementById("test").className = "halffill";
document.querySelector("svg.fill").setAttribute("class","halffill");
<svg ... | https://stackoverflow.com/questions/37943006/unable-to-change-class-name-of-svg-element | javascript, html, css, svg | 1,466,508,011 |
se_15988323 | stackoverflow | FRONTEND_DEVELOPMENT | CORS and Origin header? | CORS and Origin header?
When we need to invoke an Ajax request we do:
if(typeof XMLHttpRequest !== 'undefined') xhr = new XMLHttpRequest();
else {
var versions = ["Microsoft.XmlHttp",
"MSXML2.XmlHttp",
"MSXML2.XmlHttp.3.0",
"MSXML2.XmlHttp.4.0",
"MSXML2.XmlHttp.5.0"
];
}
I alre... | https://stackoverflow.com/questions/15988323/cors-and-origin-header | javascript, ajax, http, http-headers, cors | 1,365,859,763 |
se_55726944 | stackoverflow | FRONTEND_DEVELOPMENT | Load a variable from dotenv file when starting PM2 | Load a variable from dotenv file when starting PM2
I am starting instances of my app as a package.json script with PM2 this way:
"start:pm2": "pm2 start -i max node myapp.js"
I found out that not all members in the team always want to use max as a value for instances number while developing, but prefer to use some ... | https://stackoverflow.com/questions/55726944/load-a-variable-from-dotenv-file-when-starting-pm2 | javascript, node.js, pm2 | 1,555,501,831 |
se_79971918 | stackoverflow | FRONTEND_DEVELOPMENT | Is there a way to use specific webm chunks from MediaRecorder? | Is there a way to use specific webm chunks from MediaRecorder?
If I send separate chunks from MediaRecorder to the server, how can I make each one playable?
Only the first chunk contains the header/meta information.
Is there a reliable way to create a header, for instance and append it to the webm chunk? | https://stackoverflow.com/questions/79971918/is-there-a-way-to-use-specific-webm-chunks-from-mediarecorder | javascript, webrtc, video-streaming, mediarecorder, webm | 1,782,863,153 |
se_50689644 | stackoverflow | FRONTEND_DEVELOPMENT | node dotenv won't work with pm2 | node dotenv won't work with pm2
I have an application where locally (without pm2) all the environment variables in the .env file work just fine using dotenv.
But on the server where I'm using pm2 to run the app, the environment variables remain undefined.
The pm2 commands I'm using to run the app on server are:... | https://stackoverflow.com/questions/50689644/node-dotenv-wont-work-with-pm2 | javascript, node.js | 1,528,151,483 |
se_42991024 | stackoverflow | FRONTEND_DEVELOPMENT | AngularJS ng-options error: Can't copy! Making copies of Window or Scope instances is not supported | AngularJS ng-options error: Can't copy! Making copies of Window or Scope instances is not supported
I'm using AngularJS version 1.5.11.
I have created a select (multiple) element using ng-options:
<select multiple class="form-control" ng-model="vm.selectedBuildings" ng-options="building as building.name for buil... | https://stackoverflow.com/questions/42991024/angularjs-ng-options-error-cant-copy-making-copies-of-window-or-scope-instanc | javascript, angularjs, ng-options | 1,490,326,962 |
se_79971923 | stackoverflow | FRONTEND_DEVELOPMENT | Error event not triggered after Vite build | Error event not triggered after Vite build
I'm working on a Vue.js project and in the App.vue file I wrote this code that reacts to all exceptions and rejections of my app.
window.addEventListener('error', event => {
errorDialog.value = true
errorMessage.value = event.error.message
})
window.addEventLis... | https://stackoverflow.com/questions/79971923/error-event-not-triggered-after-vite-build | javascript, vue.js, vite | 1,782,868,935 |
se_59731410 | stackoverflow | FRONTEND_DEVELOPMENT | How does this <video> tag prevent its contents from being downloaded? | How does this <video> tag prevent its contents from being downloaded?
Taking this video as an example, here is the html tag which seems to be the critical piece of content:
<video
id="dmp_Video"
style="display: block; width: 350px; height: 197.436px; top: 0px; left: 0px;"
playsinline="" webkit-plays... | https://stackoverflow.com/questions/59731410/how-does-this-video-tag-prevent-its-contents-from-being-downloaded | javascript, html5-video, drm | 1,578,996,134 |
se_481922 | stackoverflow | FRONTEND_DEVELOPMENT | Javascript help rollover is a rollover | Javascript help rollover is a rollover
I already started this in javascript so I don't want to use jquery but can somejavascript expert look at my code and tell me what I'm doing wrong and or right? Let me tell you what I am trying to accomplish here. I have a menu that consists of four buttons and when you hover over... | https://stackoverflow.com/questions/481922/javascript-help-rollover-is-a-rollover | javascript, rollover | 1,233,015,726 |
se_73761438 | stackoverflow | FRONTEND_DEVELOPMENT | warning Invalid next.config.js when running project - nextJs | warning Invalid next.config.js when running project - nextJs
When I want to run my project i have these three warnings:
1-
warn - Invalid next.config.js options detected: The root value has an unexpected property, webpack5, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, clea... | https://stackoverflow.com/questions/73761438/warning-invalid-next-config-js-when-running-project-nextjs | javascript, webpack, next.js, config | 1,663,492,381 |
se_59843965 | stackoverflow | FRONTEND_DEVELOPMENT | Looking for a JQL-like Javascript search input/library | Looking for a JQL-like Javascript search input/library
I'm in need of a search input component that can accept and parse search input strings in a format similar to Jira's JQL, including providing type-ahead or dropdown aids that convey valid operators, searchable attributes and valid attribute values.
It does not ne... | https://stackoverflow.com/questions/59843965/looking-for-a-jql-like-javascript-search-input-library | javascript, search, jql | 1,579,619,239 |
se_10747002 | stackoverflow | FRONTEND_DEVELOPMENT | How can I hide the last digit when I'm typing a password on my website on iOS | How can I hide the last digit when I'm typing a password on my website on iOS
I have an input tag with password type on my website.
<input type="password">
With iPad or iPhone, it shows always the last letter when you are typing a password.
My problem is that I do a lot of demonstrations of my website with iPa... | https://stackoverflow.com/questions/10747002/how-can-i-hide-the-last-digit-when-im-typing-a-password-on-my-website-on-ios | javascript, iphone, html, ios, ipad | 1,337,905,250 |
se_79971709 | stackoverflow | FRONTEND_DEVELOPMENT | How do I add a link to a draggable element that doesn't open when you drag it, only when you click it? | How do I add a link to a draggable element that doesn't open when you drag it, only when you click it?
The drag works just how I'd like it to, but I'd like it not to trigger open link when dragged. I've tried fiddling around with my little knowledge of JavaScript, however I just can't seem to get it to work how I'... | https://stackoverflow.com/questions/79971709/how-do-i-add-a-link-to-a-draggable-element-that-doesnt-open-when-you-drag-it-o | javascript, drag-and-drop, draggable | 1,782,821,071 |
se_48278024 | stackoverflow | FRONTEND_DEVELOPMENT | How to detect browser country in client site? | How to detect browser country in client site?
I found the following website can detect my country and currency even in the private mode
http://www.innisfreeworld.com/
It records in cookie, How do it do that?
Is that possible fulfill in client site ? navigator? | https://stackoverflow.com/questions/48278024/how-to-detect-browser-country-in-client-site | javascript, html, browser, navigator | 1,516,095,152 |
se_79971788 | stackoverflow | FRONTEND_DEVELOPMENT | How to pause SpeechSynthesis based on ambient microphone noise using the Web Audio API? | How to pause SpeechSynthesis based on ambient microphone noise using the Web Audio API?
I'm building a web application that reads text aloud using the Web Speech API (SpeechSynthesis). I want speech to automatically pause when the surrounding environment becomes noisy and resume once the noise level drops.
I'm monitor... | https://stackoverflow.com/questions/79971788/how-to-pause-speechsynthesis-based-on-ambient-microphone-noise-using-the-web-aud | javascript, web-audio-api, webspeech-api | 1,782,831,628 |
se_79971786 | stackoverflow | FRONTEND_DEVELOPMENT | How to implement a global voice navigation system in React using the Web Speech API and Context API? | How to implement a global voice navigation system in React using the Web Speech API and Context API?
I'm building a React application with a global voice navigation feature using the Web Speech API. I'm managing speech recognition, speech synthesis, keyboard shortcuts, and page-specific voice commands through a React ... | https://stackoverflow.com/questions/79971786/how-to-implement-a-global-voice-navigation-system-in-react-using-the-web-speech | javascript, reactjs, react-context, webspeech-api | 1,782,831,437 |
se_73978943 | stackoverflow | FRONTEND_DEVELOPMENT | Using explicit Many to Many Relation in Prisma | Using explicit Many to Many Relation in Prisma
I have the following User and Group models that share a many-to-many relation:
model User {
id String @id @default(uuid())
email String @unique
groups UsersGroups[]
@@map("user")
}
model Group {
id String @id @default(uuid())
name String
... | https://stackoverflow.com/questions/73978943/using-explicit-many-to-many-relation-in-prisma | javascript, many-to-many, prisma, prisma2 | 1,665,083,310 |
se_79971741 | stackoverflow | FRONTEND_DEVELOPMENT | Is using CryptoJS AES with a Firebase UID as the encryption key a secure approach? | Is using CryptoJS AES with a Firebase UID as the encryption key a secure approach?
import CryptoJS from 'crypto-js';
const GLOBAL_SALT = 'AarthSaathiEncryptSaltSecretKey';
/**
* Encrypts a field value client-side using a key derived from the user's UID.
* @param {string} value Plaintext value
* @param {string} ui... | https://stackoverflow.com/questions/79971741/is-using-cryptojs-aes-with-a-firebase-uid-as-the-encryption-key-a-secure-approac | javascript, reactjs, firebase, encryption | 1,782,825,747 |
se_8252060 | stackoverflow | FRONTEND_DEVELOPMENT | event handlers in javascript | event handlers in javascript
I'm looking to build two functions:
var MyObject = new Object();
MyObject.MyProperty = 1;
function ListenToChange() {
here I want to listen to changes in MyProperty1 and do something when it changes
}
function ThrowEvent () {
here I change the value of MyProperty every 5 seconds
se... | https://stackoverflow.com/questions/8252060/event-handlers-in-javascript | javascript | 1,322,107,082 |
se_42656326 | stackoverflow | FRONTEND_DEVELOPMENT | How to set port for express server dynamically? | How to set port for express server dynamically?
This is the question mostly asked by the beginners, as I had this question when I was starting out
How to set port for express without needing to hardcode or even choose port yourself? This is the question I had when I was starting out in node and express (I am still a b... | https://stackoverflow.com/questions/42656326/how-to-set-port-for-express-server-dynamically | javascript, node.js, express | 1,488,913,700 |
se_68660450 | stackoverflow | FRONTEND_DEVELOPMENT | How do I get my HTML form date input to only allow specific days of the week to be chosen using JavaScript, React and HTML? | How do I get my HTML form date input to only allow specific days of the week to be chosen using JavaScript, React and HTML?
I am trying to get my Forms Date Input to only allow Thursday, Friday, and Saturday to be selected. But I can't seem to find a way to do it.
Is there some JavaScript or HTML code I could use to s... | https://stackoverflow.com/questions/68660450/how-do-i-get-my-html-form-date-input-to-only-allow-specific-days-of-the-week-to | javascript, html, reactjs, date, calendar | 1,628,135,868 |
se_38381183 | stackoverflow | FRONTEND_DEVELOPMENT | How to remove table column with CSS | How to remove table column with CSS
I have a table that I am trying to make mobile friendly, so when the screen is a certain width I remove an unnecessary column. Here is the CSS for that:
@media (max-width: 640px)
{
.urlCell
{
display: none;
}
}
The above code does the job of removing the ce... | https://stackoverflow.com/questions/38381183/how-to-remove-table-column-with-css | javascript, html, css | 1,468,519,388 |
se_33483667 | stackoverflow | FRONTEND_DEVELOPMENT | how to strip json comments in javascript | how to strip json comments in javascript
How to strip json comments in javascript ?
I think a regex will be a concise way.
{
"filed": { // comments
"n": 1 /* multi-line ...
comments */
},
"field2": " // comments in string , /* here */ "
}
should work on the above ... | https://stackoverflow.com/questions/33483667/how-to-strip-json-comments-in-javascript | javascript, json, regex | 1,446,486,188 |
se_7053688 | stackoverflow | FRONTEND_DEVELOPMENT | jQuery Equal Height Columns | jQuery Equal Height Columns
Can someone please tell me what i'm doing wrong the the jQuery column faux... I can not get it to work after trying several different methods...
The code I'm using is... my url is above
$j(".content-block").height(Math.max($("#right").height(), $(".content-block").height())); | https://stackoverflow.com/questions/7053688/jquery-equal-height-columns | javascript, jquery | 1,313,274,268 |
se_79970230 | stackoverflow | FRONTEND_DEVELOPMENT | Python program to automatically "use" a js program with Inquirer interactive menu | Python program to automatically "use" a js program with Inquirer interactive menu
I have a javascript code that prints an interactive menu using inquirer prompt.
When running node code.js the user gets something like this
Select an option:
> Option A
> Option B
> Option C
Then each one of these option h... | https://stackoverflow.com/questions/79970230/python-program-to-automatically-use-a-js-program-with-inquirer-interactive-men | javascript, python, node.js, inquirerjs | 1,782,725,809 |
se_33962163 | stackoverflow | FRONTEND_DEVELOPMENT | Making text "non-readable" | Making text "non-readable"
I am in a weird situation, in where I have to put my name and contact information on a web page and I think it is fine, as long as the text can't be read by robots, copied, etc.
Basically what I want is a text block that looks like normal text, but behaves like an image. I cannot, ... | https://stackoverflow.com/questions/33962163/making-text-non-readable | javascript, html, css, web-crawler | 1,448,644,728 |
se_69693862 | stackoverflow | FRONTEND_DEVELOPMENT | Unclear behavior of .text Content | Unclear behavior of .text Content
I was making some practice to change the content of a <p> element using the .textContent and firstly I assigned the whole element to a let variable
let player1Score_El = document.getElementById ("score--0").textContent = 0;
The issue comes later when I need to change the content insi... | https://stackoverflow.com/questions/69693862/unclear-behavior-of-text-content | javascript, html, dom-events | 1,635,049,301 |
se_63603446 | stackoverflow | FRONTEND_DEVELOPMENT | How to add "IF result = X" than "RETURN x" to this javascript code? | How to add "IF result = X" than "RETURN x" to this javascript code?
My Code:
const crypto = require('crypto');
const crashHash = '';
// Hash from bitcoin block #610546. Public seed event: https://twitter.com/Roobet/status/1211800855223123968
const salt = '0000000000000000000fa3b65e43e4240d71762a5b... | https://stackoverflow.com/questions/63603446/how-to-add-if-result-x-than-return-x-to-this-javascript-code | javascript, node.js | 1,598,465,493 |
se_38886119 | stackoverflow | FRONTEND_DEVELOPMENT | How can I create a reusable HTML string object? | How can I create a reusable HTML string object?
How can I create a reusable string for my HTML web page?
I would like the following line of HTML to be reusable as a small string "object" throughout my web pages:
[<span class="sgreentxt">root</span>@<span class="sbluetxt">localhost</span> <span class="sorangetxt">~ </s... | https://stackoverflow.com/questions/38886119/how-can-i-create-a-reusable-html-string-object | javascript, html, css | 1,470,880,592 |
se_38804567 | stackoverflow | FRONTEND_DEVELOPMENT | Body should be in center while zoom in and zoom out of web page in HTML5? | Body should be in center while zoom in and zoom out of web page in HTML5?
How can the body be centered when zooming in and out a web page?
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
body {
font-family: 'Merriweather Sans', sans-serif;
margi... | https://stackoverflow.com/questions/38804567/body-should-be-in-center-while-zoom-in-and-zoom-out-of-web-page-in-html5 | javascript, html, css | 1,470,488,577 |
se_38558043 | stackoverflow | FRONTEND_DEVELOPMENT | Web-mobile programming | Web-mobile programming
Can anyone name a few features that are specific/suitable for mobile web programming using html5, CSS and JavaScript?
Where can I find the compatibility list for each browser? | https://stackoverflow.com/questions/38558043/web-mobile-programming | javascript, html, css, mobile | 1,469,404,869 |
se_38068676 | stackoverflow | FRONTEND_DEVELOPMENT | .toDataURL() is saving transparent image instead of actual image | .toDataURL() is saving transparent image instead of actual image
toDataURL() is saving the black overlay/background, that is drawn on canvas; but not the image is drawn on the same canvas through a link. If I only draw an image and try to save it as an image, the transparent image is saved.
I have researched many thin... | https://stackoverflow.com/questions/38068676/todataurl-is-saving-transparent-image-instead-of-actual-image | javascript, html, css | 1,467,095,567 |
se_23331546 | stackoverflow | FRONTEND_DEVELOPMENT | How to use Javascript to read local text file and read line by line? | How to use Javascript to read local text file and read line by line?
I have a web page made by html+javascript which is demo, I want to know how to read a local csv file and read line by line so that I can extract data from the csv file. | https://stackoverflow.com/questions/23331546/how-to-use-javascript-to-read-local-text-file-and-read-line-by-line | javascript, html, file | 1,398,651,723 |
se_27635079 | stackoverflow | FRONTEND_DEVELOPMENT | Press and hold button does not fire onClick | Press and hold button does not fire onClick
I'm having a problem with the button in my HTML5 application.
When I press the button a Video player runs and plays the video that is stored locally. My issue now is that when I hold the button and release it, it doesn't fire the video player. I'm using an onclick event on m... | https://stackoverflow.com/questions/27635079/press-and-hold-button-does-not-fire-onclick | javascript, html | 1,419,415,424 |
se_49025620 | stackoverflow | FRONTEND_DEVELOPMENT | Electron autoUpdater proxy | Electron autoUpdater proxy
I am using:
Electron 1.7.9
Aurelia
I have a problem with the electron proxy setting, it doesn't work with autoUpdater. On the main process I have this configuration :
session.defaultSession.setProxy({
proxyRules : proxyString
}, function () {
console.log("proxy ok")
});
This... | https://stackoverflow.com/questions/49025620/electron-autoupdater-proxy | javascript, node.js, electron, electron-builder | 1,519,808,649 |
se_2856059 | stackoverflow | FRONTEND_DEVELOPMENT | Passing an array as a function parameter in JavaScript | Passing an array as a function parameter in JavaScript
I'd like to call a function using an array as parameters:
const x = ['p0', 'p1', 'p2'];
call_me(x[0], x[1], x[2]); // I don't like it
function call_me (param0, param1, param2 ) {
// ...
}
Is there a better way of passing the contents of x into call_me()? | https://stackoverflow.com/questions/2856059/passing-an-array-as-a-function-parameter-in-javascript | javascript, arrays, function, call | 1,274,175,720 |
se_23482705 | stackoverflow | FRONTEND_DEVELOPMENT | Connecting via oAuth2 with jQuery/AJAX for Box.com | Connecting via oAuth2 with jQuery/AJAX for Box.com
I'm trying to work with Box.com's API to develop a quick app that allows for Folder creation. I am having trouble connecting to their API and am fairly new to oAUTH2, API's, and whatnot. I've tried to follow these guides:
http://developers.box.com/oauth/
http://deve... | https://stackoverflow.com/questions/23482705/connecting-via-oauth2-with-jquery-ajax-for-box-com | javascript, jquery, ajax, oauth-2.0, box-api | 1,399,327,621 |
se_53597871 | stackoverflow | FRONTEND_DEVELOPMENT | Date to localeString with milliseconds? | Date to localeString with milliseconds?
In Javascript I'm trying to convert a Date object to a locale string, with the toLocaleString() function. What I want is the converted locale string with milliseconds. Is that possible?
const time = "2018-12-03T16:24:05.150Z";
const date = new Date(time);
const str = date.to... | https://stackoverflow.com/questions/53597871/date-to-localestring-with-milliseconds | javascript, date | 1,543,854,405 |
se_37633884 | stackoverflow | FRONTEND_DEVELOPMENT | How To Have A Section Fill The Entire Screen? | How To Have A Section Fill The Entire Screen?
I was wondering how I can have different sections of a web site fill the entire window.
For instance on this web site by Viraj BindraDead link.
In his experience sections, they take up the whole window. I do not know what to call it, is there a word for it? I was also wond... | https://stackoverflow.com/questions/37633884/how-to-have-a-section-fill-the-entire-screen | javascript, html, css | 1,465,066,621 |
se_65987474 | stackoverflow | FRONTEND_DEVELOPMENT | Blazor javascript load not working in sometimes | Blazor javascript load not working in sometimes
I called JavaScript function named robotDisplayer.initRobot in OnAfterRenderAsync` but it did not work.
The error message is:
Microsoft.JSInterop.JSException: Could not find 'robotDisplayer.initRobot' ('robotDisplayer' was undefined). Error:
Could not find 'robotDisplay... | https://stackoverflow.com/questions/65987474/blazor-javascript-load-not-working-in-sometimes | javascript, asp.net-core, .net-core, blazor | 1,612,156,319 |
se_31068665 | stackoverflow | FRONTEND_DEVELOPMENT | Error: Can't access lexical declaration | Error: Can't access lexical declaration
let textBytes = ctypes.uint8_t("hello");
let a = new SECItem;
a.type = siBuffer;
a.data = textBytes.address();
a.len = textBytes.length;
I got ReferenceError: can't access lexical declaration textBytes before initialization. | https://stackoverflow.com/questions/31068665/error-cant-access-lexical-declaration | javascript, firefox-addon, jsctypes, nss | 1,435,308,064 |
se_79969077 | stackoverflow | FRONTEND_DEVELOPMENT | Looking for script fix (appointment website) | Looking for script fix (appointment website)
I have a Tampermonkey script for an appointment booking website that needs some updates. The site recently changed how their captcha works and my script stopped working properly.
I'm not a developer myself - just someone trying to get an appointment slot. The script was sha... | https://stackoverflow.com/questions/79969077/looking-for-script-fix-appointment-website | javascript, encryption, reverse-engineering, tampermonkey, userscripts | 1,782,684,422 |
se_73758182 | stackoverflow | FRONTEND_DEVELOPMENT | Can I use node js with a static webiste? | Can I use node js with a static webiste?
I am making a small website for a buddy but he only has a Webserver from hostinger, for his website I want to use a Node.js Package. Is it still possible to use this hosting service if I just point the URL to the index.html file?
Or does the javascript not work anymore if I use... | https://stackoverflow.com/questions/73758182/can-i-use-node-js-with-a-static-webiste | javascript, node.js | 1,663,445,269 |
se_38029143 | stackoverflow | FRONTEND_DEVELOPMENT | Remove border around content property via CSS | Remove border around content property via CSS
All webkit browsers display by default a fine border around my image which I set via content:
content: url('myPic.png');
I´ve tried to remove it with: border: 0; border-style: none; and text-decoration: none; without any results. Is there a way to remove it? | https://stackoverflow.com/questions/38029143/remove-border-around-content-property-via-css | javascript, html, css | 1,466,862,085 |
se_37981668 | stackoverflow | FRONTEND_DEVELOPMENT | How are web pages linked? | How are web pages linked?
I'm having trouble figuring out how two pages are linked. For example if I have the following code:
<!DOCTYPE html>
<html>
<button onclick='myfunction()'>Click me</button>
<body>
<script>
function myfunction() {
//some code to take user to the next page
}
</script>
<style>
some style code
... | https://stackoverflow.com/questions/37981668/how-are-web-pages-linked | javascript, html, css | 1,466,651,300 |
se_37906148 | stackoverflow | FRONTEND_DEVELOPMENT | How to loop over images | How to loop over images
I want to loop over my images folder and display them on the screen.
Like I have this:
<section id="photos">
<a target="_blank" href="images/1.jpg">
<img src="images/1.jpg">
</a>
</section>
And all of my images are with numbers so my question is how to loop that cod... | https://stackoverflow.com/questions/37906148/how-to-loop-over-images | javascript, html, css | 1,466,331,431 |
se_17699854 | stackoverflow | FRONTEND_DEVELOPMENT | HTML file won't find JS and CSS files | HTML file won't find JS and CSS files
My page should show a single Google Map.
If I throw the code in a JSFiddle, it works fine.
All of my files are in the same directory. I tested in Chrome and Firefox, both don't show the map. So I think there must be something about the way I am calling for access to my JavaSc... | https://stackoverflow.com/questions/17699854/html-file-wont-find-js-and-css-files | javascript, html, css | 1,374,064,348 |
se_4800432 | stackoverflow | FRONTEND_DEVELOPMENT | Equalizing heights with JQuery after event | Equalizing heights with JQuery after event
I am developing a site that parses RSS feeds and displays them in a series of divs. After all of the feeds load, I would like to run a jquery function that basically takes the height of the tallest div and sets all of the divs equal to that height.
Currently, I using the jQ... | https://stackoverflow.com/questions/4800432/equalizing-heights-with-jquery-after-event | javascript, jquery | 1,296,002,418 |
se_45540887 | stackoverflow | FRONTEND_DEVELOPMENT | How to get values of checkbox in node js using ejs? | How to get values of checkbox in node js using ejs?
My Code:
Html File:
<form action="/form" method="post" enctype="multipart/form-data">
Name: <input type="text" name="name" /><br>
Email: <input type="email" name="email" /> <br>
Age: <input type="number" name="age" /> <br>
Addres... | https://stackoverflow.com/questions/45540887/how-to-get-values-of-checkbox-in-node-js-using-ejs | javascript, node.js, checkbox, ejs, formidable | 1,502,088,587 |
se_68225050 | stackoverflow | FRONTEND_DEVELOPMENT | Next-Auth - Custom OAuth 2.0 Provider Integration | Next-Auth - Custom OAuth 2.0 Provider Integration
We have our own OAuth 2.0 implementation and I am using next-auth to connect and get a jwt in my Next.js app.
Output:
At the moment, I am able to login. However, I get null as token on the client-side.
Steps I have implemented:
Added the next-auth Provider component a... | https://stackoverflow.com/questions/68225050/next-auth-custom-oauth-2-0-provider-integration | javascript, reactjs, oauth-2.0, next.js, next-auth | 1,625,228,189 |
se_54067078 | stackoverflow | FRONTEND_DEVELOPMENT | Module build failed: Error: ENOENT: no such file or directory - React | Module build failed: Error: ENOENT: no such file or directory - React
I am trying to implement pagination in my react application. This is the site I am following React Pagination Component. But I am getting the following error while application build.
./node_modules/babel-preset-react-app/node_modules/@babel/run... | https://stackoverflow.com/questions/54067078/module-build-failed-error-enoent-no-such-file-or-directory-react | javascript, reactjs, pagination | 1,546,819,376 |
se_60954346 | stackoverflow | FRONTEND_DEVELOPMENT | Puppeteer: Lazy images not loading in headless mode | Puppeteer: Lazy images not loading in headless mode
Here is my code. I am using AdBlock Plus Extension.
I have a task to take a screenshot for the web page(Have used lazy loading) with images in the right sidebar under the heading PAID CONTENT and images on the bottom under the heading PAID CONTENT.
const puppeteer ... | https://stackoverflow.com/questions/60954346/puppeteer-lazy-images-not-loading-in-headless-mode | javascript, node.js, puppeteer | 1,585,668,921 |
se_64134239 | stackoverflow | FRONTEND_DEVELOPMENT | Vscode does not start and cannot connect to WSL | Vscode does not start and cannot connect to WSL
I'm using vscode in Ubuntu WSL, it was working fine a couple of hours ago and suddenly stopped working as I started writing js.
I have tried deleting and reinstalling vscode but that does not work and an error : Unable to locate package code appears when I try to purge.... | https://stackoverflow.com/questions/64134239/vscode-does-not-start-and-cannot-connect-to-wsl | javascript, linux, ubuntu, visual-studio-code, subsystem | 1,601,456,438 |
se_56199693 | stackoverflow | FRONTEND_DEVELOPMENT | Get User Location with Javascript | Get User Location with Javascript
I want to get the the users current location address(city, street etc) on click event.
I have tried html5 geolocation and tried to console the data. on button click i am checking geo location is supported by creating alert box, and its executes succesfully, But its not printing any v... | https://stackoverflow.com/questions/56199693/get-user-location-with-javascript | javascript, google-maps, google-maps-api-3 | 1,558,188,289 |
se_47792002 | stackoverflow | FRONTEND_DEVELOPMENT | active class with bootstrap sidebar | active class with bootstrap sidebar
The sidebar needs to change active class after click.This is my bootstrap code and i tried it with this javascript code but it doesn't works.
$(function(){
$('.sidebar1 a').filter(function(){return this.href==location.href}).parent().addClass('active').siblings().removeCla... | https://stackoverflow.com/questions/47792002/active-class-with-bootstrap-sidebar | javascript, html, bootstrap-4 | 1,513,164,804 |
se_25355913 | stackoverflow | FRONTEND_DEVELOPMENT | WebRTC The ICE candidate could not be added | WebRTC The ICE candidate could not be added
I am trying to establish a p2p audio/video connection b/w two peers. Following: Getting started with WebRTC.
It works fine at my home in LAN Environment between 2 PCs, but throws an error message when running
at my company's LAN Environment, there is part the javascript
f... | https://stackoverflow.com/questions/25355913/webrtc-the-ice-candidate-could-not-be-added | javascript, webrtc | 1,408,332,286 |
se_74753688 | stackoverflow | FRONTEND_DEVELOPMENT | MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined" | MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined"
i'm new in mongo and i try do make a connection but i receive an error that i don't kwon how to solve, the error is the below:
MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the... | https://stackoverflow.com/questions/74753688/mongooseerror-the-uri-parameter-to-openuri-must-be-a-string-got-undefin | javascript, node.js, mongodb, mongoose | 1,670,681,772 |
se_32712291 | stackoverflow | FRONTEND_DEVELOPMENT | Disable user from changing browser tabs | Disable user from changing browser tabs
I am developing an online examination system,in order to ensure the validity I would really want to prevent the user from visiting any other tabs in the browser during the 1 hour examination session or till the user clicks the submit button(whichever comes first).
I tried to se... | https://stackoverflow.com/questions/32712291/disable-user-from-changing-browser-tabs | javascript | 1,442,911,222 |
se_79966689 | stackoverflow | FRONTEND_DEVELOPMENT | Drupal - Yoast SEO Snippet preview not rendering: TypeError 'attr is not a function' on native DOM element | Drupal - Yoast SEO Snippet preview not rendering: TypeError 'attr is not a function' on native DOM element
I'm using the Yoast SEO module (drupal/yoast_seo 2.2.0) on a Drupal 11 site. The Real-time SEO field widget has two optional settings on the form display: "Enable title editing" and "Enable description ed... | https://stackoverflow.com/questions/79966689/drupal-yoast-seo-snippet-preview-not-rendering-typeerror-attr-is-not-a-funct | javascript, jquery, drupal, seo, drupal-modules | 1,782,370,976 |
se_77289117 | stackoverflow | FRONTEND_DEVELOPMENT | Is it safe to use the `Function` constructor to validate JavaScript syntax? | Is it safe to use the `Function` constructor to validate JavaScript syntax?
I would like to verify (client-side) that the user has entered valid JavaScript code.
Pulling in a Javascript parser (e.g. Acorn or Esprima) is a relatively heavy dependency. However (if CSP is not enabled), I could do:
try {
new Function... | https://stackoverflow.com/questions/77289117/is-it-safe-to-use-the-function-constructor-to-validate-javascript-syntax | javascript, security, eval, client-side | 1,697,212,186 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.