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

Update shopping cart quantity using SweetAlert in Ajax and CodeIgniter to

I need help for updating qty in cart. if the quantity < the product stock, a sweetalert will appear. But, in my project, it did not happen. Anyone can help me ?Some code update cart in controller...

View Article


I dont undertand why the console is showing me undefined [duplicate]

This question already has an answer here:Surprised that global variable has undefined value in JavaScript 6 answersI am new to coding and cannot figure out the following code. If anyone can give me a...

View Article


How can I make a function run every time I enter the component, using the...

I want the function that detects if there is a saved token to be verified, every time the component called login is executed.In login I have a function that verifies if a token exists, and if it exists...

View Article

Gathering values from sub objects in Vue.JS and assigning to parent object key

Here's what the data "valueContainer" looks like:{ "totalValue": 0, "subValues1": [ { "value": 20 },{ "value": 30 } ], "subValues2": [ { "value": 10 },{ "value": 40 } ] } I'm trying to gather the...

View Article

ajax to php post - all sent and received but php fails

I have checked other questions. This is not a duplicate. All seems ok, data is posted and received by php but something went wrong reading the whole post. What's rare in this case is that it fails...

View Article


Image may be NSFW.
Clik here to view.

JavaScript, Iterate through object of arrays [duplicate]

This question already has an answer here:How do I loop through or enumerate a JavaScript object? 38 answersI have an Object like this:{ 1: [{'id':'1','value':'aa'}], 2: [{'id':'2', 'value':'aa'},...

View Article

is my text positioning is stretching my website height?

I am making a website for my university project and I am going through some issues regarding my text classes. For some reason my classes seem to have an odd height, resulting in a white strip appearing...

View Article

Multidimensional object 'Cannot read property 'name' of undefined'

Why does my javascript code is throwing an error that it cannot read property and at the same time displaying the expected property successfully:var scores = { "hudson": { "name": "Hudson County",...

View Article


Using $Geonear with two different documents

Im trying to get the information of my Vehicles that are inside or nearby a certain place.db.getCollection('Vehicles').aggregate([ { $lookup: { from: "Places", localField: "place", foreignField: "_id",...

View Article


Image may be NSFW.
Clik here to view.

Get row number from grid index

I got this grid with each square's index showing in the middle (0-63):Then I have a function which needs to return the row number when I pass it an index.The row number can be between 0-7.Function that...

View Article

Await function on button click

async function init() { $("#present").slideDown(100); setTimeout(btnClose, 4000); function btnClose(){ $("#present").slideUp(100); } $("#present").click(async function() { await timerOn(); });...

View Article

Image may be NSFW.
Clik here to view.

What am I misunderstanding about this fluid dynamics calculation?

The last question was deleted for being too short and vague, so this time I will try to be as verbose as possible.I am using Javascript to implement a basic physically accurate SPH following this...

View Article

Image may be NSFW.
Clik here to view.

.Net Core FileUpload for Krajee FileUpload

I am using Kartik File Upload. https://plugins.krajee.com/file-advanced-usage-demo Upload is OK. However, the page does not load files while loading. Can you help with this.My Code Behind public...

View Article


How do I prompt a modal when the user leaves my website in Javascript/AngularJS?

Is there a way in AngularJS or Javascript to detect that the user is leaving my website (can be closing his browser or entering another page) and to prompt a modal? In this modal I want to ask the user...

View Article

Change image in a div by hovering on links in another div using jQuery

I have this code set up that allows me to hover on links in different div and change images in another div. The HTML code in one section of the page is like this:<div class="left-column"> <ul...

View Article


How to connect Node Js server with Android Studio app?

I'm trying to establish connection between an android studio and a node js server, but I'm kinda stuck. I pretty sure I've done many things wrong, but my one error message I can start searching for...

View Article

i can't setState graphql queries on gatsby js

I have tried to fetch data onClick with GraphQL but for some reason I can't setState multiple queries. It says (Loading Static query)class Math extends React.Component { constructor(props) {...

View Article


Using Canvas to dynamically draw from set coordinates with delay

I am trying to use HTML canvas and JS to create short stop motion video animations from an array of set coordinates. My thinking is that I should be able to loop over the array, and use the canvas...

View Article

Retrieve properties data from LitElement Web Component

I am trying to create a web component with the following features: 1. click a button to add a <textarea> element. 2. After adding text to newly created <textarea> element, this text is...

View Article

Cannot echo out a .val() function

$commentid = 2; //example echo "<input id = 'inputthing".$commentid."' value = '".$commentrow."' style = ' background-color: transparent; border: 0px solid; box-shadow: none;'>"; echo...

View Article
Browsing all 142440 articles
Browse latest View live


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