How do I turn a repetitive string into a function?

At the moment I'm getting information from an API - I want to convert that information onto my site in a more user friendly way to see. The issue here is that the amount of the variable that I'm looking for keeps changing along with the answers in it...
more »

2017-12-03 23:12 (1) Answers

ES6 code styles best practices

Recently I've started to learn ReactJS and consequently - ES6. I'm quite familiar with ES5, but some things are not that clear for me. Example 1: Methods syntax What is the difference between the following two methods? export class InvoiceForm ext...
more »

2017-12-03 22:12 (2) Answers

Can I use the Node.js packages along with Django?

I think I haven't understood this concept right . If I am using Django as a backend to run server side code , is there a way to include the packages of Node.js also . Isn't Node.js kind of another environment or language for server side code ? If...
more »

2017-12-03 20:12 (2) Answers

Javascript autocloses HTML tags?

Why do these two functions give different results? var table1 = document.getElementById("table1"); var table2 = document.getElementById("table2"); var register = [ {att1: 1, att2: 2, att3: 3}, {att1: 4, att2: 5, att3: 6}, {att1: 7, ...
more »

2017-12-03 19:12 (2) Answers

Button inside modal dialog is not working

I have a grid with view buttons. When you click the view button a modal dialog opens and displays all the information in a form. I also have a button (buttonID:Button1) inside my modal dialog. The problem is that when I click on the button inside t...
more »

2017-12-03 17:12 (2) Answers

Two element's background-color within a nav

I need to add an effect of two elements within a div. I tried selecting their id(and also some other way) but is not working as expected. Maybe I am unsuccessful because of my not having deep knowledge of HTML/CSS. Here is a sample of what I tried r...
more »

2017-12-03 15:12 (3) Answers

Prerender page with dynamic content

I have vue.js app that has page with list of users which are get from the external API. Page also have pagination. Question is if prerendering strategy will work for this type of page with dynamic data? I have plan to use: https://github.com/chrisvfr...
more »

2017-12-03 15:12 (0) Answers

event.preventDefault() and redirect asp mvc/jQuery

What am trying to do is to post on form submit to a action and catch response and that works fine.Problem is when RedirectToAction gets called, it just stays on that same view(it doesn't redirect),or in case model is not valid, it doesn't show model ...
more »

2017-12-03 14:12 (1) Answers

How to show content by scrolling down?

I have written some html code for my webpage in which multiple images are shown. the problem is, all the images are loaded at the starting itself. I want to change that to show extra images by scrolling down. How to do that with jQuery? The code is:...
more »

2017-12-03 13:12 (3) Answers

Spring POST receives object with null values

I have an AngularJS web application that looks like it is correctly sending JSON to the Tomcat server, but the server receives null values. This question didn't help because my property names are already lowercase, and this question didn't help becau...
more »

2017-12-03 13:12 (1) Answers

How to stick the header area at the top of page?

This is my header area section of my template. i want to stick the menu bar and logo at the top. I tried a lot for all most 4 days.But i couldn't.I use sticky.js plugin.But it wouldn't happen.What's wrong with my code?I couldn't understand.I use para...
more »

2017-12-03 07:12 (2) Answers

Mongoose Foregin Key mapping

I'm new to MongoDB/Mongoose and trying to figure out how to map relationships between Schema. I don't think issue is with .populate(). At creation of new user and clients, I do not see the relationship reflected in collection User (login via local/s...
more »

2017-12-03 05:12 (0) Answers

Remove null values from json file javascript

I am new to javascript and I have encountered a problem I need to remove all null values from a json file. But I have not been able to get it I have tried different methods that I found on the site but they do not work for me. One of the ways I found...
more »

2017-12-02 23:12 (1) Answers

Sorting arrays (2D array) Need assistance

Basiclly what i am trying to do is for sort the values of a array input like uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]) into a sorted 2D array like [[1, 1, 1], [2, 2, 2], [4], [3], [5]]. The arrays don't have to be in number/ value order. The code ...
more »

2017-12-02 21:12 (1) Answers

Clickable link on specific area of an image

I have an image of a map It has specific area names on the map but it is all just a PNG image. I would like the user to be able to click a name on the map and be taken to a specific board. For example, the map has three names on it. Each name is at ...
more »

2017-12-02 18:12 (1) Answers