JavaScript (not to be confused with Java) is a dynamic, weakly-typed language used for client-side as well as server-side scripting. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script). Unless another tag for a ...

learn more… | top users | synonyms (12) | javascript jobs

0
votes
0answers
13 views

Nothing rendering with react in my index.js

I have a class I have created some static html for my one page app such as some navigation, the header etc. I want to render my content inside the 'content_wrapper' div, however I get this console ...
0
votes
0answers
9 views

Slider-Effect doesn`t work

Im trying to get a nice slide-effect on my slider (just from left to right). But it wont work with transition and jquery...Is there something wrong in my code? Fiddle
0
votes
0answers
7 views

React native fetch api ,Possible Unhandled Promise Rejection (id:0):cant find variable resarray1

I am a complete beginner to React native, I am trying to call an API using fetch. and I get this error message in the yellow box on my phone: Possible Unhandled Promise Rejection (id:0): cant find ...
1
vote
0answers
12 views

Set Scope in Angular-Charts.js after rendering

Hi im currently trying to show multiple charts with angular-charts.js framework. My problem is that i need the same scale on each chart. At the moment each chart has its own scale based upon the data ...
1
vote
0answers
7 views

Enable Date Period Java Script default Calender

I have a table in the database which contains some dates. I want to disable those dates in magento default calendar. The calendar is in front-end checkout process (used to add delivery date for the ...
-2
votes
1answer
13 views

Display message in alert box after image fully loaded and then display image

For javascript window.onload = function(){ alert("hello msg"); }; For jquery $("img").on("load", function(){ alert("hello msg"); }); How do I display the image on screen after alert box
0
votes
0answers
5 views

Ag-grid: viewport not loading data

This is the part 2 of this question: Ag-grid viewport: cannot read property 'bind' of undefined I correctly defined all the functions requested by viewport interface, but I'm not able to load ...
-2
votes
4answers
34 views

Jquery Interval Loop change numbers after every one min?

I try to make a function for change a div number when one min is passed. I need to do this again and again. I mean to say if i give numbers 241. I need to change this after one min 320 or like this ...
1
vote
0answers
9 views

Can I export data to another react component?

I get the redux value make a new array in Data.js,and I want to use the new array data to draw a chart in Chart.js so... How can I to pass the data_pie to Chart.js can I just export data_pie in ...
0
votes
0answers
5 views

Access post params from GWT - RPC request payload in javascript?

I am trying to get the post parameters from a request payload of content-type:text/x-gwt-rpc; charset=UTF-8 in javascript. Request payload appears like this:- 5|0|7|http://localhost:8080/...
0
votes
2answers
19 views

append function appends previous data with the new data

I have the following data from ajax which I am trying to display in a UI's popup : [{"BadgeImage":"http:\/\/localhost:8666\/web1\/profile\/images\/badge image 2\/1.png"}, {"BadgeImage":"http:\/\/...
1
vote
1answer
20 views

show multiple content in one page in asp.net

I want to show the multiple content in one page in asp.net. For example, I have create a menu and in that I have one category option in that subcategory in that subcategory1 and so on. Flow like, ...
-3
votes
0answers
24 views

Create bridge between Javascript and Typescript [duplicate]

Anyone know how can get data from .js file to .ts file. For this my problem (first problem for get data from serialport.js)
1
vote
0answers
7 views

angular2 after upgrade error ReferenceError: firebase is not defined

after upgrading to the latest angular cli. i have errors that i didn't had before. one of them is: ReferenceError: firebase is not defined it refers to this line in my users service: private dbRef:...
-2
votes
0answers
15 views

How to fetch Excel data into JSON and than display it into Angular?

Excel to Angular via JSON and youtube videos processes are not working
2
votes
2answers
21 views

How to add data into postman

If I want to add some data to my schema below: 'use strict'; var mongoose = require('mongoose') , Schema = mongoose.Schema; var notificationsSchema = new mongoose.Schema({ notifyMessage ...
1
vote
0answers
19 views

Text animations stop when the image come back to first image

I'm building a website, the front page have an image slider with a text on it. At first it starts nicely, but when the image comes back to the start, the text animation is stopped. Can someone help ...
2
votes
0answers
10 views

Is it possible to export Quill data to document format

I started a project and I'm planning to use Quill in it. It has all the properties that interest me but I'm wondering about one that is not mentioned...: I would like to know if it's possible to ...
-1
votes
1answer
27 views

$ Not Defined Error [duplicate]

The below code is for creating checkbox dynamically. But in Chrome console it says $ is not defined. This $ error is in this line: $.post( "index1.php", { "...
0
votes
0answers
17 views

Using if statement to render components not working

When screen loads the revise button and listview are visible. When I press search the listview disappears and the search input renders on top of the button. When I continue to press search it ...
0
votes
0answers
4 views

SCRIPT438: object doesn't accept property method 'tinymce' internet explorer

I have the following javascript which uses tinymce <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" charset=ISO-8859-1 "/> <title>EcalcpAdmin: Listado historico</title&...
0
votes
0answers
5 views

ChartJS tooltip position / placement

When I hover on point of my line chart I can see tooltip. Unfortunatelly the tooltip position is left or right by default. This is how it looks now -> actual. And this is how I would like it to be -> ...
0
votes
0answers
18 views

Dynamically Add Angular2 Components in Template

I am trying to add components to a widget dynamically but it is only showing the template tag as text. What I am trying to do is drag a component name from a Drag Zone(Left Component) And drop to a ...
-2
votes
2answers
39 views

Proper array structure [on hold]

Commonly, arrays are formed like var array = ["some","string","elements"] or var array = [1, 2, 3]. Been searching for times, but I haven't seen articles that may clear my mind. Now, is it possible to ...
2
votes
0answers
18 views

iframe: How to reload only the iframe's content when the browser's reload button is pressed

I have this iframe which link to another page <iframe height="80%" width="100%" src="index.php" name="iframe_a"></iframe> <p> .... Page .... </p> How do I make the iframe ...
0
votes
0answers
9 views

MongoDB Node JS - to find the length/count of an object inside a document object

NEED: To detect if an object inside a document object is empty. To delete the document if the inner-object is empty. My collection sample format: { "myname" : "PrakashPM", "mydata" : { ...
-2
votes
0answers
16 views

Is it possible to display notification on facebook?

Suppose I have a website , this website can be accessible only via facebook account. So I can I send notification to facebook account of a particular user depending on activity of my website using ...
0
votes
0answers
23 views

what ever the type given using dom for an input i am getting only type text only in javascript

I am creating a date type dynamically using onchange with select ,but only text input is created .i have also given input type="date" even though i am only getting text input. else if(occurance=='...
1
vote
4answers
34 views

sum of all digits of a number in javaScipt and html

I wanted to write a program that calculates the sum of all digits of a number. I saw similar posts but none of them were written in JavaScript inside HTML.I am not getting any output,the webpage ...
0
votes
0answers
11 views

Javascript clean window.postMessage after browser going back

I'm communicating an iframe with an angular controller using window.postMessage function https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage#The_dispatched_event The JS that is inside ...
0
votes
1answer
16 views

Input form and changing form PHP MySQL

I have made a database and a php to insert new information to the database. When I add some new information, everything works well, but when I want to change these information and update these, my ...
0
votes
0answers
8 views

Get link name in chrome extension API

When right clicked mouse on link, I need get its name. In chrome API docs I only found linkUrl property, but it points inside link How to get its name? info.SelectionText - contains only selected ...
-1
votes
0answers
16 views

What the fastest way to create the SPA admin panel providing CRUD operations? [on hold]

I have the web application for some business logic and few models. What the fastest way to create the SPA admin panel providing CRUD operations for some models of an application? The ideal solution ...
1
vote
3answers
46 views

Converting html input array into JS object

I have the problem converting HTML input array into Javascript Object. I have the form: <form> <input name="element[el11][el21]" value="a"> <input name="element[el11][el22]" ...
1
vote
0answers
17 views

Toggle, when I click on different tags, how can filter data by toggle? How can I combine many clickes?

I making a project to show data for songs, I get them dynamically by Mlab. when you open the page you can see all the songs, afterwards you you filter by clicking on li lists by the wanted one. ...
1
vote
1answer
58 views

Parsing a JSON tree with JavaScript

I want to parse this JSON tree on the basis of the 'Name' attribute and return the matched node/nodes as an array of objects. Kindly paste the JSON tree in here - https://jsonformatter.curiousconcept....
1
vote
0answers
5 views

Video Ads auto overlay in FIrefox with default Google dfp adTag

I am facing the same in Firefox mobile browser , the ad video goes to full screen and screen hangs when the ad is ended, while video content played in background. In android default browsers play ...
0
votes
0answers
14 views

Display uploaded image

After some research What is the best place for storing uploaded images, SQL database or disk file system?, I decided to store the uploaded pictures on file system e.g. C:/images/image.jpg, and store ...
0
votes
0answers
22 views

jquery onchange is not working on dynamically added elements [duplicate]

I am trying to set on change listener to some of the elements which are dynamically added but it's not working. This is my html file: <!DOCTYPE html> <html> <head> <...
1
vote
0answers
9 views

Download an image using Axios and convert it to base64

I need to download a .jpg image from a remote server and convert it into a base64 format. I'm using axios as my HTTP client. I've tried issuing a git request to the server and checking the response....
0
votes
0answers
19 views

How can i get specific value of a key to controller laravel through ajax

Passing data to controller through ajax is like this data: {name:chris,age:20,_token:token} But I have alot of inputs and I didn't use serialzie because I didn't use a form so what i did is make an ...
0
votes
1answer
17 views

How objects are created when the prototype of their constructor isn't an object?

I answered this question: How do objects created? but I also have a question after I answered it. function Bar() { this.foo = true; } console.log('obj3'); Bar.prototype = 3; var obj3 = ...
1
vote
1answer
33 views

jQuery .done() .fail()

What we want here is to manipulate the createSite function expected return which is {ac:failed} so when it failed .fail(failOption) will be execute else sendMail / .done(sendMail) function will ...
-1
votes
0answers
4 views

how to display multi-phase raster using ArcGIS Javascript API ?

I have a set of raster layers(the same place,different years).I want to display it on my website using the timeslider so that i can clearly view the changes from these rasters over different years. ...
0
votes
0answers
10 views

Is there any way to implement Ken Wheeler/Slick JS to my shopify?

I'm using "Debut" as theme of my store in shopify. I would like to use Slick JS as image slide for my product gallery. I tried and it work! but the functionality of "selecting variants and showing it'...
1
vote
1answer
25 views

Passing data from buttons to server through the modal window

On my site I have a modal window (Bootstrap) that can be shown by clicking a few buttons with such markup: <a href="#" class="btn btn-danger" data-toggle="modal" data-target="#myModal" data-link="...
0
votes
0answers
9 views

Scroll event on OSX

I would like addClass on my sidebar element when user scrolling. But, i've delay on OSX for addClass : i need end scroll for apply my function : $(document).on('scroll', function() { var ...
0
votes
0answers
16 views

Send large number of files to back end Django

I have a requirement that i need to upload large number of files using <input type="file" ng-file-model="files" id="id_docfile" multiple> and after that it should be sent to the django ...
0
votes
0answers
18 views

Inject JavaScript into UIWebView

I'm still learning Swift so please bare with me. :) I am trying to inject a local JS file into a UIWebView. I have it set up to load the desktop version of the site but it does not appear to be ...
0
votes
1answer
34 views

Modify Function to run according to User COOKIE

I want to modify the following Function to be run first according to User $_COOKIE['theme'] between the 2 themes (light or contrast) As example i already have this output $_COOKIE['theme'] = ...