Questions tagged as 'javascript'

1
answer

Sort divs in a list

I have a list of divs, which has a name and a price. I did a function to sort the ASC and DESC divs, store the div (object) and the displayed price in an object. Then I make the order with a basic function of JS. The problem is that when I tr...
asked by 20.12.2017 / 17:26
1
answer

How to verify that the node does not exist firebase?

How can I check if the name exists in the users database? With this code I can see that the user exists but when the variable user changes to another user I do not get any error. var user = 'Moises'; firebase.database().ref('usuarios...
asked by 21.12.2017 / 15:13
1
answer

How to use websocket server-server in node.js?

Hi, I am new to node and I was wondering how I can consume a websockets service from node, os server-server, the second is an external server here the link: link , Thank you very much community for your answers.     
asked by 25.02.2018 / 16:33
2
answers

Add months to a date in an input with javascript

I found a JS that increases the months to a date but only works when the month is January (01), that is, if I put 10/01/2019 and I add 9 months it executes: 10/10/2019. But if I put 10/05/2019 it executes: 02/10/2053. Someone can help me w...
asked by 27.12.2017 / 17:03
1
answer

Color set day

I'm doing a calendar with js, html and css, and my problem is that I would like that when the day is a Sunday of the following month, it could appear in a different color, for example a blue. I have since I appear the days of the following month...
asked by 05.06.2018 / 16:04
1
answer

Change the value of a hidden embedded in the column of a table

I have a way in HTML and JavaScript . I need by code to assign to each line of a table, which have status 1 , a subaddress through a combo (resolved this part). The problem is that I need to duplicate any row using a button so that this s...
asked by 03.01.2018 / 01:17
1
answer

Error consuming JSON. RESTful Angular app.js

I have the following project, quite simple, that consumes the following JSON object obtained from a local web service. {"nombre":"Miguel","id":1,"profesion":"Desarrollador"} My app.js is like this: $(document).ready(function(){ $.ajax...
asked by 03.01.2018 / 13:06
1
answer

How to get ajax response in a variable or alert

Good afternoon, I'm trying to get the answer from my ajax request, but I have not been able to do so. I have this code that works perfectly to send but I do not receive the answer and I would like to have that answer in an alert. Here the aja...
asked by 17.12.2017 / 20:57
0
answers

Fail to calculate input data when editing a page, it only works when creating

I am using symfony 2.8 with php7.0 and I have a form that calculates a data with javascript. The detail is that it works well when creating a new record but if I am going to edit a record already saved the function of calculating does not work h...
asked by 05.12.2017 / 03:05
0
answers

Copy Phone complete with country code with extension intl-tel-input [closed]

I have a problem using the extension intl-tel-input ( link ) Start the CDN: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/12.1.5/css/intlTelInput.css"> <script src="https://cdnjs.cloudflare.c...
asked by 06.12.2017 / 15:44