Undefined global variables

I know that this question may be a "dumb" one but just forgive me for this :( I was doing a quiz-time application but just got a problem :( my two global variable are not defined which are "score" and "solvedQuestions" although there's no variable h...
more »

2017-10-04 22:10 (0) Answers

Restful security check for webpage menu items

When I want to check that a user has no access to a specific menu item, I pass a value in my REST API like this: { menu_item1: false, menu_item2: true } And regarding to these values, menu items will be visible/invisible. Is it a security issue th...
more »

2017-09-27 10:09 (1) Answers

forEach loop with async code?

I am making a function call 3 times with different arguments: this.getContributorProperties('followers_url', 'contributorFollowers'); this.getContributorProperties('gists_url', 'contributorGists'); this.getContributorProperties('repos_url', 'contrib...
more »

2017-09-25 12:09 (1) Answers

How to savely transmit sensible Data with Frontend

I got another question today. So to get some background knowledge, I will tell you what I want to do. I got some Data which gets generated in the Backend and then send to the Users Frontend. There he can choose the items he want and sends them back t...
more »

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

Infinite scroll for React List

So I have a list of 5k elements. I want to display them in parts, say each part is 30 items. The list of items is in the component's state. Each item is an object taken from the API. It has properties on which I have to make an API call. By parts, to...
more »

2017-08-19 17:08 (3) Answers

REST controller returns HTML page - good practice?

last time I found a example of REST app, which one REST controller returns HTML page(index.html). As a front-end was used Vue.JS and other communication was realized by REST controller returning normal JSON. And now I stil thing how this solution lo...
more »

2017-08-17 08:08 (2) Answers

Interview - JSON to DOM practice API/Questions

I am not sure if StackOverflow is the right place for this question. But since I come here for all coding related questions, I thought I'll ask anyway. I am interviewing for front end engineer role in a few days and one of the thing the recruiter s...
more »

2017-07-23 02:07 (0) Answers

Which grant type(s) should be used?

I am developing and API (laravel passport) services and a first-party app (VueJs) to consume api. Api will have a 2 parts Public - means user do NOT need to be logged in to see a content Private - means user do NEED to be logged in to see a conte...
more »

2017-06-24 15:06 (0) Answers

Leveraging browser cache in boilerplate

I've used a boilerplate to create a website and I've tested it on https://testmysite.thinkwithgoogle.com/ and it said I have to leverage my browser cache. After doing some research, it says I have to add this tweak in .htaccess. The issue is that thi...
more »

2017-04-08 20:04 (1) Answers

Applying DOM-changes on a 3rd party website

I want to be able to tweak any website locally (like you can do with Chrome's developer tools) and to have it last between refreshes. I heard that users-script is the way to go. Is there any better alternative? (I'm using Chrome) Thank you ...
more »

2017-04-05 10:04 (0) Answers

Infinite scroll on real-time data

I am trying to implement infinite scrolling in a web application, records maybe added or deleted from the server, sorted in alphabetical order of their id, also the associated data can also change at any time and I have to show the latest data. I und...
more »

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

Can I see all pages with one url?

I want to see all devices from specific page, but these devices are stack into pages. For example this website: Website Can I do this with entering one url and what parameters should I use? ...
more »

2017-03-20 11:03 (1) Answers

DOM Manipulation to change style

How to change the font-style or color of all the texts on a webpage using the DOM manipulation? I can change the style and color of a particular element but how can it be done for the whole web page? ...
more »

2017-03-16 14:03 (3) Answers