Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 139833 articles
Browse latest View live

Dynamic build a query in Eloquent as user fills Checkboxes, Laravel Blade

So, basicaly, i'm doing a method that users fills a dynamic list of checkboxes, to use it as options so it filters a datatable and consequently export it as CSV.In blade view i'm filling a JSON with 2...

View Article


Javascript chaining promise seemingly change execution order

In the following codelet urls = [ 'https://api.github.com/users/iliakan', ]; //let requests = urls.map((url) => axios.get(url).then(() => { console.log('Prout')})); let requests = urls.map((url)...

View Article


How to add a drop function on canvas element?

I'm trying to drag round color div to the canvas component i.e venn diagram. I want to drop the circles to the left and right circle in the venn diagram which is inside the canvas. I have added drag...

View Article

Primefaces SelectManyMenu with Filter: How to select all displayed Items with JS

I have SelectManyMenu (primeFaces 6.1) and "Select All" and "Deselect All" buttons, which selects/deselects all items in the selection list.I modified the SelectManyMenu with a filter,but my "Select...

View Article

React render, change radio button programmatically

I was creating a Dropdown component for React. Inside the dropdown, I have a form of radio group buttons.<DropdownButton /> <DropdownForm /> In the DropdownButton, I have an state to know...

View Article


capture click event on iframe

Im trying to do something like<div onClick={()=>{ console.log(captured)}}> <iframe /> </div> Is not working. Looks like iframe not allow to do that.Any suggestion?

View Article

Is there a name for this construct and has it always been supported?

I am using this JavaScript construct:new Function('return true;')(); I wonder if there is a name for it (calling the newly created Function object directly).I checked the precedence and it's ok.I also...

View Article

HTTP-request, working in Excel VBA, not working in javascript/html

I'm trying to get opendata from a website in to my own website. I'm using this code (got it from a w3schools example) and tried to combine that with my working code in Excel/VBA. But somehow I can't...

View Article


Chart.js panning labels in chart with zoom plugin

I'm trying to get my way into panning and zooming in Chart.js. I'm working on a project which involves getting data from a database from sensors and live updating the Chart when new info comes in. I...

View Article


Handling data from Async requests in React JS

I have a class component, where I am getting data from async request in its local props. This data is in form of array, which I loop through and display some list elements. For the first time component...

View Article

Add different images when mouse moving in jquery

I'm trying to make a jquery code where you can show different images (1-3 different images) when you move the mouse around. The images will be right beside the cursor, and they will only appear 1-3,...

View Article

Electron, IPC communication seems to not be working

I've followed pretty much everything I could find on Electron, and I cannot seem to add an event listener to a button in my index.html.Upon my button being clicked, I simply want "something" to print...

View Article

How do I freeze on the last line of text and not repeat with this Typewriter...

Currently the animation begins to type out each line, deletes then moves on typing the next. Trying to freeze the animation after typing out the last line "Text Line 3" and stay as that. Which part of...

View Article


How can I make the rest of my JavaScript Program wait on my jQuery animation

I have a simple application where a user clicks on an area, and the counter moves a number of steps. I am using an console-like output window to alert the user of any changes. For moving the counter, I...

View Article

Pass a string through Discord OAuth?

I was wondering if it was possible to use Discord OAuth (identify scope) while also passing through important supplemental information to the redirect URL.site with [important variable] > oauth page...

View Article


Merging array of objects and string state to new object

I have an array of objects like this:(2) [{…}, {…}] 0: {type: "", label: "first name", title: "", name: "sa", uniquekey: "", …} 1: {type: "text", label: "first name", title: "", name: "asdasd",...

View Article

Styling CSS of Programmatically created classes

Another component in my site creates span's with the class HighlightCOLOR where COLOR is any html color.I then need to style the css the make the span that color. I can do this obviously by creating...

View Article


Image may be NSFW.
Clik here to view.

add css in script, is it possible?

I have this script that a fellow here on the site helped me fix.This is the first part of the code where you can choose and separate blog articles by tag.Would it be possible to add CSS in this first...

View Article

How to subtract one new Date with another?

I need a subtraction between dates:new Date() - new Date();Or to do that with string dates:finishTime: "2019-10-29T01:30:35.423" startTime: "2019-10-23T09:17:17.423"How to do that properly in JS?I have...

View Article

CSS and JS is not loading in subdomain

I am trying to load CSS and JS files from a subdomain.The url of my subdomain is https://example.example.comI an trying to load the stylesheets with the following statement:<link rel="stylesheet"...

View Article
Browsing all 139833 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>