Questions tagged as 'javascript'

1
answer

Create new tables in SQLite

Working with NodeJS , until now, created new rows when a user was not found, and did it in the following way: const sqlite = require('sqlite'); sqlite.open('points.sqlite').then(() => { sqlite.get('SELECT * FROM users WHERE ID = ${user}'...
asked by 04.02.2017 / 01:35
1
answer

I can not launch an "existing mail" alert

I have taken back the code that another developer left unfinished and I have some problems when I want to register a new user. In the validation of the existing mail, I can not overwrite the previous record, but I can not launch an "existing...
asked by 22.09.2016 / 06:18
1
answer

Counter with angular

Greetings. I have an array $scope.mesas = [{ "mesa": "mesa1", "integrantes": [{ "nombre": "Susana Sofia Urrea Sotelo", "mesa": "1", "entradas": "1", "usadas": "0,", "done" : false, }, {...
asked by 24.09.2016 / 15:41
1
answer

Update data of a form according to a record of an html table

The problem is that when you update the form data, you do it correctly, but the main menu and the navigation bar stops working. I have it like this ... <tbody > <?php while($fila=sqlsrv_fetch_array($consultaVendedores)){ $nu...
asked by 07.10.2016 / 23:45
1
answer

Get metadata from a url

Currently I need to obtain the metadata with a given URL from javascript, but I always have the CORS problem. With the following code I can read the metadata of the own page but I am interested in being able to obtain the information from an...
asked by 12.10.2016 / 22:52
1
answer

Blank global array after two ajax calls

When doing a global variable and after doing push after two queries per ajax is left blank Can you tell me if it failed in something? var productoT = []; angular.module('starter', ['ionic', 'ionic.contrib.ui.tinderCards2', 'ionicLazyLoad']) ....
asked by 18.10.2016 / 19:09
1
answer

pause or play the song that is playing from another button with javascript

I have a player with 3 songs. each song has its "play" icon and in another div "playercontrols" I have a "play" icon from where I want to pause or play the song that is playing. This div "playercontrols" is hidden and when playing a song it i...
asked by 14.10.2016 / 12:04
2
answers

Create LightBox in php

I need to put the LIGHTBOX component in php when creating a table with echo , I have tried with the css and js libraries that I have seen on the internet but it does not work for me, attach the code: $query = $db->prepare($sql); $que...
asked by 12.10.2016 / 16:40
1
answer

Prevent safari from "reacting" by using touch in BODY

I'm doing a webAPP, and using the safari (on an iPAD) it happens that using the touchpad in BODY, where there is no other element, the browser "reacts", it seems that "select" all the elements or something similar. In addition, by pressing the t...
asked by 14.10.2016 / 04:21
3
answers

JSON.parse error

I have a JSON like this: {"id":"53530","name":"Bifurcadores <ul class=\'menu\' style=\'display:none\' id=\'ul53530\'> <li onclick=\'pinchar(,\"Todo\")\'> <a href=\'#\'>LANZAR PRUEBAS TOTAL <\/a><\/li>", "data...
asked by 11.10.2016 / 12:45