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_44932786 | stackoverflow | FRONTEND_DEVELOPMENT | Web site dropbdown button component name | Web site dropbdown button component name
Does anyone know the name of the of the web page component which acts as an expandable read-only textarea?
So basically, the component initially looks like a button with a title and an arrow marker indicating that there is more to view if the user clicks below, then once the us... | https://stackoverflow.com/questions/44932786/web-site-dropbdown-button-component-name | javascript, html, css | 1,499,276,519 |
se_44868140 | stackoverflow | FRONTEND_DEVELOPMENT | HTML/CSS background with several vector shapes and no img | HTML/CSS background with several vector shapes and no img
I know that there are a few questions like this, but non of them really helped me...
I want to know how to code a background like this -> http://www.liveandwired.co
with vector shapes and especially this waves
Has someone an idea how to make this? | https://stackoverflow.com/questions/44868140/html-css-background-with-several-vector-shapes-and-no-img | javascript, html, css | 1,498,977,778 |
se_4512306 | stackoverflow | FRONTEND_DEVELOPMENT | Get decimal portion of a number with JavaScript | Get decimal portion of a number with JavaScript
I have float numbers like 3.2 and 1.6.
I need to separate the number into the integer and decimal part. For example, a value of 3.2 would be split into two numbers, i.e. 3 and 0.2
Getting the integer portion is easy:
n = Math.floor(n);
But I am having trouble getting th... | https://stackoverflow.com/questions/4512306/get-decimal-portion-of-a-number-with-javascript | javascript, floating-point, numbers, decimal, rounding | 1,293,042,008 |
se_69410352 | stackoverflow | FRONTEND_DEVELOPMENT | How to set current time dynamically in a variable typescript | How to set current time dynamically in a variable typescript
I'm working on a app which I should set messages according to current time based on hours.
For ex if time is: 23:35:2 I should set a string to Good night <user name> and if the time goes 4:00:0 I want to set Good morning <user name> accordingly.
Currently I'... | https://stackoverflow.com/questions/69410352/how-to-set-current-time-dynamically-in-a-variable-typescript | javascript, angular, typescript, rxjs, rxjs-observables | 1,633,112,007 |
se_65574023 | stackoverflow | FRONTEND_DEVELOPMENT | Quick question about leetcode 101.Symmetric Tree | Quick question about leetcode 101.Symmetric Tree
I was wondering why the first dfs returns false and the second returns true. From my understanding || operator returns true if one of the expressions is true. thanks, guys!
var isSymmetric = function(root) {
if (!root) return true;
return dfs(root.left, roo... | https://stackoverflow.com/questions/65574023/quick-question-about-leetcode-101-symmetric-tree | javascript | 1,609,827,331 |
se_79985951 | stackoverflow | FRONTEND_DEVELOPMENT | Incorrect project_id in google auth response | Incorrect project_id in google auth response
I am using firebase authentication (phone/email) for my app. To initialize the firebase app, I have taken the firebase configuration JSON. In the JSON file, I see the expected project ID. Below is my sample configuration.
const firebaseConfig = {
apiKey: "...",
authDoma... | https://stackoverflow.com/questions/79985951/incorrect-project-id-in-google-auth-response | javascript, firebase, firebase-authentication | 1,785,033,228 |
se_58738927 | stackoverflow | FRONTEND_DEVELOPMENT | How do I correctly markup a Product within an Offer within a Product? | How do I correctly markup a Product within an Offer within a Product?
I am getting Google Search console errors on the Product pages for a website I maintain, and I'm not sure how to resolve the errors. The error I'm getting is:
One of offers or review or aggregateRating should be provided.
This is simple enoug... | https://stackoverflow.com/questions/58738927/how-do-i-correctly-markup-a-product-within-an-offer-within-a-product | javascript, schema.org, json-ld, google-rich-snippets, structured-data | 1,573,076,555 |
se_6837746 | stackoverflow | FRONTEND_DEVELOPMENT | Spacebar key press on anchor html element doesn't trigger click event. How to let this happen? | Spacebar key press on anchor html element doesn't trigger click event. How to let this happen?
<a tabindex="7" style="cursor: pointer;" class="button" id="saveTocAddNew" onClick="saveTdsAddNew();"/>
<span>Save & Add Another</span>
</a>
I have the above anchor element in my page. This one is styled to look like ... | https://stackoverflow.com/questions/6837746/spacebar-key-press-on-anchor-html-element-doesnt-trigger-click-event-how-to-le | javascript, html | 1,311,722,226 |
se_79986176 | stackoverflow | FRONTEND_DEVELOPMENT | Can a shadow DOM host node be selected based on being a descendant of a node in the light DOM? | Can a shadow DOM host node be selected based on being a descendant of a node in the light DOM?
Is it possible to modify the style inside the shadow DOM to apply to a :host that is a descendent of div.state.open in the light DOM, for example, rather than as in the example using :host(.closed).
"use strict";
c... | https://stackoverflow.com/questions/79986176/can-a-shadow-dom-host-node-be-selected-based-on-being-a-descendant-of-a-node-in | javascript, css, shadow-dom | 1,785,124,731 |
se_66906787 | stackoverflow | FRONTEND_DEVELOPMENT | Calculate duration by start and end hour | Calculate duration by start and end hour
I have this json :
{
endTime: "14:00:00"
startTime: "12:00:00"
}
I need to calculate duration, so I did like this :
let duration = endTime.slice(0, -3) - startTime.slice(0, -3);
But not working as expected. I have a JS error: left-hand must be type number
What can I t... | https://stackoverflow.com/questions/66906787/calculate-duration-by-start-and-end-hour | javascript, typescript | 1,617,288,749 |
se_42290789 | stackoverflow | FRONTEND_DEVELOPMENT | How to export the file json to CSV or XLSX format in Angularjs | How to export the file json to CSV or XLSX format in Angularjs
Im new to angularjs and im trying to export the data xlsx format but
my data is not coming can any one help me out in this how to export
since i have parse the json data csv also but still if any can help it
would easy for please make it in fiddle an... | https://stackoverflow.com/questions/42290789/how-to-export-the-file-json-to-csv-or-xlsx-format-in-angularjs | javascript, angularjs, csv | 1,487,312,602 |
se_7914773 | stackoverflow | FRONTEND_DEVELOPMENT | jQuery equal to function form validation | jQuery equal to function form validation
I have been working on some form validation in jQuery. Everything was going nicely and then I realised I need to do a password and confirm password validation method. I have so far:
'dotwPassword': function () {
var info = $('.dotwPassword');
var ele = $('#... | https://stackoverflow.com/questions/7914773/jquery-equal-to-function-form-validation | javascript, jquery, forms, equality | 1,319,712,238 |
se_22908002 | stackoverflow | FRONTEND_DEVELOPMENT | Can you use = and == together in the same script? | Can you use = and == together in the same script?
Had some problems with a script running, which was mainly built around dropdown menus. Single equals = and exactly equals == were both used in the same function, though not same if statement. Could not see anything else amiss and made all uses ==, which seemed to resol... | https://stackoverflow.com/questions/22908002/can-you-use-and-together-in-the-same-script | javascript, equality, assignment-operator | 1,396,861,598 |
se_79880012 | stackoverflow | FRONTEND_DEVELOPMENT | How to make a website? Frontend and Backend | How to make a website? Frontend and Backend
Hi I am a beginner in programming, I just want to ask if I were to make a website what IDE should I use to run the frontend and backend? Like merge ( ? ) Can I use Visual Studio? Or something else. Please I need help ಥ‿ಥ. | https://stackoverflow.com/questions/79880012/how-to-make-a-website-frontend-and-backend | javascript, html | 1,769,862,488 |
se_74681121 | stackoverflow | FRONTEND_DEVELOPMENT | Web Audio API - Stereo to Mono | Web Audio API - Stereo to Mono
I need to convert an stereo input (channelCount: 2) stream comming from chrome.tabCapture.capture to a mono stream and send it to a server, but keep the original audio unchanged.
I've tried several things but the destination.stream always has 2 channels.
const context = new AudioContext(... | https://stackoverflow.com/questions/74681121/web-audio-api-stereo-to-mono | javascript, audio, google-chrome-extension, webrtc | 1,670,189,619 |
se_54884265 | stackoverflow | FRONTEND_DEVELOPMENT | How Can I Define Additional Blending Modes in Three.js? | How Can I Define Additional Blending Modes in Three.js?
I would like to define additional blending modes in Three.js, like the ones you can find in Photoshop. For example:
Linear burn:
pixel = (src + dst) - 1.0
Screen:
pixel = (src + dst) - (src * dst)
The full list of blending modes I want to add, along with thei... | https://stackoverflow.com/questions/54884265/how-can-i-define-additional-blending-modes-in-three-js | javascript, three.js, blending | 1,551,179,692 |
se_45991300 | stackoverflow | FRONTEND_DEVELOPMENT | how to apply style to jquery autocomplete dropdown | how to apply style to jquery autocomplete dropdown
I'm using jquery autocomplete.
I have set it to connect with a service and bring back records:
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
... | https://stackoverflow.com/questions/45991300/how-to-apply-style-to-jquery-autocomplete-dropdown | javascript, jquery, css, jquery-ui-autocomplete | 1,504,221,020 |
se_74854426 | stackoverflow | FRONTEND_DEVELOPMENT | How to replace all HTML Tags in <head> wrapped into two html-comments using JavaScript? | How to replace all HTML Tags in <head> wrapped into two html-comments using JavaScript?
In my HTML document's head is a section of tags (meta, link, ...) wrapped into two specific comments (specified by comments text-content). I want to take everything within those comments including the comments, delete it and ... | https://stackoverflow.com/questions/74854426/how-to-replace-all-html-tags-in-head-wrapped-into-two-html-comments-using-java | javascript, html, html-meta | 1,671,473,844 |
se_77517165 | stackoverflow | FRONTEND_DEVELOPMENT | @typescript-eslint/naming-convention - How to use to enforce consistent `catch` variable names? | @typescript-eslint/naming-convention - How to use to enforce consistent `catch` variable names?
This seems to be possible with https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/rules/catch-error-name.js but I didn't want to re-implement this if @typescript-eslint could theoretically support it, but I'm n... | https://stackoverflow.com/questions/77517165/typescript-eslint-naming-convention-how-to-use-to-enforce-consistent-catch | javascript, typescript, eslint | 1,700,494,682 |
se_74993296 | stackoverflow | FRONTEND_DEVELOPMENT | How to generate a form based on a configuration and retrieve all values from it on submit? | How to generate a form based on a configuration and retrieve all values from it on submit?
When launching my Vue 3 app it asks for a configuration from an external API. This returns an array of
interface FieldConfig {
fieldId: string;
dataType: 'string' | 'boolean' | 'number';
defaultValueFunction?: () => Promis... | https://stackoverflow.com/questions/74993296/how-to-generate-a-form-based-on-a-configuration-and-retrieve-all-values-from-it | javascript, typescript, vue.js, vuetify.js, vuetifyjs3 | 1,672,748,483 |
se_32973616 | stackoverflow | FRONTEND_DEVELOPMENT | Uncaught TypeError: Cannot read property 'textContent' of null error | Uncaught TypeError: Cannot read property 'textContent' of null error
I am trying to use dc.js to implement the crossfilter and d3. I am almost successful. When I run my code in JSFiddle, it works perfectly ok! But when i try to implement the exact code on the local system, it gives me Uncaught TypeError: Canno... | https://stackoverflow.com/questions/32973616/uncaught-typeerror-cannot-read-property-textcontent-of-null-error | javascript, d3.js, dc.js, crossfilter | 1,444,144,663 |
se_79986113 | stackoverflow | FRONTEND_DEVELOPMENT | Can the JS code event listener "know" the event target within an openshadow DOM node? | Can the JS code event listener "know" the event target within an openshadow DOM node?
In this set-up of listening for events on the document body, is there a way to know which element within an open shadow DOM node was the target of the event?
It appears that, for a moment, the host.shadowRoot.activeElement ... | https://stackoverflow.com/questions/79986113/can-the-js-code-event-listener-know-the-event-target-within-an-openshadow-dom | javascript, dom-events, shadow-dom | 1,785,094,702 |
se_52107707 | stackoverflow | FRONTEND_DEVELOPMENT | React Table Column Header Data | React Table Column Header Data
I am trying to create a Jeopardy app using React and React Table and I am stuck. I am trying to get the column headers to get filled in with the actual name of the category from the jeopardy API. The object fetched from the API looks like this:
"id": 11111,
"title": "papers",
"clues_coun... | https://stackoverflow.com/questions/52107707/react-table-column-header-data | javascript, reactjs, react-table | 1,535,682,781 |
se_45545043 | stackoverflow | FRONTEND_DEVELOPMENT | How to change the format of input type datetime-local? | How to change the format of input type datetime-local?
I am giving an input field with type datetime-local,
<input type="datetime-local" class="form-control" name="booking_checkin">
In which after filling and viewing it, the format is like this,
2017-08-06T02:32 .
It looks like awkward and i need this pattern to ... | https://stackoverflow.com/questions/45545043/how-to-change-the-format-of-input-type-datetime-local | javascript, html, datetime, input-type-file | 1,502,102,739 |
se_42883486 | stackoverflow | FRONTEND_DEVELOPMENT | Safely and properly monkeypatching the require function in Node.js | Safely and properly monkeypatching the require function in Node.js
Monkeypatching the require function in node.js may prove useful, especially for some libraries. I am trying to figure out how I could do it right, safely, etc.
Here is what I have:
const Mod = require('module');
const req = Mod.prototype.require;
Mod... | https://stackoverflow.com/questions/42883486/safely-and-properly-monkeypatching-the-require-function-in-node-js | javascript, node.js, commonjs | 1,489,903,757 |
se_71197243 | stackoverflow | FRONTEND_DEVELOPMENT | Is there a way to restrict snippets to work under certain path | Is there a way to restrict snippets to work under certain path
I have a file structure like below
main
|
-------------
| |
Folder1 Folder2
I have below JS snippets in my extension I want this to be available only on all the js files under Folder1 and similarly, I h... | https://stackoverflow.com/questions/71197243/is-there-a-way-to-restrict-snippets-to-work-under-certain-path | javascript, visual-studio-code, vscode-extensions | 1,645,380,255 |
se_23118185 | stackoverflow | FRONTEND_DEVELOPMENT | Uncaught TypeError: Cannot read property 'apply' of undefined with Sencha | Uncaught TypeError: Cannot read property 'apply' of undefined with Sencha
I have some problems with sencha touch.
I have this simple code :
items: [
{
name: "horo",
xtype: 'togglefield',
label: 'Horodateur ?',
labelWidth: '55%',
disabled: fal... | https://stackoverflow.com/questions/23118185/uncaught-typeerror-cannot-read-property-apply-of-undefined-with-sencha | javascript, extjs | 1,397,675,631 |
se_37928306 | stackoverflow | FRONTEND_DEVELOPMENT | Passing data to handlebars - node.js | Passing data to handlebars - node.js
I am new to node.js , so basically I am making a get request in my router(index.js) and then after I get the result (I could see that I obtained the right result by dumping it in console.log) I am parsing it into a json object and passing it to a render function so that I could use... | https://stackoverflow.com/questions/37928306/passing-data-to-handlebars-node-js | javascript, json, node.js | 1,466,443,179 |
se_63603974 | stackoverflow | FRONTEND_DEVELOPMENT | input type = time how to set 5 minute intervals and close menu when time SELECTED or button to close EDIT | input type = time how to set 5 minute intervals and close menu when time SELECTED or button to close EDIT
so I have
<input type = "time" name = "mytime" id = "mytime">
the issue is that when the user select a time the menu remains open. is there a way to close the menu after they select a time on it?
Basical... | https://stackoverflow.com/questions/63603974/input-type-time-how-to-set-5-minute-intervals-and-close-menu-when-time-selecte | javascript, html | 1,598,467,965 |
se_42599560 | stackoverflow | FRONTEND_DEVELOPMENT | How can I conditionally choose a base class for my subclass? | How can I conditionally choose a base class for my subclass?
Here is the thing. I have a main class called A.
I want this class to extend class B.
class A extends B {}
But in fact, I want the class B to extend C, D or E on a specific condition:
class B extends B1 {}
or
class B extends B2 {}
or
class B extend... | https://stackoverflow.com/questions/42599560/how-can-i-conditionally-choose-a-base-class-for-my-subclass | javascript, class, extends, es6-class | 1,488,651,364 |
se_4233490 | stackoverflow | FRONTEND_DEVELOPMENT | How can I get text content of the entire document? | How can I get text content of the entire document?
I am building a Chrome extension which at some point should determine the current page language. In order to do that, my plan is to extract the text content of the page (or at least a part of it) and pass it to a translation API. However I couldn't find any straightfo... | https://stackoverflow.com/questions/4233490/how-can-i-get-text-content-of-the-entire-document | javascript, jquery, google-chrome, google-chrome-extension | 1,290,267,154 |
se_2986990 | stackoverflow | FRONTEND_DEVELOPMENT | Is there a way to get all text from the rendered page with JavaScript? | Is there a way to get all text from the rendered page with JavaScript?
Is there an (unobtrusive, to the user) way to get all the text in a page with JavaScript?
I could get the HTML, parse it, remove all tags, etc., but I'm wondering if there's a way to get the text from the already rendered page.
To clarify, I don't ... | https://stackoverflow.com/questions/2986990/is-there-a-way-to-get-all-text-from-the-rendered-page-with-javascript | javascript, text, text-extraction | 1,275,883,059 |
se_37107038 | stackoverflow | FRONTEND_DEVELOPMENT | How to solve an error "oTable.draw is not a function" in filtering datatables? | How to solve an error "oTable.draw is not a function" in filtering datatables?
I have a search form above the datatables. When I try to search, I have got the data shows in JSON format, not filtering the datatables. The error is
Uncaught TypeError: oTable.draw is not a function
Here is the javascript:... | https://stackoverflow.com/questions/37107038/how-to-solve-an-error-otable-draw-is-not-a-function-in-filtering-datatables | javascript, jquery, datatable, datatables, filtering | 1,462,761,254 |
se_79985991 | stackoverflow | FRONTEND_DEVELOPMENT | Why might a custom element ignore main CSS styles and return parent node as event target? | Why might a custom element ignore main CSS styles and return parent node as event target?
This example works as expected (that is, the custom element is styled based on the main styles and events return it as the target) but when I put it in my larger code as a separate module (with the correct import and export) the ... | https://stackoverflow.com/questions/79985991/why-might-a-custom-element-ignore-main-css-styles-and-return-parent-node-as-even | javascript, custom-element | 1,785,054,262 |
se_28999829 | stackoverflow | FRONTEND_DEVELOPMENT | How to strip image metadata in the browser before upload (javascript) | How to strip image metadata in the browser before upload (javascript)
I am uploading images to a node js server, and sending them to AWS S3 for use on my site. Images that were taken on iOS devices sometimes show up sideways in the browser and I've already figured out that it's due to some of the metadata that iOS att... | https://stackoverflow.com/questions/28999829/how-to-strip-image-metadata-in-the-browser-before-upload-javascript | javascript, ios, image, metadata | 1,426,119,379 |
se_79985588 | stackoverflow | FRONTEND_DEVELOPMENT | Text input stops receiving keyboard events after cancelling beforeunload confirmation in Chrome | Text input stops receiving keyboard events after cancelling beforeunload confirmation in Chrome
Chrome/Edge lose keyboard input after cancelling beforeunload dialog when closing browser with multiple tabs
I'm investigating what appears to be a Chromium-specific issue and would like to know whether there is any known w... | https://stackoverflow.com/questions/79985588/text-input-stops-receiving-keyboard-events-after-cancelling-beforeunload-confirm | javascript, html, angular, google-chrome, onbeforeunload | 1,784,904,177 |
se_79965233 | stackoverflow | FRONTEND_DEVELOPMENT | How is audio.duration calculated? | How is audio.duration calculated?
In JS the duration (in seconds) of a file can be calculated using audio.duration . What calculation is performed to receive this value?
Assuming we are using a WAV file. | https://stackoverflow.com/questions/79965233/how-is-audio-duration-calculated | javascript, html, audio | 1,782,126,661 |
se_67746574 | stackoverflow | FRONTEND_DEVELOPMENT | Jest TypeError: Cannot read property of null | Jest TypeError: Cannot read property of null
I have a setup for an external application and start it within a const, then put it in the const allowAppInstance the configuration of the appConfig
export const setupRemote = () => {
if (isRemoteAvailable) {
try {
...
const allowAppInstance = SetupConfig... | https://stackoverflow.com/questions/67746574/jest-typeerror-cannot-read-property-of-null | javascript, reactjs, jestjs, react-testing-library, testing-library | 1,622,245,878 |
se_28035938 | stackoverflow | FRONTEND_DEVELOPMENT | How to insert HTML from a button click? | How to insert HTML from a button click?
I am trying to insert a form when a button is clicked but cannot find a way that does not make me put all of the HTML on one line with back slashes or many ugly lines of code. Something that does not include adding something like jQuery or PHP.
How can I make this that is all on... | https://stackoverflow.com/questions/28035938/how-to-insert-html-from-a-button-click | javascript, html, insert, block | 1,421,714,082 |
se_17299490 | stackoverflow | FRONTEND_DEVELOPMENT | Scrolling not working in the mobile version | Scrolling not working in the mobile version
I'm working on a Javascript project. I created a div with an overflow and I would scroll that div using the mouse only (without the bar). I followed this working example both on the browser and both on the mobile versions. Here is my HTML code:
<div id="wrapper">
<div i... | https://stackoverflow.com/questions/17299490/scrolling-not-working-in-the-mobile-version | javascript, jquery, scroll | 1,372,169,138 |
se_55620549 | stackoverflow | FRONTEND_DEVELOPMENT | How to fix: document.querySelector("").onclick() not working | How to fix: document.querySelector("").onclick() not working
I'm a beginner and i'm trying to do something easy to start with, i just want to be able to click on a div and when i click i will see the id of the div i clicked in the console. I can't figure out what's wrong with the code.
So basically, theres ... | https://stackoverflow.com/questions/55620549/how-to-fix-document-queryselector-onclick-not-working | javascript, selectors-api | 1,554,926,813 |
se_73471347 | stackoverflow | FRONTEND_DEVELOPMENT | Can you search a HTMLElement for a particular class? | Can you search a HTMLElement for a particular class?
Say I have a DOM model that has a collection of elements with class: class_1 and I use document.getElementsByClassName("class_1") to get an HTMLCollection of these elements.
If I take the first element of the collection is it possible to use the .getElementsByClassN... | https://stackoverflow.com/questions/73471347/can-you-search-a-htmlelement-for-a-particular-class | javascript, html, dom | 1,661,336,084 |
se_4257199 | stackoverflow | FRONTEND_DEVELOPMENT | Validation library in JavaScript | Validation library in JavaScript
Is there any validation library in JavaScript? I'm looking for something small, simple and basic.
Example 1
var email = "steve@jobs.com";
if ( validate(email, "email") ) {
// Success
}
Example 2
var email = "steve@jobs.com";
if ( validate(email, {
"length": [0, 12],
"cha... | https://stackoverflow.com/questions/4257199/validation-library-in-javascript | tooling-recommendation, javascript | 1,290,523,725 |
se_51987343 | stackoverflow | FRONTEND_DEVELOPMENT | How to make breadcrumb on Angular 6 | How to make breadcrumb on Angular 6
I try to make breadcrumb with Angular 6. Texts work but links doesn't work correctly.
I want to do this.
Home > Dashboard > Statistical ( It Works.)
Home -> xxx.com (It works.)
Dashborad -> xxx.com/dashboard (It works.)
Statistical -> xxx.com/statistical (It doesn't work.)
So... | https://stackoverflow.com/questions/51987343/how-to-make-breadcrumb-on-angular-6 | javascript, typescript, angular6, breadcrumbs | 1,535,031,994 |
se_65623404 | stackoverflow | FRONTEND_DEVELOPMENT | Error: querySrv ENOTFOUND _mongodb._tcp.dbname.fzofb.mongodb.net | Error: querySrv ENOTFOUND _mongodb._tcp.dbname.fzofb.mongodb.net
I'm learning Node.js and just started working with MongoDB.
I'm making a connection with the MongoDB Cluster I've created
const dbURI = 'mongodb+srv://testuser:test1234@nodelearning.fzofb.mongodb.net/mydb?retryWrites=true&w=majority';
mongoose.connect(db... | https://stackoverflow.com/questions/65623404/error-querysrv-enotfound-mongodb-tcp-dbname-fzofb-mongodb-net | javascript, node.js, mongodb, express, mongoose | 1,610,079,565 |
se_55024871 | stackoverflow | FRONTEND_DEVELOPMENT | Temporary mute command doesn't mute and throws deprecation warning | Temporary mute command doesn't mute and throws deprecation warning
I'm trying to create a temporary mute command for my Discord bot. It creates the role muted, but the user can still write messages even though I've changed the perms.
On top of that, I'm getting the following deprecation warning:
(node:15956) Depr... | https://stackoverflow.com/questions/55024871/temporary-mute-command-doesnt-mute-and-throws-deprecation-warning | javascript, discord, discord.js, bots, user-roles | 1,551,880,752 |
se_62859885 | stackoverflow | FRONTEND_DEVELOPMENT | React - How to append an object as a field to FormData | React - How to append an object as a field to FormData
I am using React, and am trying to send data back to my backend (DRF) using FormData to properly store the data. However, I am facing some issues with appending objects as fields into FormData, as it would be converted to [object, Object]. Is there any way to over... | https://stackoverflow.com/questions/62859885/react-how-to-append-an-object-as-a-field-to-formdata | javascript, reactjs | 1,594,549,385 |
se_3866817 | stackoverflow | FRONTEND_DEVELOPMENT | How to make a jquery datePicker button image unclickable | How to make a jquery datePicker button image unclickable
I have a jquery UI datePicker in my page. I have a text box on which the date is displayed. The code is:
$("#cal").datepicker({
minDate: new Date(),
defaultDate: new Date(),
buttonImage:
'/images/calendar.gif',
constrainInput: false,
... | https://stackoverflow.com/questions/3866817/how-to-make-a-jquery-datepicker-button-image-unclickable | javascript, jquery, jquery-ui, datepicker | 1,286,305,155 |
se_27603177 | stackoverflow | FRONTEND_DEVELOPMENT | Can I download all segments of a m3u8 file as one mp4 file using web ( no ffmpeg ) | Can I download all segments of a m3u8 file as one mp4 file using web ( no ffmpeg )
Is it possible to download all m3u8 segments in one file using javascript or php
I search for this but couldn't find anything; | https://stackoverflow.com/questions/27603177/can-i-download-all-segments-of-a-m3u8-file-as-one-mp4-file-using-web-no-ffmpeg | javascript, php, m3u8 | 1,419,252,992 |
se_41591371 | stackoverflow | FRONTEND_DEVELOPMENT | silent sign in using oidc client with identity server 4 | silent sign in using oidc client with identity server 4
I'm trying to implement silent login in oidc-client to use with Angular 2
How can use oidc client to silently check if user is already logged in (idsvr4) and display the login details.
the following code works, but i need to refresh the page
idsvr 4 client
... | https://stackoverflow.com/questions/41591371/silent-sign-in-using-oidc-client-with-identity-server-4 | javascript, angular, asp.net-core, identityserver4, openid-connect | 1,484,138,816 |
se_70958957 | stackoverflow | FRONTEND_DEVELOPMENT | How to render html and css to pdf with js | How to render html and css to pdf with js
Hello I need to create a custom quote in pdf, I retrieve the data in js and send it in the html and I retrieve the html to send it in pdf except that no library supports css, I found a solution with HTML2CANVAS except it returns an image and I don't want that
document.... | https://stackoverflow.com/questions/70958957/how-to-render-html-and-css-to-pdf-with-js | javascript, ajax, pdf, jspdf, html2canvas | 1,643,818,245 |
se_48451892 | stackoverflow | FRONTEND_DEVELOPMENT | Convert JSON Data into Excel File Download in Javascript | Convert JSON Data into Excel File Download in Javascript
I have a AJAX POST Request fetching data back in form of a JSON Array.
I want to convert this received JSON Data into an Excel File (Not CSV) for download (on a button-click), pls help. The JSON Data might have blank values and missing fields for each JSON row. ... | https://stackoverflow.com/questions/48451892/convert-json-data-into-excel-file-download-in-javascript | javascript, json, ajax, excel, type-conversion | 1,516,914,283 |
se_17696911 | stackoverflow | FRONTEND_DEVELOPMENT | How to get Selected option value from html:options collections | How to get Selected option value from html:options collections
I am having an Drop down in Struts. How to get selected value from <html:options> tag in JavaScript?
<html:select property="temp_Id" >
<html:options collection="listmap" property="key"/>
</html:select> | https://stackoverflow.com/questions/17696911/how-to-get-selected-option-value-from-htmloptions-collections | javascript, struts | 1,374,055,667 |
se_79985538 | stackoverflow | FRONTEND_DEVELOPMENT | Getting this error: Uncaught Error: Objects are not valid as a React child (found: object with keys | Getting this error: Uncaught Error: Objects are not valid as a React child (found: object with keys
I'm trying to make a simple cart and I keep getting the error above in addToCart function.
My obj looks like this:
export const menu = [
{
id: 1,
name: "Opção 1",
opts: [
{ id: 1, name: "opção-1", ti... | https://stackoverflow.com/questions/79985538/getting-this-error-uncaught-error-objects-are-not-valid-as-a-react-child-foun | javascript, reactjs, jsx | 1,784,894,422 |
se_79984376 | stackoverflow | FRONTEND_DEVELOPMENT | Tree Shaking / Minifying Firebase using esbuild | Tree Shaking / Minifying Firebase using esbuild
I'm building a web app that uses Firebase Auth. I don't use any other Firebase features.
The current version of Firebase is over 600kb. The Firebase Auth package on NPM states "This package is not intended for direct usage, and should only be used via the officially supp... | https://stackoverflow.com/questions/79984376/tree-shaking-minifying-firebase-using-esbuild | javascript, firebase, esbuild, tree-shaking | 1,784,849,310 |
se_31353213 | stackoverflow | FRONTEND_DEVELOPMENT | Does JavaScript support array/list comprehensions like Python? | Does JavaScript support array/list comprehensions like Python?
I'm trying to get an array from each individual integer from the string. In Python, I would do:
string = '1234-5'
forbidden = '-'
print([int(i) for i in str(string) if i not in forbidden])
Does JavaScript have something similar? | https://stackoverflow.com/questions/31353213/does-javascript-support-array-list-comprehensions-like-python | javascript | 1,436,586,569 |
se_43870318 | stackoverflow | FRONTEND_DEVELOPMENT | Add event listener on element focus | Add event listener on element focus
I have a search box input that opens when an icon is clicked on. I would like to give the input focus when the icon is clicked and call the function addLabel() that adds a label as placeholder text until a “onkeydown” event is fired, at which time it should call the function removeL... | https://stackoverflow.com/questions/43870318/add-event-listener-on-element-focus | javascript | 1,494,334,199 |
se_9116667 | stackoverflow | FRONTEND_DEVELOPMENT | jquery var equals var doesnt work | jquery var equals var doesnt work
I feel kinda stupid, I tried to find an answer on here but couldn't find the right thing. Hope someone can help me.
I'm simply trying to match two different variables, so if they are the same an item should receive a new class:
var recentposttitle = $('#catblogoutput h2.post-title'... | https://stackoverflow.com/questions/9116667/jquery-var-equals-var-doesnt-work | javascript, jquery | 1,328,202,613 |
se_79985539 | stackoverflow | FRONTEND_DEVELOPMENT | lit removing conditional checked attribute from radio | lit removing conditional checked attribute from radio
I have the following code which I am using to try check my radio button:
return html`<input type="radio" name="LogType" class="form__control form__control--radio" value="${Constants.LogTypes.Member}"${filters.logType === Constants.LogTypes.Member ? ' checked' : '... | https://stackoverflow.com/questions/79985539/lit-removing-conditional-checked-attribute-from-radio | javascript, vite, lit | 1,784,894,545 |
se_26296611 | stackoverflow | FRONTEND_DEVELOPMENT | Function to check if any of three values equals one of the other two | Function to check if any of three values equals one of the other two
I have three dynamic variable s.
My below code is working to check if all are equal:
if ((a == b) && (b == c)) {
// they're all equal ...
}
I want to create a function passing three variables to check if any one variable is equal to another varia... | https://stackoverflow.com/questions/26296611/function-to-check-if-any-of-three-values-equals-one-of-the-other-two | javascript, function, equality | 1,412,934,712 |
se_79982037 | stackoverflow | FRONTEND_DEVELOPMENT | How can I make my CSS adaptive to conditional code in React | How can I make my CSS adaptive to conditional code in React
I am currently building a weather app with Vite and React.
At the moment, the background photo is just a sunny clear sky, and the ad is styled in white and blue around that.
What I want to do is to have, depending on the weather, a few different background im... | https://stackoverflow.com/questions/79982037/how-can-i-make-my-css-adaptive-to-conditional-code-in-react | best-practices, javascript, css, jsx | 1,784,478,262 |
se_12322716 | stackoverflow | FRONTEND_DEVELOPMENT | window.open auto resize height and width according to dynamic content | window.open auto resize height and width according to dynamic content
I'm passing the div value to a window.open popup that should resize height according to content, however when i used auto it just opens a new window. I tried this code but wouldn't work
function openPopup() {
var divText = documen... | https://stackoverflow.com/questions/12322716/window-open-auto-resize-height-and-width-according-to-dynamic-content | javascript, popup | 1,347,038,735 |
se_41058569 | stackoverflow | FRONTEND_DEVELOPMENT | What is the difference between const and const {} in JavaScript? | What is the difference between const and const {} in JavaScript?
When I study Electron, I found two ways of getting a BrowserWindow object.
const {BrowserWindow} = require('electron')
and
const electron = require('electron')
const BrowserWindow = electron.BrowserWindow
What is the difference between const and const ... | https://stackoverflow.com/questions/41058569/what-is-the-difference-between-const-and-const-in-javascript | javascript, node.js, destructuring | 1,481,280,230 |
se_79980988 | stackoverflow | FRONTEND_DEVELOPMENT | How to implement partial function in JavaScript - three-way sum partial application | How to implement partial function in JavaScript - three-way sum partial application
The exercise that I am working through is a 3-way sum that is supposed to give the same answers for the following:
partialThreeSum()(a, b, c) === partialThreeSum(a, b)(c) === partialThreeSum(a, b, c) === partialThreeSum(a)(b, c)
'use ... | https://stackoverflow.com/questions/79980988/how-to-implement-partial-function-in-javascript-three-way-sum-partial-applicat | javascript, partial-application | 1,784,119,523 |
se_40851944 | stackoverflow | FRONTEND_DEVELOPMENT | Bootbox alert not working | Bootbox alert not working
trying to use Bootbox confirmation but i start testing it with bootbox.alert(), but it's not working.
I confirm that i have bootstrab.css, bootstrab.js, jquery.js and -bootbox.min.js included in the web header:
<link href="{% static "css/patients.css" %}" rel="stylesheet">
<link href="{% ... | https://stackoverflow.com/questions/40851944/bootbox-alert-not-working | javascript, jquery, twitter-bootstrap, bootbox | 1,480,361,093 |
se_78729765 | stackoverflow | FRONTEND_DEVELOPMENT | OneTrust: Check if OneTrust is used in the project and wait for it to have fully finished loading | OneTrust: Check if OneTrust is used in the project and wait for it to have fully finished loading
I am having difficulty adjusting several of my TypeScript files to load depending on OneTrust, whether it's available or not on pageload, and if available, only loading certain TypeScript scripts when specific cookies hav... | https://stackoverflow.com/questions/78729765/onetrust-check-if-onetrust-is-used-in-the-project-and-wait-for-it-to-have-fully | javascript, typescript, cookies, one-trust | 1,720,604,600 |
se_79804885 | stackoverflow | FRONTEND_DEVELOPMENT | How Can I Use String of Coordinates Within a Mapbox Feature? | How Can I Use String of Coordinates Within a Mapbox Feature?
I am trying to fetch a comma separated list of coordinates from a database and then show them on a Mapbox GL JS map.
By using the following FeatureCollection, I am able to show a Line between coordinates:
const route = {
'type': 'FeatureCollectio... | https://stackoverflow.com/questions/79804885/how-can-i-use-string-of-coordinates-within-a-mapbox-feature | javascript, arrays, geojson, mapbox-gl-js | 1,761,835,123 |
se_66542944 | stackoverflow | FRONTEND_DEVELOPMENT | SVG Linear Gradient SVG Background | SVG Linear Gradient SVG Background
I am trying to use an SVG, which will be dynamically created from JavaScript, as the background image on another SVG. This works when the fill color of the object is a solid color, but not when I try to use a linear gradient. Run the code to see an example. Please help figure how ... | https://stackoverflow.com/questions/66542944/svg-linear-gradient-svg-background | javascript, svg, background, linear-gradients | 1,615,276,933 |
se_13870853 | stackoverflow | FRONTEND_DEVELOPMENT | How to upload files in Web Workers without using FormData | How to upload files in Web Workers without using FormData
How can I retrieve $_FILES in PHP when I upload through a Web Worker? When I tried to use FormData, I got the following error:
Error: FormData is not defined
This is my code:
function uploadFile(blobFile, fileName, filePart, totalChunks) {
//if I try... | https://stackoverflow.com/questions/13870853/how-to-upload-files-in-web-workers-without-using-formdata | php, javascript, html, xmlhttprequest, web-worker | 1,355,444,346 |
se_5883366 | stackoverflow | FRONTEND_DEVELOPMENT | Auto populate based on dropdown selected, need help | Auto populate based on dropdown selected, need help
How can I auto populate the data from db by dropdown selected?
and my dropdown result already appear as well, the code as following:
<?php
echo '<tr>
<td>'.$customer.'</td>
<td><select name="customer_id">';
foreach ($customers as $customer) {
... | https://stackoverflow.com/questions/5883366/auto-populate-based-on-dropdown-selected-need-help | javascript, php, codeigniter, drop-down-menu, populate | 1,304,512,119 |
se_75259256 | stackoverflow | FRONTEND_DEVELOPMENT | Cannot read properties of undefined (reading 'controlType') rective form | Cannot read properties of undefined (reading 'controlType') rective form
I need to put a check box in a rective form so I do this IN MY HMTL
<form [formGroup]="searchForm">
<mat-form-field appearance="legacy" class="col-sm-12 col-lg-6 w-100 p-3">
<mat-checkbox class="fo... | https://stackoverflow.com/questions/75259256/cannot-read-properties-of-undefined-reading-controltype-rective-form | javascript, angular, typescript, angular-reactive-forms | 1,674,828,693 |
se_63382309 | stackoverflow | FRONTEND_DEVELOPMENT | How can I trigger opening a select form's options on click of another button in react? I have tried using a ref but its not working | How can I trigger opening a select form's options on click of another button in react? I have tried using a ref but its not working
Here is my select form:
<form ref={skuSelectRef}>
<label htmlFor="size" />
<select
id="size"
value={selectedSKU}
onChange={() => changeSKU(size.options... | https://stackoverflow.com/questions/63382309/how-can-i-trigger-opening-a-select-forms-options-on-click-of-another-button-in | javascript, reactjs, react-ref, react-forms | 1,597,255,273 |
se_68107197 | stackoverflow | FRONTEND_DEVELOPMENT | Load images from folder into HTML page for display in gallery/album automatically as they are added to folder | Load images from folder into HTML page for display in gallery/album automatically as they are added to folder
I have recently found and purchased a beautiful HTML5 Ajax template that includes a gallery section in the main content section of the page that looks like this:
<!-- Main Content -->
<div class="ajax-insert... | https://stackoverflow.com/questions/68107197/load-images-from-folder-into-html-page-for-display-in-gallery-album-automaticall | javascript, php, html, automation, gallery | 1,624,483,655 |
se_79984102 | stackoverflow | FRONTEND_DEVELOPMENT | dynamic links with expo React Native useAudioPlayer | dynamic links with expo React Native useAudioPlayer
I am trying to play audio dynamically from a list with more than 1000 different audio files (only a few seconds each), but I keep getting the error "invalid call" when I try to load my audio file. I now know that, it is because I am using dynamic links for it.
Sugges... | https://stackoverflow.com/questions/79984102/dynamic-links-with-expo-react-native-useaudioplayer | javascript, react-native, audio, expo | 1,784,792,996 |
se_18591268 | stackoverflow | FRONTEND_DEVELOPMENT | Dropdown dependent on other dropdown in php | Dropdown dependent on other dropdown in php
Hey friends I am trying to make two dropdown boxes. The first one is sensor type select. The second one is sensor names and it should be dependent on the first one .I am using MVC architecture.Here is my code I am using. At the viewpage.php I have:
<table>
<td>
... | https://stackoverflow.com/questions/18591268/dropdown-dependent-on-other-dropdown-in-php | javascript, php, codeigniter, model-view-controller, html-select | 1,378,208,116 |
se_68120594 | stackoverflow | FRONTEND_DEVELOPMENT | Why I get net::ERR_CONNECTION_RESET message? | Why I get net::ERR_CONNECTION_RESET message?
I am working on a ASP.NET Web Api, and I write a little code to test one of my
api controllers. But when I call the method the chrome sends this:
http://localhost:44333/api/GradesReader/getTest/ net::ERR_CONNECTION_RESET jquery.min.js:2
Here is my API project Startup.cs:
pu... | https://stackoverflow.com/questions/68120594/why-i-get-neterr-connection-reset-message | javascript, html, ajax, asp.net-core, connection | 1,624,557,248 |
se_19412014 | stackoverflow | FRONTEND_DEVELOPMENT | document.querySelectorAll with the pseudo-class :hover not working in FF or IE | document.querySelectorAll with the pseudo-class :hover not working in FF or IE
I want to get the element under the cursor. When I use document.querySelectorAll(":hover");, it works well in Chrome but it doesn't work in Firefox or IE.
It might be because I use it inside a eventListener in a Google maps. Here how I use... | https://stackoverflow.com/questions/19412014/document-queryselectorall-with-the-pseudo-class-hover-not-working-in-ff-or-ie | javascript, cross-browser, pseudo-class, selectors-api | 1,381,951,533 |
se_79984245 | stackoverflow | FRONTEND_DEVELOPMENT | React Native Nested FlatList: Child FlatList viewability callbacks are triggered before the child is actually visible | React Native Nested FlatList: Child FlatList viewability callbacks are triggered before the child is actually visible
I'm using a nested FlatList setup where the outer FlatList renders a vertical list of sections, and each section contains a horizontal FlatList. Both the parent and child lists use onViewableItemsChang... | https://stackoverflow.com/questions/79984245/react-native-nested-flatlist-child-flatlist-viewability-callbacks-are-triggered | javascript, react-native, performance, react-native-flatlist | 1,784,817,062 |
se_18775269 | stackoverflow | FRONTEND_DEVELOPMENT | Uncaught TypeError: Cannot read property 'Constructor' of undefined | Uncaught TypeError: Cannot read property 'Constructor' of undefined
I am getting this and a couple other weird error messages on my main ASP MVC 3 layout page.
I am using the following scripts
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Con... | https://stackoverflow.com/questions/18775269/uncaught-typeerror-cannot-read-property-constructor-of-undefined | javascript, jquery, asp.net-mvc-3, jquery-ui, typeahead.js | 1,379,024,643 |
se_29819806 | stackoverflow | FRONTEND_DEVELOPMENT | CORS error in AngularJS | CORS error in AngularJS
When I am using Fiddler or any browser side HTTP client extension like Advanced Rest Client, I can get data from a API easily.
But when I try to use the same API from Angular JS, CORS issue appear immediately. I have tried with following lines to solve the problem in AngularJS, But unfortunate... | https://stackoverflow.com/questions/29819806/cors-error-in-angularjs | javascript, angularjs, cross-domain, cross-platform, cors | 1,429,782,667 |
se_48091103 | stackoverflow | FRONTEND_DEVELOPMENT | external javascript/HTML not working...very basic basic/beginner | external javascript/HTML not working...very basic basic/beginner
HTML FILE
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p id="hi">HI</p>
<br>
<input type="button" onclick="onClick1()" value ="CLICK ME">
<script src="myfunc.js"></script>
</body>
</html>
Script
<script>
function onClick1(){
document.get... | https://stackoverflow.com/questions/48091103/external-javascript-html-not-working-very-basic-basic-beginner | javascript, html | 1,515,053,288 |
se_55127627 | stackoverflow | FRONTEND_DEVELOPMENT | How to make an ellipse in react-leaflet? | How to make an ellipse in react-leaflet?
I want to make an ellipse in react-leaflet.
And I have checked the question
react-leaflet with Leaflet ellipse plugin not rendering
When I make a file like "ellipse.js" and paste the code in the file, it seems doesn't work.
Can anybody help to take a look at this? | https://stackoverflow.com/questions/55127627/how-to-make-an-ellipse-in-react-leaflet | javascript, leaflet, react-leaflet | 1,552,412,477 |
se_49089011 | stackoverflow | FRONTEND_DEVELOPMENT | react-leaflet with Leaflet ellipse plugin not rendering | react-leaflet with Leaflet ellipse plugin not rendering
I am trying to draw an ellipse on a map made using react-leaflet, which has built-in support for circles and rectangles.
To achieve this, I am using code to produce an ellipse in (non-react) leaflet from here, that I have adapted and pasted below:
import * as ... | https://stackoverflow.com/questions/49089011/react-leaflet-with-leaflet-ellipse-plugin-not-rendering | javascript, leaflet, react-leaflet | 1,520,109,716 |
se_78082889 | stackoverflow | FRONTEND_DEVELOPMENT | What does # mean (hash sign character, sharp) in typescript/javascript as a prefix for variable name? | What does # mean (hash sign character, sharp) in typescript/javascript as a prefix for variable name?
What does # mean as a prefix for Typescript or Javascript class attribute name?
export class MyFacade {
#state: MyState = {
isLoading: true
};
readonly #store = new BehaviorSubject<MyState>(this.#state);
} | https://stackoverflow.com/questions/78082889/what-does-mean-hash-sign-character-sharp-in-typescript-javascript-as-a-pref | javascript, typescript | 1,709,223,721 |
se_79983625 | stackoverflow | FRONTEND_DEVELOPMENT | How to monkey patch Leaflet library? | How to monkey patch Leaflet library?
I'm trying to use the Ellipse plugin for Leaflet. The way Leaflet plugins, or at least this one, add functionality to Leaflet is by monkey patching it.
I have a demo repo that works with the dev server but fails when I do a build. The demo was initialized with npm create vite@lates... | https://stackoverflow.com/questions/79983625/how-to-monkey-patch-leaflet-library | javascript, leaflet, vite, monkeypatching | 1,784,655,441 |
se_75804042 | stackoverflow | FRONTEND_DEVELOPMENT | What is dispatch(..).unwrap() in redux-toolkit? | What is dispatch(..).unwrap() in redux-toolkit?
From a redux tutorial:
const onSavePostClicked = async () => {
if (canSave) {
try {
setAddRequestStatus('pending')
await dispatch(addNewPost({ title, content, user: userId }))
.unwrap()
} catch (err) {
console.error('Failed to save th... | https://stackoverflow.com/questions/75804042/what-is-dispatch-unwrap-in-redux-toolkit | javascript, redux, redux-toolkit | 1,679,417,062 |
se_46091344 | stackoverflow | FRONTEND_DEVELOPMENT | How to send data to spring boot method using FETCH API | How to send data to spring boot method using FETCH API
I am exploring fetch api and want to send some for date to a spring boot method, but it is throwing 400 error
JS code
let fetchConfig = {
method : params.method || 'GET',
body : params.body
};
return fetch(_url,fetchConfig... | https://stackoverflow.com/questions/46091344/how-to-send-data-to-spring-boot-method-using-fetch-api | javascript, ajax, spring, spring-boot | 1,504,772,257 |
se_79983930 | stackoverflow | FRONTEND_DEVELOPMENT | How could I scroll vertically past an item that only accepts horizontal scrolling? | How could I scroll vertically past an item that only accepts horizontal scrolling?
I am sorry if the title sounds confusing (because it is), but I cannot find a way past this problem. I made some divs that are supposed to scroll horizontally on a list, like the code snippet that will be included at the end of the post... | https://stackoverflow.com/questions/79983930/how-could-i-scroll-vertically-past-an-item-that-only-accepts-horizontal-scrollin | javascript, html, css | 1,784,740,707 |
se_29097582 | stackoverflow | FRONTEND_DEVELOPMENT | How to use ng-click in ng-repeat? | How to use ng-click in ng-repeat?
I am new to Angular JS and I am trying to use ng-repeat to generate multiple row in my table, and in each row there should be a button to trigger a function with different parameter
<div ng-controller="testing">
<table>
<thead>
<tr>
<th>col ... | https://stackoverflow.com/questions/29097582/how-to-use-ng-click-in-ng-repeat | javascript, angularjs, angularjs-scope, angularjs-ng-repeat | 1,426,590,592 |
se_68524359 | stackoverflow | FRONTEND_DEVELOPMENT | How to programmatically generate code to display in jsfiddle.net? | How to programmatically generate code to display in jsfiddle.net?
My goal is to generate dynamic code based on the user input, and then have that code programmatically put to jsfiddle so the user can preview the generated code as well as the running result.
I've tried using the jsfiddler library which utilizes phantom... | https://stackoverflow.com/questions/68524359/how-to-programmatically-generate-code-to-display-in-jsfiddle-net | javascript, code-generation, jsfiddle | 1,627,272,075 |
se_17953299 | stackoverflow | FRONTEND_DEVELOPMENT | Web service call through JS, DataType Json | Web service call through JS, DataType Json
I am trying to call web service through a JS but anyhow it doesnt get call.
I am trying to make sum of 2 number.
Page contains of 3 textbox and it has it text set hard codded
as
:
<form id="form1" runat="server">
<div>
<asp:TextBox ID="Text1" Text="5" runat="serv... | https://stackoverflow.com/questions/17953299/web-service-call-through-js-datatype-json | javascript, jquery, asp.net, json, web-services | 1,375,204,555 |
se_54414208 | stackoverflow | FRONTEND_DEVELOPMENT | Shopify Custom Tag Filtering | Shopify Custom Tag Filtering
I am using the debut theme and would like to add in custom filtering names, so I can filter by Colour, Type etc of my product, with options under each filter. Colour - then have blue, red, green, yellow etc. I have looked around for the shopify code and when I get to the Javascript part it... | https://stackoverflow.com/questions/54414208/shopify-custom-tag-filtering | javascript, shopify, liquid | 1,548,738,672 |
se_71443749 | stackoverflow | FRONTEND_DEVELOPMENT | react-table with filter and select column in the same table | react-table with filter and select column in the same table
I'm trying to use react-table 7.5 to have a table with search bar and select by rows features.
I have the code of both search and select row separately, but I can't make it work together.
This is my Table component:
const Table = (...) => {
const [data, se... | https://stackoverflow.com/questions/71443749/react-table-with-filter-and-select-column-in-the-same-table | javascript, reactjs, electron, react-table, react-tabs | 1,647,026,934 |
se_68250951 | stackoverflow | FRONTEND_DEVELOPMENT | React material ui select all checkbox | React material ui select all checkbox
I need to make that when selecting checkbox Select All, the rest of the checkboxes from the list are checked, and each checkbox can be selected separately. But when select one of the checkboxes does not checked the previous checkbox.
sandbox
const options = [ 'Selected Item 1', '... | https://stackoverflow.com/questions/68250951/react-material-ui-select-all-checkbox | javascript, reactjs | 1,625,461,783 |
se_64926653 | stackoverflow | FRONTEND_DEVELOPMENT | Not allowed to launch '<URL>' because a user gesture is required | Not allowed to launch '<URL>' because a user gesture is required
I have problem part code.
I am developing an extension.
I am trying to open link using my app.
var tab;
const context = chrome || browser;
if (tab.url.includes("youtube.com/watch?")) {
context.tabs.update(tab.id, { url: "nameOfMyProg... | https://stackoverflow.com/questions/64926653/not-allowed-to-launch-url-because-a-user-gesture-is-required | javascript, opera, browser-extension | 1,605,863,344 |
se_4842435 | stackoverflow | FRONTEND_DEVELOPMENT | Adding Dynamic Field to Forms (Chronoform) | Adding Dynamic Field to Forms (Chronoform)
I am using the popular ChoronoForm plugin for Joomla. I have created a form which contain dynamic fields. A javascript function is used to add multiple "items". A User clicks on the button "Add another item" and the item field is redisplayed for them to insert additional "it... | https://stackoverflow.com/questions/4842435/adding-dynamic-field-to-forms-chronoform | php, javascript, joomla | 1,296,384,103 |
se_79983949 | stackoverflow | FRONTEND_DEVELOPMENT | How to see service worker errors in Chromium debugger? | How to see service worker errors in Chromium debugger?
I have followed the instructions in the MDN page Using Service Workers.
My code is the same as on that page except, of course, for the specified array of resources to cache.
In the Chromium debugger, when I choose Application > Service workers, I see
The white cr... | https://stackoverflow.com/questions/79983949/how-to-see-service-worker-errors-in-chromium-debugger | javascript, service-worker, chromium | 1,784,745,177 |
se_74445073 | stackoverflow | FRONTEND_DEVELOPMENT | C1005: Closure Compiler Warning (Parse error. name not recognized due to syntax error.) -- compression-input: | C1005: Closure Compiler Warning (Parse error. name not recognized due to syntax error.) -- compression-input:
[WRN] C1005: Closure Compiler Warning (Parse error. name not recognized due to syntax error.)
CMD 7.6.0.87
after update from CMD 7.4.0.39
... | https://stackoverflow.com/questions/74445073/c1005-closure-compiler-warning-parse-error-name-not-recognized-due-to-syntax | javascript, extjs, sencha-architect, sencha-cmd | 1,668,512,638 |
se_58161615 | stackoverflow | FRONTEND_DEVELOPMENT | How to make chat like UI with chat bubbles in React JS | How to make chat like UI with chat bubbles in React JS
I have some JSON data in dummyData. I am not sure how can I place the chat bubbles on left and right according to the direction. I am using Material UI and context API. Image for the reference. I don't want to use any library other than material UI.
Currently, ... | https://stackoverflow.com/questions/58161615/how-to-make-chat-like-ui-with-chat-bubbles-in-react-js | javascript, css, reactjs, material-ui, jsx | 1,569,818,828 |
se_25580571 | stackoverflow | FRONTEND_DEVELOPMENT | $(window).scroll function is not working on mobile | $(window).scroll function is not working on mobile
I am using a $(window).scroll event triggered function on my website, all is well only that it doesn't work on mobile devices.
This is the code I am using:
$(window).scroll(function(){
var wh = $(window).height();
var scrolledFromtop = $(window).scrollTop()... | https://stackoverflow.com/questions/25580571/window-scroll-function-is-not-working-on-mobile | javascript, jquery, scroll | 1,409,387,788 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.