Data dodania Pytanie
2017-06-18 22:06 Increasing performance of a function which processes an array using destructuring and recursion »
I wanted to create a function which takes another function and an array as parameters and calls that function for each three consecutive elements of t...
(4) odpowiedzi
2017-06-18 19:06 Getting parameters of post request in node js »
I am struggling since I am trying to retrieve all the parameters of a POST request in node.js, but it's not gonna work. Here the post request from th...
(3) odpowiedzi
2017-06-18 18:06 Iterating over array to use data-attribute to style elements, but only getting last value in the array »
Objective I'm trying to style a series of divs .table__color where the width of the div is equal to the value of a data-attribute from an array of ....
(1) odpowiedzi
2017-06-18 16:06 Unknown provider: $resourceProvider <- $resource in AngularJS »
as stated in the title I get the following error: Unknown provider: $resourceProvider <- $resource. Specifically in the console of Microsoft edge:...
(1) odpowiedzi
2017-06-18 12:06 DataTables: Show custom html code in last column »
AJAX: { "data": [ { "id": 1, "name": "Dashboard", "url": "/", "icon": "icon-home", ...
(0) odpowiedzi
2017-06-18 12:06 Getting rid of #! in angularjs ngRoute »
I'm working with Angularjs ngRoute for SPA with Node.js as my backend, I have 3 pages in my website say: localhost:8000/#!/ localhost:8000/#!/red l...
(2) odpowiedzi
2017-06-18 09:06 Google Maps doesn't show up in a Modal Ionic »
I've been integrating Google maps to my ionic app by following https://www.joshmorony.com/integrating-google-maps-with-an-ionic-application/ this tuto...
(0) odpowiedzi
2017-06-18 08:06 Elasticsearch: cURL to Ajax request »
I am using Ajax request for elasticsearch to get search results. Finally, I have found the query which I have to go for. (This is a follow up question...
(1) odpowiedzi
2017-06-18 07:06 Zoom that follows mouse »
I'm trying to create a React Component that zooms an image and the zoomed image follows the mouse. I've created a pen to show what I've done so far: ...
(0) odpowiedzi
2017-06-18 07:06 How do i execute these javascript module patterns? »
I had learnt to structure modules using IIFEs. Simple example: export test_module = (function{ var name = "henry"; var age = 26; var heig...
(1) odpowiedzi
2017-06-18 03:06 Using Dygraph in React with redux? »
I've been having a lot of trouble implementing Dygraph in React (I'm using redux): http://dygraphs.com/. The Dygraph wrapper packages on NPM don't see...
(1) odpowiedzi
2017-06-18 03:06 Breakdown function map and reduce -JS »
I am dealing with a function here: function transformEmployeeData(array) { return array.map(function(data) { return data.reduce(function(a, b) ...
(1) odpowiedzi
2017-06-18 02:06 How to minify multiple HTML / CSS files at once? »
I know I can minify files and concatenate them one by one before production, but that sounds like a tedious way to do it. Is there some way to minify...
(1) odpowiedzi
2017-06-17 22:06 Javascript Nested Array Return Even Numbers »
I am trying to write a function that prints only the even numbers from a nested array. Here is my attempt and it keeps returning "undefined". functi...
(4) odpowiedzi
2017-06-17 21:06 JavaScript - Apply function to a specific div in a collection of divs with the same class name »
When I hover over .winner-container, the JS function tells .headline to move out of .winner-container and it tells .bottom to move into .winner-contai...
(4) odpowiedzi
2017-06-17 20:06 Testing Chrome Extension APIs Locally »
This is a pretty general question with a couple examples. I'm fairly new to writing chrome extensions and I seem to keep running into cases that are ...
(1) odpowiedzi
2017-06-17 18:06 Keypress event on dynamically added element is not working »
I have a table that is added dynamically. The keypress event is not working on tr and td. The event is not fired. But it fires if I use the table or t...
(2) odpowiedzi
2017-06-17 18:06 Difference between let and var inside setTimeout? »
I know the difference between let and var. let is block scope and var is functional scope. for(var i=0; i< 3; i++){ setTimeout(function(){ ...
(3) odpowiedzi
2017-06-17 18:06 Strange dot in each page that use ionic v1 and angularjs »
I don't know the reason why, but at each of page of my webapp, at the left side upper there is a dot like this: It's an html problem I think, in fa...
(2) odpowiedzi
2017-06-17 16:06 ion-segments not displaying data after switching tabs »
I'm having trouble displaying charts after switching from segments. I currently have 2 segments, index and edit. On the index I successfully display a...
(1) odpowiedzi
2017-06-17 16:06 Inspect element without right clicking in Chrome »
When I inspect html/css on a website, I usually open the chrome developers panel ctrl+shift+I → right click context menu "inspect" so I can highli...
(3) odpowiedzi
2017-06-17 14:06 "\n" being treated as a string literal in JavaScript »
I have a select tag with an option tag that has a value of "\n". When that option is selected and I get the value using jQuery, JavaScript seems to be...
(3) odpowiedzi
2017-06-17 02:06 ruby on rails how to download csv file using javascript »
Some clarifications first. I'm trying everything on local development environment. In my UsersController I have a summary_csv method that builds a c...
(2) odpowiedzi
2017-06-17 01:06 Not able to respond to custom error message sent from express »
This problem annoys me, because I know it has something to do with me not understanding the issue properly - which makes it really hard to track down ...
(1) odpowiedzi
2017-06-16 23:06 cannot convert input text to int in JavaScript »
I am trying to sort a table in HTML by clicking the table header. The sorting is fine for strings, but when comparing numbers, it evaluates "10" < ...
(4) odpowiedzi
2017-06-16 21:06 Tabs to replace content on page with another HTML's file »
I've been building a website using four separate links to replace the content of the home page with the other html's files information. The script wor...
(1) odpowiedzi
2017-06-16 20:06 When use of "reduce" is appropriate? »
Sometimes people use reduce to make code shorter, but for me, it looks a little bit complicated and confusing. Following code looks pretty clear for ...
(0) odpowiedzi
2017-06-16 19:06 Getting Can't set header after they are sent error when i render data with ejs »
I am getting "Can't set header..." Error when i try to include my header file and render data from express. This is my code router.use('/dreams',...
(0) odpowiedzi
2017-06-16 18:06 TypeScript: Can I import a folder without having to write an index.ts file? »
If most directories of a project contain no more than 2-3 TypeScript files and all of their exports should be accessible when importing the containing...
(2) odpowiedzi
2017-06-16 17:06 Egghead.io Redux tutorial - Lesson 17: "TypeError: Cannot read property 'map' of undefined »
I am following the egghead.io tutorial on Redux. I am on Lesson 17 and getting an error that Dan Abramov isn't. The code is below. The error I am ge...
(1) odpowiedzi
2017-06-16 17:06 Facebook Graph API: GET /feed without privacy "SELF" »
how do I have to structure API request (prefferably in the JavaScript API version of Graph) to GET everything in the /feed which does not have privacy...
(1) odpowiedzi
2017-06-16 16:06 Is the ordering of props in JSX important? »
If the o object contains a key/value pair of: foo: 'bar' can I depend on these outcomes?: // foo will be 'bar' <MyComponent foo='should not ov...
(3) odpowiedzi
2017-06-16 15:06 Enter key to send works only once in java script »
I have a code that submits the form, whenever we press enter key on text area... it works, but code runs only 1 time. whenever I press enter again to ...
(1) odpowiedzi
2017-06-16 15:06 Can one JavaScript function handle different types of HTML input types? »
I have a question in regards to input, select elements. If I have a radio, text, select elements on the page do I need to provide a single JavaScript...
(1) odpowiedzi
2017-06-16 14:06 Jquery Function always return count 0 of second parameter »
i am writing a function in jquery which post the data to controller. currently it is posting form data to controller fine but when i post checkbox lis...
(2) odpowiedzi