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. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).

0
votes
0answers
3 views

How to highlight different regions for different series in dygraph

I have a chart with several time series and also with highlighted regions. Each time serie has its region. A have checkboxes to display/hide the time series. But I don't know how to hide the ...
0
votes
0answers
2 views

Ordering svg polygon coordinates for making it convex

I have an array of coordinates. And that coordinates occur dynamicly. So for some possibilities, it does not draw convex. Please check the example. <div style="width : 700 , height : 700"> <...
0
votes
0answers
3 views

Cordova - Securing stored data on iOS without KeyChain

I have a Cordova app on iOS that currently stores data using localStorage for offline use. This data can be viewed in plain text if the user has root access (either on a jailbroken phone or with ...
0
votes
0answers
10 views

document.getElementById wont work in mobile view

Hi all I was hoping someone could help me as I'm still learning, so I have a modal which I'm using document.getElementById(modal-wrapper); in my index.php to display it but I've written some ...
0
votes
0answers
3 views

Jasmine .and.throwError() is not caught by .catch in original code

I'm writing a test for a function, and have to trigger the .catch part of that function, but Jasmine's spiesfor some reason can't do that. Method to be tested: foo(){ doStuff() .catch((error) => { ...
0
votes
2answers
21 views

Javascript: compare string numbes above 10.0

After ajax query I have the next numbers: var a = "5.20"; var b = "7.20"; var c = "11.20"; I have noticed that if compare numbers above 10.00 the condition is false. I do not understand why this ...
-1
votes
0answers
6 views

how to use magnific popup library in angular 2 app?

I am new to angular I want to use Magnific Popup library to play video. this library uses jquery. I don't know that how to use it in angular 2 app.
0
votes
0answers
7 views

PDF's generated using jsPDF showing black background issues

I am using jsPDF with HTML2Canvas to generate the PDF and below is my code ts: import * as jsPDF from 'jspdf'; .... exportHTML2() { const options = { background: '#000', }; const ...
0
votes
0answers
3 views

Aggregations based on multiple metrics or returning a value other than the defined “field”?

Aggregations Aggregations based on multiple metrics or returning a value other than the defined "field"? I have some historical data that looks like: { "_source": { "reading_time": "...
0
votes
0answers
12 views

Enter Showroom Button in A-Frame

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible"...
-2
votes
0answers
14 views

How to remove or hide language option in google language translate code

In default google translate code it gives me all language option but I want only English and France option with the flag, not the drop-down menu? thanks in advance...
0
votes
0answers
22 views

PHP not calling shell script

My html is calling a javascript and javascript is calling a php script which in turn calls a shell script, all of them are on the same server. But my shell script is not getting triggered. I have ...
0
votes
1answer
10 views

how to print data without popup window it should directly go to print on click

function printDiv() { window.frames["print_frame"].document.body.innerHTML = document.getElementById("printableTable").innerHTML; window.frames["print_frame"].window.focus(); ...
0
votes
1answer
8 views

Mongoose findOneAndUpdate returns parameters in different order

I'm currently working with mongoose and I've come across something which I find very strange. My code is as follows: Challenge.findOneAndUpdate({ _id: req.params.challengeId, users: req....
0
votes
0answers
6 views

this value result undefined in ie11

I have this strange problem: this page works fine on all major browser except IE11, where the page doesn't load. I checked in the console in ie 11 and found this error: the error refers to the ...

15 30 50 per page