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

Get current page URL in href

Currently working on a share button for Vk however having a dynamic site, I need the button to automatically use the correct page URL.This is the code snippet they offer for a static site, how could I...

View Article


TypeScript - One-line conditional (":" expected, expression expected)

Converting an Express JS server to TS, and previously functioning JS conditionals are now throwing weird errors.Example: if (req!.body?.userObj) req.session!.userObj = req.body!.userObjRunning with...

View Article


My page not shown anything (*white screen")when I click to new window in laravel

I try to open new window when the button clicked but when the new window opened it shows nothing ....It supposed to show my layout that I made from blade view file ... when i check console nothing...

View Article

Output Multiple Li's with Axios Get Api [duplicate]

I am trying to output an ordered list using axios get and update that call every 60 seconds. However, I am unable to figure out how to output more than one item using a template literal. Only the last...

View Article

How to get the colours I want with Leaflet.AwesomeMarkers?

I'm trying to have the icon colour using awesome markers change depending on individual properties within each marker details, however they all are red instead of some being red and some being green.Is...

View Article


discord.js getting each list for users for reactions

ok so I have been wroking on this for a while not I am making a vote bot and have gotten stuck on this part of the code I am its meant to show a list of each user that has clicked on a reaction in...

View Article

How to store cron time expression on MySQL

I'm using this cron library.And i want to store this expression to MySQL. Any suggestions on best practice to store this library cron time expression in a DB ? For examples.# At 10 minutes * 10 * * * *...

View Article

Radio button is showing div on selection but not hiding after selecting a...

I have three divs I want to show based on a radio selection. I've written the below script, but the problem I've run into is the div doesn't hide after a different radio button is selected. I'm using...

View Article


Javascript bring a tab to the front

I am writing a Javascript which runs in the browser using Tampermonkey. The logic in the script is as follows. 1. Do some checks. 2. If a certain condition is met, then trigger an alert box in the...

View Article


JSON add value on click

I'm trying to make a site of restaurant and now doing some table reservation. So far have one problem: I have a JSON of tables and want to add date (day/time) to it, when table was clicked. The...

View Article

Visual Code keyboard shortcut - jump past brace

I have searched the Visual Code documentation but cannot find the answer.When typing in a Javascript file and tapping open brace { .. Visual Code inserts the closing brace }Is there a shortcut key to...

View Article

Image may be NSFW.
Clik here to view.

HTML5 Canvas ~ Smooth Rapid Scaling with Drawn Elements, Not Images ~ How to?

There are some posts on scaling images (e.g., HTML5 Canvas Image Scaling Issue); however, I need to gain insight on rapidly scaling hundreds of simple drawn elements (squares, lines, arcs, etc.) in a...

View Article

Typescript array function params type not been checked (using react-select)

We defined event type, but when the real value different from what we defined, it's not been caught. Am I missing some understanding with Typescript? react-select was used as belowhandleChangeSelection...

View Article


Is it okay to do axios call in setInterval?

I am aware that it might have some kind of ram leak or something for constantly calling on API for status. I am going to do a live status update when you login into third party application. I have all...

View Article

Proper Password Management with React/Redux Reducer

I have a general industry question that I cannot seem to find any detailed information on. When utilizing React and Redux to create a user authentication system, is it safe from a security standpoint...

View Article


How can I track Google Analytics Across Multiple Domains in one account google?

I have installed Google Analytics on my website. The website is www.myhospitals.com. When the user clicks button A, it will track on Google Analytics. When the user clicks button B, it will also track...

View Article

Remotely/Indirectly drag an element (Split.js)?

I am trying to remotely drag a Split.js gutter-element, via interaction with a different element.Essentially, I would like to drag the gutter (and thereby resize the elements which are split by the...

View Article


Remove an array from an array of arrays

I'm totally new to Javascript. I'm working with data from a business database and I want to remove an array from array of arrays.I have this array of array:var results = [ [#null, null],...

View Article

How to use D3 to display data

I'm doing an vanilla javascript project for data visualization, I want to display various company logos on the main screen (fill out the screen in random location). Do I have to use D3? How to use D3...

View Article

how to add generated report data to .xlsx format file

I have done with getting .xlsx format to my export button but i couldn't get the generated data to the code, i am using a function generated_temp_tbl, how to include this one my .xlsx code part, i have...

View Article
Browsing all 139953 articles
Browse latest View live


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