Questions tagged as 'javascript'

2
answers

Pass values from json_encode to variable in javascript

I have a problem when trying to pass the values from one PHP variable to another in javascript. The variable in PHP is an array formulated from a query, I pass that array by a json_encode () and assign it to an array in javascript: var array_e...
asked by 20.03.2018 / 19:51
0
answers

Does anyone know why these errors come out in the editor? [closed]

I'm starting to work with javascript..but when I save the code I get those errors, the truth is if you run the application, I get the error that the variable is not being used yet, I know it's not an error syntax, but the truth is a bit uncomfor...
asked by 20.03.2018 / 21:44
1
answer

Error registering the ServiceWorker: Uncaught (in promise) TypeError: Request failed

I am learning progressive web applications but when I try to install and activate the serviceworker I get that error in line 1 of the service var cacheName = 'weatherPWA-v1.1'; //nombre de la llave de cache var filesToCache = [ '/', '/index.ht...
asked by 20.03.2018 / 15:43
2
answers

Laravel + Vue.js does not pass variables to component

I am working on this project with Laravel and Vue.js . I need to show a table with a lot information. For this I decided to use a Vue component that renders a table and the paging buttons with little information. This works very well in...
asked by 02.03.2018 / 21:06
0
answers

return Request Array XMLHttpRequest

I am developing an extension for the Chrome browser. When a tab is opened or updated, a content.js (a JavaSCript) is injected through chrome.tabs.executeScript through a background.js What the content.js does is: search all the JavaScr...
asked by 04.03.2018 / 00:16
1
answer

Uncaught exception 'JonnyW \ PhantomJs \ Exception \ InvalidExecutableException' in CentOS 6.7?

I'm trying to use php-phantomjs , install it using composer: ($ composer require "jonnyw/php-phantomjs:4.*") The installation was successful but when I try to use it, with the basic example that comes in the page of: jonnnnyw I'm...
asked by 01.03.2018 / 00:10
0
answers

Modify height function

I have a SQL query that sometimes results in 1000 lines or 10 (to modify the height I used a function with the scrollbar), then I created a filter but ... when applying it the height stays enormous. I would like know how I could reduce it when a...
asked by 06.03.2018 / 08:37
1
answer

help with this khan academy exercise I do not know what the error means

/ the error tells me: Mmh ... the onClick method should only ignore the invalid spins on the boxes that are not empty, but it seems that your method is doing something else / cat game var playerTurn= 0; var NUM_COLS=3; var NUM_ROWS=3; var...
asked by 09.03.2018 / 03:08
3
answers

how to add cells of all the pages with datatable

I need to add all the cells of a Datatable column, I have tried several ways but I have not yet managed to get it to work, the closest thing has been: for (var i = 1; i <= nume1; i++) { total += Number(todos.rows[i]....
asked by 18.04.2018 / 15:37
1
answer

Calculate the remaining amount of each installment, depending on the number of installments

I want to calculate the remaining amount after each installment here this part of the code in the part of "Forms of payment" is where I want to do it, when selecting the amount of installments the rows are generated with the amount of the quota...
asked by 17.04.2018 / 14:31