Questions tagged as 'javascript'

2
answers

obtain value of a td by means of an onchange select in another td within the same tr in a foreach

I have this table created with the% co_from% a% co_from% is used <table class="table table-bordered"> <tbody> @foreach($usuarios as $key => $tag) <tr id="caputracorreo" data-us...
asked by 25.11.2016 / 15:49
1
answer

React animations error # 119

I am trying to make use of the ReactCSSTransitionGroup library that they explain in the official React documentation. I'm copying this code to try. But still it does not work. I have this error in the console: Uncaught Error: Minified Reac...
asked by 25.11.2016 / 18:38
1
answer

I can not get Mustache to work

I'm following a tutorial on java modular script, in the same attempt to create on my server a small test like in the following codepen: link I have never used Mustache but it seems to be interesting although I can not make it work or look like...
asked by 25.11.2016 / 12:06
2
answers

Error backoffice.js: 128 Uncaught TypeError: Can not read property 'replace' of null (...)

When using the function replace() I get this error. I am using it because I am generating html code with user input values with a button. The problem is that if the user enters double quotes (") or simple (') the code is not generated...
asked by 21.12.2016 / 10:02
1
answer

Sort the values of a JSON file

I have a JSON file, and what I want to do is make a function in which I return an ordered list limited by 10 users (if possible, in an array, but if that is complicated, I would appreciate your suggestion). This data comes from: let points...
asked by 21.12.2016 / 10:52
1
answer

Create backup files by time in Javascript

I have a JSON file in which I want to create a series of backups in a period of 5 minutes, at this moment, I have a program running with NodeJS that reads and writes a file defined by: let points = JSON.parse(fs.readFileSync('./points.json', '...
asked by 21.12.2016 / 11:35
1
answer

Problem when using image in game Pong with JavaScript

I'm trying to adapt a code that I found googling for the Pong game. What I try is to replace the ball drawn by an image of a ball in image. Searching the Internet suggest that you use the following code: var img = new Image(200,200); img.src...
asked by 11.12.2016 / 18:58
1
answer

Read a zip inside another zip in Javascript

I have a zip file called A.zip, this file has inside more zip files called A_001.zip, A_002.zip .... And inside each of these zip there are several .txt files that I want to read and put in different arrays What happens is that I have no idea...
asked by 09.12.2016 / 14:21
1
answer

Create pop-up bootstrap modal for each state with buttons

I have a table where there is a column called " estado ", each user / row / id has a status as a series, see ( 0,1,2 ). The description of the states is: 0-inactive 1-active 2-banned. When loading the page I get the current status th...
asked by 17.11.2016 / 14:58
1
answer

Does not return JSON and shows error only to me

Very good, I have a code that the data of a form sends in a JSON by means of ajax with the post method to an external server, the external server is already doing what it has to do and it returns me to my other JSON The problem is that this a...
asked by 14.11.2016 / 13:35