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

1
vote
0answers
8 views

jQuery find which parent is closer?

In jQuery you can call closest to find the closest parent. If I have a a in a li in a ul in a td in a table. I want to find out if the ul parent is closer than the table parent. Obviously in this ...
0
votes
0answers
4 views

Should.js - Inconsistency in equals method should.equals

I'm using the should.js framework (v8.2.x) to unit test and have been playing around with some very basic tests. However, I ran into this issue with the tests failing, which has stumped me. I defined ...
0
votes
0answers
5 views

React - this.state is null inside render when getting data from API

I am trying to learn react by making a simple app where I am trying to get data in json format from the sever and then rendering it to the view. The problem is that I am getting an error where it says ...
0
votes
0answers
4 views

Regular expression to extract text in between

I have a string that has a function name with a parameter inside Load_Data( 140067676 ) I need to get those numbers from the string. It should match Load_Data( ) too because there are other ...
0
votes
0answers
2 views

Data from Zap Trigger to Developer Action

I am working on a project for a client who uses a platform called Zapier. If you aren't familiar with it, this question probably won't make much sense... (unfortunately) I am using a 'Zap' so that I ...
-1
votes
0answers
11 views

LoopBack or Meteor, what to choose?

What to choose between two most popular node.js frameworks LoopBack.js or Meteor ? I want to know opinions of professional node.js developers, what is better to use in that situations: Simple web ...
0
votes
0answers
33 views

Put anonymous function into named function?

i'm using this script: [].forEach.call(document.getElementsByClassName("listener"), function(elem) { elem.addEventListener("click", function() { // action }); }) After adding new ...
0
votes
0answers
3 views

Django - Dynamic number of ModelForms based on dropdown value

I have a form that registers teams of people. Based on a dropdown to select the number of members in the team, the form should show that many model forms, one for each member. I am not particularly ...
0
votes
0answers
3 views

Extjs 4.2 combobox not show arrow, why?

I use sencha cmd 5.1.0.26 generate an app, and defines an view like Ext.define('JxkpApp.view.user.MyForm', { extend: 'Ext.form.Panel', alias: 'widget.usermyform', requires: [ ...
0
votes
1answer
4 views

Emoji One appears Oversized when integrated in my blog

So I integrated the emoji one script in my blog to convert all the unicode emojis into the emojis from emoji one. It works but it is oversized and collides with other posts. This is the code ive used ...
0
votes
0answers
4 views

scrolling up is detected as scrolling down in chrome (with mousewheel.js)

I use the mousewheel event to get the scrolling data, mousehweel.js to normalize the data, and GSAP for animation. This is the code I use, it works perfectly in Firefox and IE, but not in Chrome. The ...
0
votes
0answers
8 views

How to flatten an array before applying arrayOf('schema') in normalizrJS

Suppose a user has favorited many cats and the api endpoint gives a list of cats when asked for user's favorites: const catsList = [{id:1,name:"catA"},{id:2,name:"catB"},{id:3,name:"catC"}]; // ex: ...
0
votes
0answers
4 views

HMR isn't working after moving files to /app folder

Hi I'm currently trying to learn how to use express along with webpacks HMR, and every time I update and save a file it gives me the error: "The following modules couldn't be hot updated: (Full ...
2
votes
0answers
7 views

d3 filling an area with a gradient

I'm wanting to fill the area of this line chart with a gradient, so that the bottom of the gradient is transparent, and the top of the area fill is black. Is this possible? All my google searches are ...
0
votes
0answers
3 views

Zoom in/out in flotcharts with custom buttons

I am using the "Attractive JavaScript charts for jQuery" http://www.flotcharts.org What i want to achieve is zooming in/out with custom buttons, like "shift + scrollwheel" . Any ideas if this is ...

15 30 50 per page