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_79972741
stackoverflow
FRONTEND_DEVELOPMENT
How to implement role-based navigation in a React Navbar using Context API and React Router?
How to implement role-based navigation in a React Navbar using Context API and React Router? import { useState } from 'react'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import { Menu, X, Target, Receipt, ScanSearch, TrendingUp, Home, ShieldAlert, BookOpen, User, LogOut } from 'lucide-react'; i...
https://stackoverflow.com/questions/79972741/how-to-implement-role-based-navigation-in-a-react-navbar-using-context-api-and-r
javascript, reactjs, react-router, navbar
1,783,015,228
se_79971952
stackoverflow
FRONTEND_DEVELOPMENT
IOS application Distribution without appstore
IOS application Distribution without appstore I'm currently working as a react native developer, i want to distribute my application locally using drive without using appstore and playstore I know i can implement it on android for apk direclty but i'm curious how can i perform this operation for IOS app Can i get sugg...
https://stackoverflow.com/questions/79971952/ios-application-distribution-without-appstore
javascript, ios, react-native
1,782,877,375
se_28547365
stackoverflow
FRONTEND_DEVELOPMENT
How do I switch images based on their selection using jquery?
How do I switch images based on their selection using jquery? I'm building a simple little math flashcards game. Part of the appeal to play is the ability for them to "choose" a videogame character that will animate when the get a problem right or wrong. Currently, my flashcards and code work fine. I have saved some a...
https://stackoverflow.com/questions/28547365/how-do-i-switch-images-based-on-their-selection-using-jquery
javascript, jquery, image
1,424,109,005
se_43964145
stackoverflow
FRONTEND_DEVELOPMENT
What query can i use to fetch data from local storage of selected key value
What query can i use to fetch data from local storage of selected key value I need to store a lot of data in local storage for my app. I am successful in storing that. Now i need to fetch data in an array but of the selected key/values and not all or just 1 of them. I have named these key as "section"+id as seen below...
https://stackoverflow.com/questions/43964145/what-query-can-i-use-to-fetch-data-from-local-storage-of-selected-key-value
javascript, jquery, arrays, json, local-storage
1,494,766,666
se_79976386
stackoverflow
FRONTEND_DEVELOPMENT
Zooming with mouse wheel in an HTML document, but need to stop vertical scroll
Zooming with mouse wheel in an HTML document, but need to stop vertical scroll I am creating a very large flow chart document that is significantly larger than my view port size. I have some JavaScript that allows me to drag the document around using the mouse pointer instead of scrolling vertically and horizontally. ...
https://stackoverflow.com/questions/79976386/zooming-with-mouse-wheel-in-an-html-document-but-need-to-stop-vertical-scroll
javascript, html
1,783,415,470
se_13363946
stackoverflow
FRONTEND_DEVELOPMENT
How do I get an HTML comment with javascript
How do I get an HTML comment with javascript If I have that <!-- some comment --> How do I get this element and change the content with javascript? And if I have a code inside that and I want to delete the tag of comments how can I do it?
https://stackoverflow.com/questions/13363946/how-do-i-get-an-html-comment-with-javascript
javascript, html
1,352,821,748
se_63788332
stackoverflow
FRONTEND_DEVELOPMENT
word-wrap: break word; fix or alternative
word-wrap: break word; fix or alternative With word-wrap: break-word; if the word is going to break anyway, I dont want a line-break first, it is useless and ugly. How to avoid that? Example: Given a div with word-wrap: break-word; and a width equivalent to those 23 "x" characters like so: xxxxxxxxxxxxxxxxxxxxxxx The ...
https://stackoverflow.com/questions/63788332/word-wrap-break-word-fix-or-alternative
javascript, html, css, word-wrap
1,599,547,048
se_3102819
stackoverflow
FRONTEND_DEVELOPMENT
Disable same origin policy in Chrome
Disable same origin policy in Chrome Is there any way to disable the Same-origin policy on Google's Chrome browser?
https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome
javascript, ajax, google-chrome
1,277,305,221
se_71349216
stackoverflow
FRONTEND_DEVELOPMENT
Discordjs: How can I calculate a server or users time since joining?
Discordjs: How can I calculate a server or users time since joining? Basicly I want to somehow calculate a server or users time since joining discord. I was looking at both createdAt and timestamps but I'm not sure how could I get the time either in hour or days format. I want to make an info embed which can show how ...
https://stackoverflow.com/questions/71349216/discordjs-how-can-i-calculate-a-server-or-users-time-since-joining
javascript, discord, discord.js
1,646,385,919
se_49460260
stackoverflow
FRONTEND_DEVELOPMENT
Inform user that message is still being typed
Inform user that message is still being typed I am using Laravel 5.6.7, Socket.IO and vue.js. I am not using Pusher and redis. Below is my code to send message to user chatting with me one to one. var url = "http://localhost:6001/apps/My_appId/events?auth_key=My_Key"; var socketId = Echo.socketId(); var request = { ...
https://stackoverflow.com/questions/49460260/inform-user-that-message-is-still-being-typed
javascript, laravel, vue.js, laravel-5.6
1,521,854,038
se_10058226
stackoverflow
FRONTEND_DEVELOPMENT
Send response to all clients except sender
Send response to all clients except sender To send something to all clients, you use: io.sockets.emit('response', data); To receive from clients, you use: socket.on('cursor', function(data) { ... }); How can I combine the two so that when recieving a message on the server from a client, I send that message to ...
https://stackoverflow.com/questions/10058226/send-response-to-all-clients-except-sender
javascript, node.js, socket.io
1,333,831,507
se_12208390
stackoverflow
FRONTEND_DEVELOPMENT
jQuery selector contains equals sign
jQuery selector contains equals sign I am using a jQuery selector to check for characters in href: var param = "something"; $("a[href*="+param+"]").css("color", "red"); This works fine until "something" contains an = sign. E.g.: var param = "xkey=123"; $("a[href*="+param+"]").css("color", "red"); then I get no resul...
https://stackoverflow.com/questions/12208390/jquery-selector-contains-equals-sign
javascript, jquery, equality
1,346,382,589
se_19752579
stackoverflow
FRONTEND_DEVELOPMENT
Script for adding a new table doesn&#39;t work
Script for adding a new table doesn&#39;t work I have script to add a new table to may page dynamically, I took this script from this fiddler. So, here is my script rebuild with my needs: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Order eve...
https://stackoverflow.com/questions/19752579/script-for-adding-a-new-table-doesnt-work
javascript, jquery, html
1,383,479,202
se_13387456
stackoverflow
FRONTEND_DEVELOPMENT
Comparing a character using the || or operator always returning true
Comparing a character using the || or operator always returning true Below is some Javascript code that should check whether or not a character in a string is one of a given set of letters. However when I type "Hallo" for example it also counts the 'H', 'l', and 'l'. woord.charAt(i) == 'a' || 'e' || 'i' || 'o' || 'u' ...
https://stackoverflow.com/questions/13387456/comparing-a-character-using-the-or-operator-always-returning-true
javascript, string, equality, or-operator
1,352,927,752
se_35833999
stackoverflow
FRONTEND_DEVELOPMENT
Should.js - Inconsistency in equals method should.equals
Should.js - Inconsistency in equals method should.equals I'm using the should.js framework (v8.2.x) to unit test and have been playing around with some very basic tests. However, I ran into this issue with the tests failing, which has stumped me. I defined this dummy function to test, add: var add = function(a, b) {...
https://stackoverflow.com/questions/35833999/should-js-inconsistency-in-equals-method-should-equals
javascript, equality, should.js
1,457,307,554
se_16659647
stackoverflow
FRONTEND_DEVELOPMENT
Using prepopulated form, submit only changed fields
Using prepopulated form, submit only changed fields I have an html form that uses select and text inputs. The form comes pre-populated with default values. How can I submit only the inputs that were changed by the user from their default values? Note that this page is to be stored in an embedded system with limited...
https://stackoverflow.com/questions/16659647/using-prepopulated-form-submit-only-changed-fields
javascript, html, forms
1,369,090,682
se_40792568
stackoverflow
FRONTEND_DEVELOPMENT
How to make casino-like increment of a letter?
How to make casino-like increment of a letter? I need to convert (when the user does something): adcb to (the next letter of every letter): bedc Currently I am just going with javascript and overwrite the character. Remember the Pkmn Game Corner? Wouldn't it be cool if we could simulate that movement of the ...
https://stackoverflow.com/questions/40792568/how-to-make-casino-like-increment-of-a-letter
javascript, html, css, string, replace
1,480,011,241
se_2421911
stackoverflow
FRONTEND_DEVELOPMENT
What is the purpose of wrapping whole Javascript files in anonymous functions like “(function(){ … })()”?
What is the purpose of wrapping whole Javascript files in anonymous functions like “(function(){ … })()”? I have been reading a lot of Javascript lately and I have been noticing that the whole file is wrapped like the following in the .js files to be imported. (function() { ... code ... })(); What is t...
https://stackoverflow.com/questions/2421911/what-is-the-purpose-of-wrapping-whole-javascript-files-in-anonymous-functions-li
javascript, scope, iife
1,268,270,401
se_79962396
stackoverflow
FRONTEND_DEVELOPMENT
Java-like executor service for javascript using WebWorkers
Java-like executor service for javascript using WebWorkers I'm looking for a browser JavaScript equivalent of Java's ExecutorService. Requirements: Use Web Workers for real parallelism (not just Promise.all). Have a fixed number of workers (similar to Executors.newFixedThreadPool(n)). Allow submitting many tasks in a...
https://stackoverflow.com/questions/79962396/java-like-executor-service-for-javascript-using-webworkers
javascript, concurrency
1,781,739,347
se_5062614
stackoverflow
FRONTEND_DEVELOPMENT
How to decide when to use Node.js?
How to decide when to use Node.js? I am new to this kind of stuff, but lately I've been hearing a lot about how good Node.js is. Considering how much I love working with jQuery and JavaScript in general, I can't help but wonder how to decide when to use Node.js. The web application I have in mind is something like Bit...
https://stackoverflow.com/questions/5062614/how-to-decide-when-to-use-node-js
javascript, node.js, web-applications
1,298,265,651
se_79394327
stackoverflow
FRONTEND_DEVELOPMENT
Prevent WordPress Link Editor from Automatically Adding &quot;http://&quot;
Prevent WordPress Link Editor from Automatically Adding &quot;http://&quot; I'm working on a WordPress site that uses Gutenberg blocks, and I have a custom article page where I want to allow users to add links to certain text via the WordPress text editor. The issue I'm encountering is that when I use the Link option ...
https://stackoverflow.com/questions/79394327/prevent-wordpress-link-editor-from-automatically-adding-http
javascript, php, wordpress
1,738,077,643
se_1919582
stackoverflow
FRONTEND_DEVELOPMENT
JavaScript: Which should I use, Microsoft.XMLHTTP or Msxml2.XMLHTTP?
JavaScript: Which should I use, Microsoft.XMLHTTP or Msxml2.XMLHTTP? There are two progid's. I've seen both used. Anyone have any insight as to when I should use one, versus the other?
https://stackoverflow.com/questions/1919582/javascript-which-should-i-use-microsoft-xmlhttp-or-msxml2-xmlhttp
javascript, ajax
1,261,026,395
se_23283652
stackoverflow
FRONTEND_DEVELOPMENT
How to create a custom modal popup - and how to close it clicking outside of it
How to create a custom modal popup - and how to close it clicking outside of it <a href="javascript:void(0)" onclick = "document.getElementById('light3').style.display='block';document.getElementById('fade').style.display='block'"><button type="button" name="" value="" id="readmorelink3">+<span class="rmore">Read More...
https://stackoverflow.com/questions/23283652/how-to-create-a-custom-modal-popup-and-how-to-close-it-clicking-outside-of-it
javascript
1,398,396,574
se_36814321
stackoverflow
FRONTEND_DEVELOPMENT
jQuery loop with name increment
jQuery loop with name increment I'm new to jQuery and this easy task overwhelms me. I'd like to know how would you convert following code to one loop? Could anyone help? $('#image1').change(function() { $('#input-image1 .error').hide(); }); $('#image2').change(function() { $('#input-image2 .error').hide()...
https://stackoverflow.com/questions/36814321/jquery-loop-with-name-increment
javascript, jquery, css
1,461,433,696
se_47180824
stackoverflow
FRONTEND_DEVELOPMENT
How to Declare a variable which increment variable after one day is passed in PHP
How to Declare a variable which increment variable after one day is passed in PHP I need to increment variable on the basis of number of day. For example, like $day = "120"; then tomorrow that $day variable is 121.
https://stackoverflow.com/questions/47180824/how-to-declare-a-variable-which-increment-variable-after-one-day-is-passed-in-ph
javascript, php
1,510,147,261
se_79974549
stackoverflow
FRONTEND_DEVELOPMENT
Sorting div-table without jQuery
Sorting div-table without jQuery I am using this function to sort a div-table but it is the only thing I am using jQuery for which seems a bit overkill. I have managed to change the getting of the divs to not use jQuery, but the sorting and the output is tripping me up. Last attempt is just giving me a lot of: "[objec...
https://stackoverflow.com/questions/79974549/sorting-div-table-without-jquery
javascript
1,783,213,530
se_53408465
stackoverflow
FRONTEND_DEVELOPMENT
How to sort tables with js/html
How to sort tables with js/html I have a table : Name | Department | status I sorted the names alphabetically on click but now I created a dropdown in the status cell which displays values such as Inside/Outside and I want to sort the table when I click on one of those filters I want to only see the people who ar...
https://stackoverflow.com/questions/53408465/how-to-sort-tables-with-js-html
javascript, html
1,542,790,959
se_70267577
stackoverflow
FRONTEND_DEVELOPMENT
How does javascript Set can keep the order of insertion and still have 0(1) lookup &quot;Set.has()&quot;?
How does javascript Set can keep the order of insertion and still have 0(1) lookup &quot;Set.has()&quot;? I have been studying data structures and I do get that Set use implementation similar to hash tables, so the input value + the hash algorithm will create a index where the value is stored... This will yield the ab...
https://stackoverflow.com/questions/70267577/how-does-javascript-set-can-keep-the-order-of-insertion-and-still-have-01-look
javascript, set, hashtable
1,638,915,176
se_79928451
stackoverflow
FRONTEND_DEVELOPMENT
CEF Linux SendKeyEvent Ctrl+A produces empty DOM key/code
CEF Linux SendKeyEvent Ctrl+A produces empty DOM key/code I am using CEF on Linux (OSR/windowless) with an SDL2 input bridge. I want to send a native Ctrl+A shortcut to a focused editor using CefBrowserHost::SendKeyEvent (not a JavaScript selection workaround, which does work). Current approach I send 4 events in thi...
https://stackoverflow.com/questions/79928451/cef-linux-sendkeyevent-ctrla-produces-empty-dom-key-code
javascript, sdl, chromium, keyboard-events, chromium-embedded
1,776,629,673
se_30824075
stackoverflow
FRONTEND_DEVELOPMENT
Joomla 3.3.6 Uncaught ReferenceError: Install is not defined
Joomla 3.3.6 Uncaught ReferenceError: Install is not defined I try to configurate Joomla 3.3.6 in a VM instance of Google Compute Engine, and when I configurate the configuration tab and I do click "next" not work, and the console appears "Uncaught ReferenceError: Install is not defined". What could be the error? I f...
https://stackoverflow.com/questions/30824075/joomla-3-3-6-uncaught-referenceerror-install-is-not-defined
javascript, joomla, google-compute-engine
1,434,233,517
se_61382086
stackoverflow
FRONTEND_DEVELOPMENT
javascript query selector and const issue
javascript query selector and const issue hope you can clarify an issue I am having that is driving me crazy: I am trying to get te value of the input "#size" in JS, I am using the command: submit.addEventListener('click', function(e){ document.querySelector('#output').innerHTML = document.querySelector('#size').val...
https://stackoverflow.com/questions/61382086/javascript-query-selector-and-const-issue
javascript
1,587,628,614
se_73259067
stackoverflow
FRONTEND_DEVELOPMENT
Datatable AltEditor Mysql Guide
Datatable AltEditor Mysql Guide I am new to using datatables and been trying to use an alternative editor for a project I'm working on. Thing is, there is little detail on its documentation on how to use for mysql data, it has some information about using with AJAX but I can't find example on how to connect to a mysql...
https://stackoverflow.com/questions/73259067/datatable-alteditor-mysql-guide
javascript, jquery, mysql, datatable, forum
1,659,782,629
se_61711565
stackoverflow
FRONTEND_DEVELOPMENT
Disabling content security policy of a Web page via a Chrome Extension
Disabling content security policy of a Web page via a Chrome Extension I'm creating a Chrome Extension which modifies a script served by the server (which I have no control over) to add new functionality to the website, and I had the following idea: Block the original script via WebRequest, webRequestBlocking. Send ...
https://stackoverflow.com/questions/61711565/disabling-content-security-policy-of-a-web-page-via-a-chrome-extension
javascript, google-chrome, google-chrome-extension, content-security-policy
1,589,111,809
se_57986952
stackoverflow
FRONTEND_DEVELOPMENT
How to get websocket url using nestjs and how to test in postman?
How to get websocket url using nestjs and how to test in postman? I am creating a mean stack application using nestjs. In nestjs, I am using websockets. I don't know how to test websockets in postman. Normally, I have a test route url in postman and get o/p like: "http://localhost:3000/{routeUrl}", but how to give usi...
https://stackoverflow.com/questions/57986952/how-to-get-websocket-url-using-nestjs-and-how-to-test-in-postman
javascript, node.js, typescript, express, nestjs
1,568,790,528
se_76849276
stackoverflow
FRONTEND_DEVELOPMENT
Can&#39;t get Material UI (MUI) to work in my react app
Can&#39;t get Material UI (MUI) to work in my react app I installed materialUI, emotion/react and emotion/styled as required but can't get MUI to work on my react app. Nothing shows up on my webpage and theres no errors or anything in the console Here's the code: import { Button } from '@mui/material'; import './App.c...
https://stackoverflow.com/questions/76849276/cant-get-material-ui-mui-to-work-in-my-react-app
javascript, reactjs, material-ui
1,691,389,873
se_79966618
stackoverflow
FRONTEND_DEVELOPMENT
is there a way to make it so event listener only handles one event at a time?
is there a way to make it so event listener only handles one event at a time? I am trying to make a progress bar that fills up then resets when a button is clicked. I want to make sure that it can't be messed up by clicking the button too early. Here is what I have so far: const button = document.getElementById("but...
https://stackoverflow.com/questions/79966618/is-there-a-way-to-make-it-so-event-listener-only-handles-one-event-at-a-time
javascript, html, css
1,782,352,091
se_41603672
stackoverflow
FRONTEND_DEVELOPMENT
How to make list and thumbnail view
How to make list and thumbnail view I have a web application in which I list a lot of movies, by now I load a thumbnail for each one of them, but when the list of movies is very large the page stays loading and loading. So, I'm thinking on offer to their users 2 views: thumbnail view and list view (this one is for fa...
https://stackoverflow.com/questions/41603672/how-to-make-list-and-thumbnail-view
javascript, html, css
1,484,184,556
se_79974632
stackoverflow
FRONTEND_DEVELOPMENT
node spawn trouble with doing a graceful shutdown
node spawn trouble with doing a graceful shutdown I am currently trying to host a server with Node.js on my Windows system, which works fine, but I have some trouble when it comes to closing the server. So here's a very simple example of how I'm currently using it: const path = require('path'); const { spawn } = requi...
https://stackoverflow.com/questions/79974632/node-spawn-trouble-with-doing-a-graceful-shutdown
javascript, node.js, windows, spawn, sigint
1,783,243,574
se_35270702
stackoverflow
FRONTEND_DEVELOPMENT
Can service workers cache POST requests?
Can service workers cache POST requests? I tried to cache a POST request in a service worker on fetch event. I used cache.put(event.request, response), but the returned promise was rejected with TypeError: Invalid request method POST.. When I tried to hit the same POST API, caches.match(event.request) was giving me ...
https://stackoverflow.com/questions/35270702/can-service-workers-cache-post-requests
javascript, post, request, service-worker, progressive-web-apps
1,454,937,637
se_35489249
stackoverflow
FRONTEND_DEVELOPMENT
Is there a way to print dynamic variables?
Is there a way to print dynamic variables? I am coding in node.js atm. I need to create a dynamic variable and invoke it. e.g.: username = 'im_a_user'; global['ws[' + username + ']'] = ws; //(yes, i want to store the connection with ws module) but ws[im_a_user].send('blabla'); doesn't work and node shuts down. So I...
https://stackoverflow.com/questions/35489249/is-there-a-way-to-print-dynamic-variables
javascript, node.js, variables
1,455,819,115
se_41869597
stackoverflow
FRONTEND_DEVELOPMENT
Scrolling web site code using JS, HTML and CSS
Scrolling web site code using JS, HTML and CSS I've been trying to get my menu-bar to stick to the top of my page as I scroll into it. It isn't initially on the top but as I scroll into it, it sticks to the top. I can't get it working. $(document).ready(function() { $(window).scroll(function() { //if you hard...
https://stackoverflow.com/questions/41869597/scrolling-web-site-code-using-js-html-and-css
javascript, html, css
1,485,420,116
se_76583170
stackoverflow
FRONTEND_DEVELOPMENT
Pure CSS solution to change the chevron of dropdown options on a click event?
Pure CSS solution to change the chevron of dropdown options on a click event? Is there a pure CSS solution to change the chevron of dropdown options using a combination of CSS pseudo-elements and animations on a click event? I tried the following approach: body { background: #000; } #sec_opt select { /* Reset *...
https://stackoverflow.com/questions/76583170/pure-css-solution-to-change-the-chevron-of-dropdown-options-on-a-click-event
javascript, html, jquery, css
1,688,058,053
se_50354525
stackoverflow
FRONTEND_DEVELOPMENT
Center the angular MatDialog
Center the angular MatDialog I have implemented a modal dialog using angular MatDialog to be used in place of the alert() function. Everything works fine but the positioning of the dialog. I can't manage to place the dialog at the center of the page. The dialog always appears at the bottom left edge of the page. The ...
https://stackoverflow.com/questions/50354525/center-the-angular-matdialog
javascript, css, angular
1,526,399,741
se_79974651
stackoverflow
FRONTEND_DEVELOPMENT
How to run both api and web with arrow keys to change command prompt to api/web?
How to run both api and web with arrow keys to change command prompt to api/web? I did the setup project by these steps and references I took: I did the setup using this command: npx create-turbo@latest -e with-nestjs Output in image: Output image I referred these links for it: Start with an example turborepo/exam...
https://stackoverflow.com/questions/79974651/how-to-run-both-api-and-web-with-arrow-keys-to-change-command-prompt-to-api-web
javascript, typescript, next.js, nestjs, turborepo
1,783,249,275
se_77267835
stackoverflow
FRONTEND_DEVELOPMENT
Passing useRef to child component as a props in react
Passing useRef to child component as a props in react React newbie here. I found out this is not the correct way to pass useRef() to child components but why is it not throwing an error and seems to be working fine. const App = () => { const todoRef = useRef(null); const [todos, setTodos] = useState([]); c...
https://stackoverflow.com/questions/77267835/passing-useref-to-child-component-as-a-props-in-react
javascript, reactjs, react-hooks
1,696,958,718
se_48636376
stackoverflow
FRONTEND_DEVELOPMENT
How to get filenames in a given directory?
How to get filenames in a given directory? (I found some similar questions but none of them solved my problem so this is not a duplicated question I think) I want to retrieve filenames in one of my folder using jQuery. I tried the following method but I still can't get each filename. $.get(".", function(data) { ...
https://stackoverflow.com/questions/48636376/how-to-get-filenames-in-a-given-directory
javascript, jquery, ajax, file
1,517,896,701
se_35743534
stackoverflow
FRONTEND_DEVELOPMENT
Uncaught TypeError: Cannot read property &#39;regional&#39; of undefined?
Uncaught TypeError: Cannot read property &#39;regional&#39; of undefined? I am using jQuery UI Calender for French Language. But unfortunately I see the below error not sure if I am missing some thing. Please advice. Uncaught TypeError: Cannot read property 'regional' of undefined JS : /** French initialisation...
https://stackoverflow.com/questions/35743534/uncaught-typeerror-cannot-read-property-regional-of-undefined
javascript, jquery, jquery-ui, calendar
1,456,911,965
se_55285345
stackoverflow
FRONTEND_DEVELOPMENT
How to get the auto-generated ID?
How to get the auto-generated ID? I'm trying to retrieve the id of the element that I inserted in the database with .key. However, it returns the user value instead of the auto-generated id. How can I get the auto-generated id ? var mainText = document.getElementById("main-text"); var emailText = document.getElementBy...
https://stackoverflow.com/questions/55285345/how-to-get-the-auto-generated-id
javascript, firebase, firebase-realtime-database
1,553,186,570
se_27708579
stackoverflow
FRONTEND_DEVELOPMENT
Custom JQuery showing: Uncaught ReferenceError: $ is not defined on modal
Custom JQuery showing: Uncaught ReferenceError: $ is not defined on modal Question Background: I have a simple ASP.NET MVC site using Bootstrap to render a view with nine panels. On each panel is a button that when clicked should produce a modal popup. The issue: If I include a script link to the included bootstra...
https://stackoverflow.com/questions/27708579/custom-jquery-showing-uncaught-referenceerror-is-not-defined-on-modal
javascript, jquery, asp.net, twitter-bootstrap
1,419,955,277
se_73562143
stackoverflow
FRONTEND_DEVELOPMENT
Buffer as input and output for fluent-ffmpeg
Buffer as input and output for fluent-ffmpeg The below looks like a lot but a it's primarily just output. I'm trying to take in a buffer using multer (being send the request containing the video (.mov format) through Alamofire from an iPhone) as the input before a fluent-ffmpeg conversion, then I want it to output as ...
https://stackoverflow.com/questions/73562143/buffer-as-input-and-output-for-fluent-ffmpeg
javascript, node.js, video-streaming, mp4, fluent-ffmpeg
1,661,981,784
se_35618298
stackoverflow
FRONTEND_DEVELOPMENT
How to gracefully catch jsonwebtoken errors in node &amp; express?
How to gracefully catch jsonwebtoken errors in node &amp; express? Here is my verification function: exports.validateToken = function(req, res, next){ var token = req.body.token; jwt.verify(token, config.sessionSecret, function(err, decoded) { if(err){ return next(err); }else{ var user...
https://stackoverflow.com/questions/35618298/how-to-gracefully-catch-jsonwebtoken-errors-in-node-express
javascript, node.js, express, json-web-token
1,456,374,202
se_28220138
stackoverflow
FRONTEND_DEVELOPMENT
How to use ESAPI to resolve JavaScript DOM XSS?
How to use ESAPI to resolve JavaScript DOM XSS? We are using HP fortify Audit Workbench 3.80 to assess vulnerabilities in our applications. Fortify marks the the following ExtJs JavaScript code as a Critical (the "worst") DOM XSS vulnerability: function doAjaxCall(param1, param2, div) { var options = { ...
https://stackoverflow.com/questions/28220138/how-to-use-esapi-to-resolve-javascript-dom-xss
javascript, ajax, extjs, xss, esapi
1,422,550,210
se_79974476
stackoverflow
FRONTEND_DEVELOPMENT
Log current index while traversing a multidimensional array
Log current index while traversing a multidimensional array This function should log the current index while traversing a multidimensional array. For the sake of simplicity I will demonstrate it here on a basic 2d array: [[1,2,3],[4,5,6]] it should log this: value: 1 index: [0,0] value: 2 index: [0,1] value: 3 index:...
https://stackoverflow.com/questions/79974476/log-current-index-while-traversing-a-multidimensional-array
javascript, multidimensional-array
1,783,184,421
se_46523452
stackoverflow
FRONTEND_DEVELOPMENT
Select&#39;s dropdown direction
Select&#39;s dropdown direction I am wondering how <select> element defines when to expand down and when expand up. I would like to create control like kendo's DropDownList, but I'm not sure how to define expand direction. Here we see that expanding down is not possible because of end of viewport, so expading direct...
https://stackoverflow.com/questions/46523452/selects-dropdown-direction
javascript, html, select, kendo-dropdown
1,506,938,676
se_66155850
stackoverflow
FRONTEND_DEVELOPMENT
InvalidStateError: Failed to execute &#39;transaction&#39; on &#39;IDBDatabase&#39;: The database connection is closing with ios safari
InvalidStateError: Failed to execute &#39;transaction&#39; on &#39;IDBDatabase&#39;: The database connection is closing with ios safari I have issue since Aug 2020 and i still don't know how to reproduce, I am using dfahlander/Dexie.js to use browser indexedDB. This is sample of how i am using dexie:- import db from "...
https://stackoverflow.com/questions/66155850/invalidstateerror-failed-to-execute-transaction-on-idbdatabase-the-databas
javascript, reactjs, indexeddb, dexie
1,613,050,710
se_61634246
stackoverflow
FRONTEND_DEVELOPMENT
TypeError: Cannot read property startsWith of undefined
TypeError: Cannot read property startsWith of undefined import React from 'react'; import AttributeDescription from './AttributeDescription'; class CompEntry extends React.Component{ render(){ let description; if(this.props.description.startsWith("_")){ description= this.props.description.slice(1,...
https://stackoverflow.com/questions/61634246/typeerror-cannot-read-property-startswith-of-undefined
javascript, reactjs
1,588,765,119
se_44401458
stackoverflow
FRONTEND_DEVELOPMENT
datatables bootstrap modal not working
datatables bootstrap modal not working I am trying to get a click to open editable content of my dyniamically generated rows in modals, using datatables plugin. I see an error: Uncaught TypeError: Cannot read property 'display' of undefined. I am using the following files apart from jquery and bootstrap.min.js:...
https://stackoverflow.com/questions/44401458/datatables-bootstrap-modal-not-working
javascript, jquery, twitter-bootstrap, datatables
1,496,793,491
se_31204442
stackoverflow
FRONTEND_DEVELOPMENT
How can I render a React component from within a function?
How can I render a React component from within a function? Is there some way to make the following to work? I want to pass "welcome" to the onClick event for example and it should render a component with that name to specified DIV. I would like it to be dynamically named, but I can settle for switch(index) :) var Menu...
https://stackoverflow.com/questions/31204442/how-can-i-render-a-react-component-from-within-a-function
javascript, reactjs
1,435,918,960
se_41415118
stackoverflow
FRONTEND_DEVELOPMENT
Javascript function does not call window.open(&#39;tel: 12312312&#39;);
Javascript function does not call window.open(&#39;tel: 12312312&#39;); What I want to achieve is dial a number automatically on page load. <body onload="c()"> <h1><a href="Tel: xxxxx">Call me if not called automatically!!!</a></h1> </body> <script> function c() { window.open('tel: 12312312'); } ...
https://stackoverflow.com/questions/41415118/javascript-function-does-not-call-window-opentel-12312312
javascript, html
1,483,270,173
se_79918953
stackoverflow
FRONTEND_DEVELOPMENT
Do I learn React before JavaScript? I&#39;m confused
Do I learn React before JavaScript? I&#39;m confused How do I learn JavaScript as a beginner frontend developer? What resources do I need (video links and written materials)? Also, would you advise diving right into React from CSS? React seems to be so complex. What do I do? I'm confused.
https://stackoverflow.com/questions/79918953/do-i-learn-react-before-javascript-im-confused
javascript, reactjs
1,775,125,552
se_42414583
stackoverflow
FRONTEND_DEVELOPMENT
Creating Collapsable Application Form
Creating Collapsable Application Form I would like to create html application form page where on top there will a dropdown menu. Depending on the value chosen from that dropdown the area below dropdown menu will expand and have some input text boxes with labels. Since I am new to web development, I would be super glad...
https://stackoverflow.com/questions/42414583/creating-collapsable-application-form
javascript, html, css
1,487,849,513
se_64052461
stackoverflow
FRONTEND_DEVELOPMENT
How to track a thank you page that doesn&#39;t change url with GTM
How to track a thank you page that doesn&#39;t change url with GTM I want to add an Application event on GTM, however the page I want to add it to is a SPA. Additionally, when you click through the details of the application, the final page, which is the thank you page, doesn't change the URL, so I can't just make a r...
https://stackoverflow.com/questions/64052461/how-to-track-a-thank-you-page-that-doesnt-change-url-with-gtm
javascript, google-tag-manager
1,600,972,708
se_78779573
stackoverflow
FRONTEND_DEVELOPMENT
Tanstack react table managing globalFilter in URL in stead of state
Tanstack react table managing globalFilter in URL in stead of state I am using Tanstack react table in my NextJS application. I have implemented a search field with globalFilter, worked fine. I want to manage the state in the URL in stead of the state so search results and views are shareable between users of the app....
https://stackoverflow.com/questions/78779573/tanstack-react-table-managing-globalfilter-in-url-in-stead-of-state
javascript, reactjs, next.js, react-hooks, tanstack-table
1,721,662,398
se_79974316
stackoverflow
FRONTEND_DEVELOPMENT
Using HTML5/JavaScript to generate and save a file on iOS 26.5.2 Safari
Using HTML5/JavaScript to generate and save a file on iOS 26.5.2 Safari I have a static website where I generate a file using Javascript for the user to save. I have been following https://stackoverflow.com/a/18197511 and it has been working great on iOS Safari. However, recently I notice that after upgrading to iOS 2...
https://stackoverflow.com/questions/79974316/using-html5-javascript-to-generate-and-save-a-file-on-ios-26-5-2-safari
javascript, download, safari
1,783,129,261
se_71456738
stackoverflow
FRONTEND_DEVELOPMENT
Download PDF in browser with blob
Download PDF in browser with blob I can not quite wrap my head around on how to download a PDF from a google spreadsheet PDF Export Weblink. I generated a testing spreadsheet for this case. I understand that I need to implement encodeURIComponent and/or "Buffer.from" to the blob but however I do it, it only downloads ...
https://stackoverflow.com/questions/71456738/download-pdf-in-browser-with-blob
javascript, node.js, base64, blob, arraybuffer
1,647,174,337
se_54182732
stackoverflow
FRONTEND_DEVELOPMENT
Process never ends when using &#39;process.stdin.once&#39;
Process never ends when using &#39;process.stdin.once&#39; In my node script, I am waiting for the user to press enter at some point: console.log("Press enter to continue..."); await new Promise(function(resolve, reject) { process.stdin.once("data", function(data) { resolve(); }); }); The script run...
https://stackoverflow.com/questions/54182732/process-never-ends-when-using-process-stdin-once
javascript, node.js, process, user-input, stdin
1,547,473,528
se_79974236
stackoverflow
FRONTEND_DEVELOPMENT
Is it possible to render forbidden.tsx from proxy.ts in Next.js 16?
Is it possible to render forbidden.tsx from proxy.ts in Next.js 16? I'm using the experimental authInterrupts feature in Next.js 16, which lets you render a forbidden.tsx page when you call forbidden() Right now my auth logic is all inside proxy.ts, where I control access based on route + user role. What I want is bas...
https://stackoverflow.com/questions/79974236/is-it-possible-to-render-forbidden-tsx-from-proxy-ts-in-next-js-16
javascript, authentication, next.js, proxy
1,783,109,971
se_74143704
stackoverflow
FRONTEND_DEVELOPMENT
fetch() just doesn&#39;t send JSON object
fetch() just doesn&#39;t send JSON object I send JSON object using fetch() this way: async testPost(){ const url = 'https://untitled-0clyb6aowq2u.runkit.sh'; var payload = { "test" : 1 }; const settings = { method: 'POST', headers: { Accept: 'applicat...
https://stackoverflow.com/questions/74143704/fetch-just-doesnt-send-json-object
javascript, json, xmlhttprequest
1,666,285,388
se_63697250
stackoverflow
FRONTEND_DEVELOPMENT
How can I call a template literal tag function on a regular string?
How can I call a template literal tag function on a regular string? If I have a template literal tag function foo, which let's me do: const fooTaggedText = foo`some text`; is it possible for me to somehow call that tag on a regular string? For instance: // This doesn't actually work const fooTaggedText = foo('some...
https://stackoverflow.com/questions/63697250/how-can-i-call-a-template-literal-tag-function-on-a-regular-string
javascript, ecmascript-6, template-literals
1,599,008,192
se_72226999
stackoverflow
FRONTEND_DEVELOPMENT
How to check type of object in typescript
How to check type of object in typescript I have a JSON file containing two different types of Objects in it. I want to iterate over the JSON with respect to their type. To illustrate my problem I created two different type of Object Animal and Person Now I want to check the type of Object whether it is an Animal or P...
https://stackoverflow.com/questions/72226999/how-to-check-type-of-object-in-typescript
javascript, typescript
1,652,432,485
se_60256902
stackoverflow
FRONTEND_DEVELOPMENT
Expand Searchbar with Search icon as well as show close icon onclick using Javascript
Expand Searchbar with Search icon as well as show close icon onclick using Javascript I am trying to open the expanded search bar with a search icon as well as a close icon on click using javascript. Here I am attaching my code. Your help will be appreciated in advance. I am also attaching the image so it can be under...
https://stackoverflow.com/questions/60256902/expand-searchbar-with-search-icon-as-well-as-show-close-icon-onclick-using-javas
javascript, html, css, animation
1,581,920,539
se_42132041
stackoverflow
FRONTEND_DEVELOPMENT
Circled Background should stay the same size
Circled Background should stay the same size I want to display a number with a circled background. However I don't know the length of the number. My current solution will only show the correct size when I have two digits. How can I ensure, that it will stay the same if I have only one digit? .circled-background{ b...
https://stackoverflow.com/questions/42132041/circled-background-should-stay-the-same-size
javascript, html, css
1,486,630,419
se_18812704
stackoverflow
FRONTEND_DEVELOPMENT
JS game loop using requestAnimationFrame - object functions are called only once
JS game loop using requestAnimationFrame - object functions are called only once I'm sorry, I'm a complete noob at js, thought I had a grasp on the basics of object instances and functions, turns out I don't and don't know how to figure out what to do. I've declared a GameLoop function/object like this: function Gam...
https://stackoverflow.com/questions/18812704/js-game-loop-using-requestanimationframe-object-functions-are-called-only-once
javascript, function, object
1,379,250,253
se_45642893
stackoverflow
FRONTEND_DEVELOPMENT
How to get access token for an API by using POST method in JavaScript?
How to get access token for an API by using POST method in JavaScript? The API I want to get credentials for uses OAuth2. The documentation for the API has this listed: Request access token: POST: auth/access_token Url Parms: grant_type : "client_credentials" client_id : Client id client_secret : Client se...
https://stackoverflow.com/questions/45642893/how-to-get-access-token-for-an-api-by-using-post-method-in-javascript
javascript, json, oauth-2.0
1,502,481,426
se_73191162
stackoverflow
FRONTEND_DEVELOPMENT
JavaScript: Search string from position
JavaScript: Search string from position JavaScript has two useful methods, both which nearly do what I need. String.prototype.indexOf() will search for a substring and return its position. It has an optional position parameter which is the starting point of the search, so you can easily find the next one. String.prot...
https://stackoverflow.com/questions/73191162/javascript-search-string-from-position
javascript, regex, string
1,659,343,975
se_79873562
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind CSS generates incorrect compiled CSS for escaped characters of JavaScript strings
Tailwind CSS generates incorrect compiled CSS for escaped characters of JavaScript strings When passing a TailwindCSS class name as a string, I do not need to escape the backslash in order to include it as a string. Since TailwindCSS analyzes the source code directly, this also results in correctly generated CSS: <div...
https://stackoverflow.com/questions/79873562/tailwind-css-generates-incorrect-compiled-css-for-escaped-characters-of-javascri
javascript, reactjs, tailwind-css, backslash
1,769,074,090
se_62375722
stackoverflow
FRONTEND_DEVELOPMENT
Chrome Extension &#39;Could not load background script &#39;background.js&#39;. Could not load manifest&#39; using React
Chrome Extension &#39;Could not load background script &#39;background.js&#39;. Could not load manifest&#39; using React I'm trying to make my chrome extension open a new tab upon installation using the chrome.tabs API but I get the error 'Could not load background script 'background.js'. Could not load manifest.' Th...
https://stackoverflow.com/questions/62375722/chrome-extension-could-not-load-background-script-background-js-could-not-lo
javascript, reactjs, google-chrome, google-chrome-extension, create-react-app
1,592,154,389
se_79939094
stackoverflow
FRONTEND_DEVELOPMENT
How Do Machine Learning Algorithms Improve Accuracy Over Time?
How Do Machine Learning Algorithms Improve Accuracy Over Time? I recently started learning Python and machine learning. I noticed that many developers use libraries like TensorFlow and Scikit-learn for predictive modeling. What are the main advantages of using supervised learning algorithms compared to unsupervised le...
https://stackoverflow.com/questions/79939094/how-do-machine-learning-algorithms-improve-accuracy-over-time
javascript, python, java, tensorflow, scikit-learn
1,778,460,227
se_78520151
stackoverflow
FRONTEND_DEVELOPMENT
Export HTML tables to excel
Export HTML tables to excel I know very basic html and very little javascript. I'm hoping someone can write a code i can cut and past and update a few things. We're currently using Tridion for our intranet. I have to use a code block component for javascript to allow me to export the HTML table to excel. The issue is ...
https://stackoverflow.com/questions/78520151/export-html-tables-to-excel
javascript, html
1,716,414,814
se_17126453
stackoverflow
FRONTEND_DEVELOPMENT
HTML Table to Excel Javascript
HTML Table to Excel Javascript I'm trying to use this script to save a html table to an Excel file, and it works fine, however it doesn't come up in the proper name, but rather with a random string. And I can't see why . I call it with: <input type="button" onclick="tableToExcel('tablename', 'name')" value="Export t...
https://stackoverflow.com/questions/17126453/html-table-to-excel-javascript
javascript, html, excel, html-table
1,371,319,616
se_36759851
stackoverflow
FRONTEND_DEVELOPMENT
Cinnamon: Modifying the &quot;Show Desktop&quot; (+ other system applets) Icon
Cinnamon: Modifying the &quot;Show Desktop&quot; (+ other system applets) Icon I'm new to cinnamon and I'm disappointed that some of the system applets cannot have their icons modified easily. After seeing that, I did a find from my root directory for "show-desktop" and found a /usr/share/cinnamon/applets/show-desktop...
https://stackoverflow.com/questions/36759851/cinnamon-modifying-the-show-desktop-other-system-applets-icon
javascript, fedora, cinnamon
1,461,213,852
se_71341573
stackoverflow
FRONTEND_DEVELOPMENT
TypeError: _ExpoSecureStore.default.getValueWithKeyAsync is not a function
TypeError: _ExpoSecureStore.default.getValueWithKeyAsync is not a function I am trying to use expo-secure-store in my React Native. I am getting the error below: Possible Unhandled Promise Rejection (id: 2): TypeError: _ExpoSecureStore.default.getValueWithKeyAsync is not a function. (In '_ExpoSecureStore.default.getV...
https://stackoverflow.com/questions/71341573/typeerror-exposecurestore-default-getvaluewithkeyasync-is-not-a-function
javascript, react-native, expo
1,646,329,688
se_61319953
stackoverflow
FRONTEND_DEVELOPMENT
Programmatically trigger keyboard shortcuts, e.g. in Gmail
Programmatically trigger keyboard shortcuts, e.g. in Gmail Is there any way to programmatically trigger keyboard shortcuts from Javascript? For example, take gmail.com, where pressing 'e' will archive the selected email. Could I write any type of code (say in a Chrome Extension) that can simulate the user pressing 'e...
https://stackoverflow.com/questions/61319953/programmatically-trigger-keyboard-shortcuts-e-g-in-gmail
javascript, google-chrome-extension
1,587,377,514
se_63757764
stackoverflow
FRONTEND_DEVELOPMENT
The requested module does not provide an export named
The requested module does not provide an export named I'm translating this javascript project (https://github.com/Legorin/satisfactory-calculator) to typescript. I'm getting an error when I import the transpiled typescript file in a html script tag. <script> var handlers = {} </script> <script type="module"> impor...
https://stackoverflow.com/questions/63757764/the-requested-module-does-not-provide-an-export-named
javascript, html, typescript
1,599,333,945
se_79972725
stackoverflow
FRONTEND_DEVELOPMENT
How can I improve a reusable fetch wrapper with Firebase auth in JavaScript?
How can I improve a reusable fetch wrapper with Firebase auth in JavaScript? I have a reusable apiFetch() wrapper that adds a Firebase auth token, sends JSON when needed, parses the response, and throws a custom error for failed requests. The code works, but I’m not sure if this is the cleanest way to handle auth head...
https://stackoverflow.com/questions/79972725/how-can-i-improve-a-reusable-fetch-wrapper-with-firebase-auth-in-javascript
javascript, firebase, authentication
1,783,012,067
se_21847578
stackoverflow
FRONTEND_DEVELOPMENT
How can I simpify this JavaScript code with symmetric calls on &#39;info&#39; and &#39;error&#39;?
How can I simpify this JavaScript code with symmetric calls on &#39;info&#39; and &#39;error&#39;? Consider: if (!errorHasHappened) { info.show(); error.hide(); } else { info.hide(); error.show(); } I can't use toggle. I tried to pass function show or hide to a variable and then execute it, but it did...
https://stackoverflow.com/questions/21847578/how-can-i-simpify-this-javascript-code-with-symmetric-calls-on-info-and-error
javascript
1,392,710,774
se_79972805
stackoverflow
FRONTEND_DEVELOPMENT
a request failed with status 500 error in my login route
a request failed with status 500 error in my login route well is there a problem on this login route ,i chexked if bcrypt..compare is well writed or not and yea it work , and i evenn used try catch but now i have an error like request failed with status 401 , and here is the controller method static async login(re...
https://stackoverflow.com/questions/79972805/a-request-failed-with-status-500-error-in-my-login-route
javascript, express
1,783,033,658
se_56636737
stackoverflow
FRONTEND_DEVELOPMENT
require(&#39;fs-extra&#39;) not loading: throwing error &quot;Cant find module fs-extra&quot;
require(&#39;fs-extra&#39;) not loading: throwing error &quot;Cant find module fs-extra&quot; Trying to use some installed npm packages like fs-extra into below js files given by Truffle.But it says "can't find module "fs-extra". 1) Tried importing local js files using require() method but that fails too. 2) Tried r...
https://stackoverflow.com/questions/56636737/requirefs-extra-not-loading-throwing-error-cant-find-module-fs-extra
javascript, typescript, requirejs, truffle
1,560,795,111
se_29674190
stackoverflow
FRONTEND_DEVELOPMENT
Why does &quot;;&quot; == &quot;;&quot; evaluates to &quot;false&quot;?
Why does &quot;;&quot; == &quot;;&quot; evaluates to &quot;false&quot;? Why does this (Firebug Console): > ";" == ";" > false But this: > ';' == ';' > true Anyone knows why this is happening?
https://stackoverflow.com/questions/29674190/why-does-evaluates-to-false
javascript, conditional-statements, character, firebug, equality
1,429,185,884
se_42161402
stackoverflow
FRONTEND_DEVELOPMENT
Toggle pages backgroundcolor in html/CSS
Toggle pages backgroundcolor in html/CSS On my HTML/CSS page I need to have a switch to toggle the background color and text color. (For example black theme to white theme). Is there any way to do this?
https://stackoverflow.com/questions/42161402/toggle-pages-backgroundcolor-in-html-css
javascript, html, css
1,486,735,734
se_60752510
stackoverflow
FRONTEND_DEVELOPMENT
Which React hook executes first useEffect or useLayoutEffect?
Which React hook executes first useEffect or useLayoutEffect? I have a component and I want to do some calculations right before rendering HTML on the screen. Since both useEffect and useLayoutEffect can handle this task, my question is having both of them in code, which of them will be triggered first, useEffect and ...
https://stackoverflow.com/questions/60752510/which-react-hook-executes-first-useeffect-or-uselayouteffect
javascript, reactjs, react-hooks
1,584,602,356
se_79966688
stackoverflow
FRONTEND_DEVELOPMENT
Why do web developers use code editors instead of writing code directly in the browser?
Why do web developers use code editors instead of writing code directly in the browser? I'm new to web development and I'm trying to understand the purpose of code editors. Modern browsers can display and run HTML, CSS, and JavaScript. Browsers also provide Developer Tools that allow editing code. Because of this, I'm...
https://stackoverflow.com/questions/79966688/why-do-web-developers-use-code-editors-instead-of-writing-code-directly-in-the-b
javascript, html, css
1,782,370,941
se_50587662
stackoverflow
FRONTEND_DEVELOPMENT
Display image from a given url
Display image from a given url I have an array with 3 cells.At the first cell i have a textarea where you can insert the url of an image.At the second cell i have a button which when you click the image display at the third cell where i have a div to display the image.The question is how can i display the image either...
https://stackoverflow.com/questions/50587662/display-image-from-a-given-url
javascript, html, image, insert
1,527,606,501
se_36619870
stackoverflow
FRONTEND_DEVELOPMENT
Why is 1 == &#39;1\n&#39; true?
Why is 1 == &#39;1\n&#39; true? Why is 1\n' and variants like '1\t' seen as equal to 1? if (1 == '1\n') { console.log('Equal'); } else { console.log('Not Equal'); }
https://stackoverflow.com/questions/36619870/why-is-1-1-n-true
javascript, equality
1,460,628,345
se_79971861
stackoverflow
FRONTEND_DEVELOPMENT
c++ node js Api
c++ node js Api I am developing a Node.js application that uses Winston for logging and relies heavily on asynchronous operations. For intellectual property reasons, I need to deploy this application on a client-owned server without exposing the readable source code or making it easily reversible. I initially thought ...
https://stackoverflow.com/questions/79971861/c-node-js-api
javascript, c++, node.js, asynchronous, c++17
1,782,843,754
se_11605342
stackoverflow
FRONTEND_DEVELOPMENT
Change default equals in goog.structs.Map
Change default equals in goog.structs.Map I am using Google Closure Tools. I am trying to store objects in a Map and I need to change the way that they are compared so that the keys will be evaluated as equal or unequal appropriately. How can this be done?
https://stackoverflow.com/questions/11605342/change-default-equals-in-goog-structs-map
javascript, dictionary, equality, google-closure
1,343,005,635
se_16770454
stackoverflow
FRONTEND_DEVELOPMENT
How to remove class if the content of an element is equal to another using jQuery
How to remove class if the content of an element is equal to another using jQuery I have a problem on my script, i would like to know : How to remove a class if the content of an element (such as div, img, etc) is equal to another content of another element (such as div, img, etc) ?
https://stackoverflow.com/questions/16770454/how-to-remove-class-if-the-content-of-an-element-is-equal-to-another-using-jquer
javascript, jquery, element
1,369,647,961
se_25136199
stackoverflow
FRONTEND_DEVELOPMENT
jQuery equal height columns / rows with one DIV-Class
jQuery equal height columns / rows with one DIV-Class How can I make equal height rows with one DIV-Class without adress all Column-Classes but rather the row with the 4-Line-Text in the first row ? Here is my example and the problem http://jsfiddle.net/8mh4s/1/ $('.container').each(function() { var highe...
https://stackoverflow.com/questions/25136199/jquery-equal-height-columns-rows-with-one-div-class
javascript, html, jquery, css
1,407,233,360
se_48243511
stackoverflow
FRONTEND_DEVELOPMENT
Reducing memory utilization of Angular app
Reducing memory utilization of Angular app I've created a simple Angular app with one Form and a Table (PrimeNg DataTable). Just to get a substantial difference in memory utilization with initial and final readings, I performed multiple Form Post calls (300 times) and navigated Table till page 20 with 1000 rows per p...
https://stackoverflow.com/questions/48243511/reducing-memory-utilization-of-angular-app
javascript, angular, performance, memory-leaks, angular5
1,515,871,623
se_62954099
stackoverflow
FRONTEND_DEVELOPMENT
How to write conditional statements in bitbucket pipelines.yml file?
How to write conditional statements in bitbucket pipelines.yml file? I am new to bitbucket pipelines and trying to deploy my code via bitbucket pipelines by using javaScript. My question is can we declare variables like (ex: var flag = false) and then write if/else statements based the flag value. Below is my pipeline...
https://stackoverflow.com/questions/62954099/how-to-write-conditional-statements-in-bitbucket-pipelines-yml-file
javascript, node.js, continuous-integration, bitbucket, bitbucket-pipelines
1,594,989,330