Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [javascript]

JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, weakly-typed language used for both client-side and server-side scripting. Its primary use is in rendering and allowing manipulation of web pages. Use this tag for questions regarding ECMAScript and its various ...

0
votes
0answers
5 views

jQuery, Trouble with CORS (need to either send authorization on preflight, or skip preflight)

I need to access a REST API from a server that doesn't properly support CORS, and running into trouble. I'm able to configure the server to correctly provide the appropriate Access-Control-Allow-* ...
0
votes
0answers
5 views

Elm calling function / JS show message in console

Need show Error..." in console 3 times, but it showed Error...: import Html printKek : String -> String printKek = Debug.log ("Error....") Debug.log ("Error...") Debug....
0
votes
0answers
9 views

Order of exports in webpack bundle

For code like this: const top = document.createElement("div"); top.innerText = "This is the top"; top.style = red; export { top }; Webpack creates the following: ... "use strict"; ...
-1
votes
0answers
10 views

Start the timer when button is clicked in React.Js

How do you make it so that whenever you click the start button, only then will the timer starts. Because right now, it starts at will. class Timer extends React.Component { constructor(props) { ...
0
votes
0answers
28 views

Which approach is better for assigning conditionally

Below code is just initializing two variables, depending on cloudType passed, which can be assigned by either of approaches. In javascript less number of lines of code is recommended so I like the ...
-1
votes
0answers
6 views

Nested components in app.vue not pulling content through

main.js file: import Vue from 'vue' import App from './App.vue' import Parent from './assets/components/frame/Parent.vue'; import LeftSide from './assets/components/frame/LeftSide.vue'; import ...
0
votes
0answers
9 views

AWS S3 SignedURL() generated url gives “SignatureDoesNotMatch” error from browser

I am generating the URL for one of the files stored in AWS S3 using SignedURL() method in Javascript and when I click the URL directly, the file downloads. But when I click this URL from the browser(...
-3
votes
0answers
15 views

how to fix my ordering online system google map?

Here is my source code for map but when page loading enter image description here var GoogleMap={MapApiLoaded:false,Init:function(b,f,c,a,d,e,g,h){this.ILatitud=f;this.ILongitud=c;this.Zoom=a;this....
-1
votes
0answers
16 views

Find out the ranges

I have collected the different risk scoring system of different countries and i have attached that file for your reference .so my doubt is from different countries they have given score based on the ...
-1
votes
1answer
19 views

JavaScript: TypeError cant read property 'toLowerCase' of undefined?

I am getting error while running this code , it's saying typeerror cant read property to 'lowercase' of undefined. Code:- const notes = [{},{ title: "My next Trip", body: "I would like ...
0
votes
1answer
8 views

Getting data in Firebase using JavaScript in Google Assistant

For example, in my realtime firebase, I have the following structure: Sales: apple 46.00 mango 27.00 When I say to google assistant "How much are my sales for apple?", it will respond ...
0
votes
0answers
21 views

Congratulations Modal doesn't Pop Up

I am doing a matching game project, where when all the cards match the game over and congratulations pop up. But it doesn't work in my code. Could you please go through it and rectify my mistake. So ...
0
votes
0answers
4 views

Unknown word error showing after adding postcss loader

I am trying to add postcss loader in my webpack but after adding postcss loader showing Unknown word error. I also attached error screenshot. please find attachment. Not sure what error is.... I ...
0
votes
0answers
5 views

When navigating directly to a route, vue-router destroys the base path

I have a route setup like so: router.js: import Vue from 'vue'; import Router from 'vue-router'; const routes = [ { path: '/something', component: Something } ]; Vue.use(...
0
votes
0answers
7 views

highcharts json data not displaying in semi circle donut

I have encountered a problem with json data in highcharts. Im trying to display data in semi circle donut highchart using a variable as shown below: data: [happinessDetails], whereas the chart is ...

15 30 50 per page