Questions tagged as 'javascript'

2
answers

PHP - Javascript

I'm new to the web programming area and I'm developing a website in php, the php itself until I understand how it works but as for javascript I'm not sure about when to use it. For example, and a site screen there is a table with approximatel...
asked by 29.03.2018 / 22:49
1
answer

The operation mutation was attempted in a READ_ONLY transaction

Why can not I add or delete id 1 or id 2 in code? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>IndexedDB</title> <script type="text/javascript"&...
asked by 31.03.2018 / 03:33
0
answers

Node fs.js running in HTML

Hello, I need to use the fs function of node.js but I'm encountering errors. When I run using node use_fs.js it runs and works perfectly. However when I put it inside the html it always says q require is not defined. I know that fs is a core fun...
asked by 28.03.2018 / 01:20
0
answers

Effect parallax on DIV

I'm having trouble adding a parallax (or identical) animation to my slide show when I scroll down my page. I was able to do this, but only with background images using the background-attachment: fixed; property. Does anyone have a...
asked by 16.08.2018 / 14:09
1
answer

Navigation using keyboard arrows

I need to navigate through the DOM using the arrow keys. I can perform it when it goes only in two directions (up or down, front or back), but to move in the four directions I did not find a shape. I need this navigation to take into account onl...
asked by 21.08.2018 / 01:32
0
answers

SIntaxe OOP JavaScript

I've been studying JavaScript a few days ago and realized that in object orientation, it seems to contain a number of ways to create objects and methods. Examples: class Person { constructor (firstName) { this.firstName= firstName } or co...
asked by 23.06.2018 / 17:31
0
answers

How to refactor JS legacy to implement Unit Tests?

I have a WordPress site with lots of JS files that were not structured to be tested - they were not written as modules that can be imported nor is there a app.js that loads all of them as a framework. The files are only compiled and mi...
asked by 27.06.2018 / 14:47
0
answers

Different ways to create an iterator for values

Is there any difference between creating an iterator for the values of an array using these two forms? let myIterator = arr[Symbol.iterator]() let myIterator2 = arr.values() I did some testing and at least the result looks the sa...
asked by 22.06.2018 / 20:15
1
answer

doubt select with modal

I'm having trouble performing an action on my site. I have a select with some options, I need to select one of the options and give submit on a button, doing so would have to open a modal popup? That is, I selected the option, clicked on t...
asked by 09.03.2018 / 13:53
1
answer

Error GraphQL with Sequelize

I'm having an error in the return of a Mutation . Apparently it can not read the id field, but the object I'm sending to GraphQL has this field, and since I'm new to GraphQL I did not understand what the error means. The error: { "e...
asked by 28.02.2018 / 22:26