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

html and Svg to Canvas javascript

<div id="Contents"> <div style="float:left;margin-left:10px;"> <svg></svg> </div> <div style="float:left;margin-left:10px;"> <svg></svg> </div>...

View Article


Where should i put async and await?

Where should i put async and await? result is work2 work1app.post('/upload', (req, res) => { const txtupload = multer().any() let validate = true txtupload(req,res, (err)=>{ console.log('work1')...

View Article


BeatifulSoup and

I'm using BeautifulSoup to extract some info on OTC from a site, just to learn how to do it, but I'm facing a problem. When I looked up the site I thought it was just getting the right tags with the...

View Article

Wait until two different users click a button and then go to a page

Hi working on a website project where I want to wait until two separate users click a button and then have them both go to the same page. These users will be each in their own browser window. I have...

View Article

Madeleine.js for 3D model slicing

I am trying to create a 3D printing cost calculator website, that takes some input data and an stl file and renders the model + outputs costs associated with the printing. The rendering is made with...

View Article


Cannot click on a hidden element, which becomes visible only after hovering...

There are 10 items. I need to click on the hidden element (item-icon) in the item_9. The hidden element appear after hovering on him. I have the same situation and the same code operate as expected....

View Article

Using tag with a sticky navbar takes me to the wrong place

So I have a <Navbar/> custom Component in React with the following CSS.navbar-container { background-color: #111d5e; display: flex; position: sticky; top: 0; height: 10vh; width: 100%; } And I...

View Article

Get innerHTML of svg-tag result in undefined in IE

I'm having some trouble getting the html content of a svg-tag, with javascript in Internet Explorer.My javascript code is as follow:console.log($('.icon')[0].innerHTML); and my tag in my html...

View Article


In React/Redux, how to calculate a Total price for a shopping cart

I've searched for solutions on Google and SO but still cannot find an answer. They all stop at "Add item to cart" or "increase/decrease quantity" but never on calculating the Total, which is...

View Article


TypeError: Cannot read property 'database' of undefined

I have two files-config.js and index.js The code I have written is as follows-config.js-module.exports={ port:process.env.PORT || 8081, db:{ database:process.env.DB_NAME|| 'tabtracker',...

View Article

How to create label and input field with unique id and unique name...

As this contains textbox, dropdown field and on selecting item from dropdown dynamic label and input field. When I select multiple options from this dropdown that values are shown inside this textbox...

View Article

Find the min/max element of an Array in JavaScript

How can I easily obtain the min or max element of a JavaScript Array?Example Psuedocode:let array = [100, 0, 50] array.min() //=> 0 array.max() //=> 100

View Article

How to call React Native custom alert as a function?

I'm developing a React Native app. I created my own custom alert as a component using modal. When I use it, I always need to add my alert component in my render() function.Is there any way to use the...

View Article


onKeyPress Vs. onKeyUp and onKeyDown

What is the difference between these three events? Upon Googling I found thatThe KeyDown event is triggered when the user presses a Key.The KeyUp event is triggered when the user releases a Key.The...

View Article

does the onload element have a limited amount of function call

guys i don't know what is happening here<body onload="plusSlides0(-1);plusSlides1(-1);plusSlides2(-1);plusSlides3(-1);change();"> the last function change(); isn't running but if i put it at the...

View Article


jQuery selector won't work with Datatables

hey guys i have a problem with Datatable plugin the problem is that i can't select a chackbox in the action column to convert checkbox into toggles (bootstrap-toggle) it was working before but when i...

View Article

Boolean value from NodeJS webservice is not boolean when using in test

I called a NodeJS webservice :request({ url: "http://10.210.210.41:3001/trackable/lastPos", json: true }, function (error, response, body) { if (!error && response.statusCode == 200) {...

View Article


Where's the most appropriate place to normalize data?

I am using the JSON API Spec along with the json-api-normalizer package. I'm running into a dilemma when it comes to normalizing single objects with included associations. For instance: I have a single...

View Article

Sort div's using data attribute

I am trying to sort the nested div by the last name (after space) using the data attribute.The div heirarchy as follows:<div class="speakers-row"> <div class="wrap" data-name="Aric Zer"> 11...

View Article

React 'isSelected' is not working for check if it is selected or not

I am woking on React application that users select videos on random videos fetched from Youtube. And I want it to recognize ones selected or not. But isSelected is not working.const isSelected =...

View Article
Browsing all 139771 articles
Browse latest View live


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