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

How to call HERE Maps API v3 using HTTPS

How can I call HERE maps through HTTPS ?I'm using HTTPS on my server so when I call this:<script src="http://js.api.here.com/v3/3.0/mapsjs-core.js" type="text/javascript"...

View Article


Retrieving XML data using AJAX and Javascript then showing it on a HTML page

The first bit of the code shows but the XML will not display on the html page. I'm not sure if I have missed anything. Any help is appreciated. The HTML at the bottom is a separate page to the...

View Article


Image may be NSFW.
Clik here to view.

Could not click on selector with Puppeteer

I am using this code//helpers.js module.exports = { click: async function(page, selector) { try { await page.waitForSelector(selector) await page.click(selector) } catch (error) { throw new...

View Article

Image may be NSFW.
Clik here to view.

Getting the error note of a formula with #NA in google sheets for a script

I cant find any way of getting the error message of a failing formula (which actually gives more info that just the error code since this is always 7 for #NA). #NA could mean different things and I...

View Article

Error: Unable to determine the current character, it is not a string, number,...

Whenever I run react-native run-android while keeping the emulator running, I get this error. react-native run-ios wroks completely fine.Error: Command failed: ./gradlew app:installDebug...

View Article


ReactJS - action to return a single item from reducer

The goal here is to call an action from my component and get the single object from the reducer, and with that object, I will load my form.Redux is working, but its returning the single object that I...

View Article

Pass gmaps infowindow value to form

Beginner here- I created a gmap with 2 markers (restaurants I like). Each marker has an infowindow with a button that opens a modal form. The form contains a input with id textinput-2 that I would like...

View Article

If I have two price, like Sale price and Regular

If I have two prices, like a sale price and a regular one, then show the sale price, else show the regular price.I tried this Code, but it does not work.function validation() { var Sale = 24; var...

View Article


Regex to test an expression

I have this expression:/width*$/.test(oldStyle) And oldStyle has this inside of it:width:90%;height:inherit;padding-left:20px; The expression should return true as i have tested it in a online...

View Article


Paypal smart button checkout without shipping

I'm using Paypal's Smart Payment Buttons with the following code:window.paypal.Buttons({ createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value:...

View Article

Vue not updating Vuetify data-table from array with data from Axios request

I have a problem and have been looking for hours to get it resolved, without any success. In short: in a forEach loop I am adding my const "mijndata" to my array "Signalen". I can see that my array is...

View Article

Can you style an element with JavaScript without adding a style attribute?

When you write element.style = "..." in JavaScript in adds the style attribute to the element you add the style to. Is there a way to add a style without the style attribute, without any libraries?

View Article

Passing props back everytime a from is submitted in React

I have a Dashboard component which has 3 children Search, MealList and UserData. I have 4 state variables, fromDate, toDate, fromTime and toTime which are initially set to null inside the Dashboard....

View Article


Rails passing variable to JavaScript

I'm trying to get values through a has_many :through relationship. Three main databases: people, locations (which has street address and other information), and the join table, years, on a date for...

View Article

Transform an array of objects structure

At the moment I am working with an api that returns an array of objects that looks like[{match_id: "255232", country_id: "41", country_name: "England", league_id: "152", league_name: "National League",...

View Article


Image may be NSFW.
Clik here to view.

How to have select options list open / dropped down by default on page load...

Interestingly, I do not seam to find a simple solution for a simple requirement of having list of select options open / dropped down on page load.I am working with Angular 8 in case that offers some...

View Article

Knex subquery to sum data from 2nd table

I'm trying to write a query using knex to SUM the votes for each question but am not getting the correct sum. I can write the subquery in SQL but can't seem to piece it all together. I am a student and...

View Article


How to change e.preventDefault() from disabling links of children anchor?

Say we have HTML structure like this:<ul id="dropdown-download-links"> <li> <a href="foo.html">Foo</a> <!-- Don't want this clickable, but cannot remove it --> <ul>...

View Article

Stop page reload when user hits "ENTER" in input field - ClojureScript

I am learning web development using Clojurescript and shadow-cljs and so far it has been awesome. I created a really bad reddit viewing webapp but have found that when the user first navigates to the...

View Article

Response returning undefined react js axios

I trying to view status of a variable (salesforecasting) in database. Its responds by sending true or false which is received fine in Postman. However when it gets to react, it is shows undefined on...

View Article
Browsing all 140071 articles
Browse latest View live


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