Questions tagged as 'javascript'

0
answers

Error in $ element console, I am using $ mdDialog from Angular Material

I'm trying to solve this problem that I get in consola when I'm in the url of the server where my project is, "PS: In my localhost I do not get this error ..." I have this view with the controller I use. .when('/ase...
asked by 26.01.2018 / 21:48
1
answer

Execute form in modal window

I am adapting a method to convert a JSON file to CSV. The fact is that in an HTML / PHP page it works for me without problem, but when I put it inside a modal, the button that does the transformation from JSON to CSV is not executed. This is the...
asked by 01.12.2017 / 09:35
1
answer

Mathematical calculations in real time through the onchange event in javascript

I have a select element configured in a form with a number of options, depending on the selected option, some values are brought via ajax of the database and with the following function it makes the comparison of the values of that data. var p...
asked by 01.12.2017 / 06:06
1
answer

Prevent a table from moving its columns when a scrollbar appears

In this image you can see that all the columns fit well but ... When the scrollbar appears, the columns in the table below do not match the ones above. If anyone knows how to avoid this, I would appreciate it very much.    HTML...
asked by 30.11.2017 / 19:47
0
answers

Send events with SokcetIO and NodeJS

I have a / index path in which I have the following script socket.on('m',function(){ console.log('hola mundo') }) on the route / two I have $('#btn-send').click(function(){ socket.emit('hola') } both have the connect, and the...
asked by 21.11.2017 / 21:12
1
answer

Datepicker. The Calendar is not opened in input text [duplicated]

I'm making a online booking website My question is this: If I select an entry date (check_in), which automatically checks out on check out date, I block ALL previous dates because it must be a higher date . Why do not I get the Datepic...
asked by 23.11.2017 / 09:37
2
answers

Place the value of a javascript variable in a textarea

Good day I would like to deposit the result that a variable of javascript throws at me in a textarea, thanks in advance! var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator....
asked by 23.11.2017 / 16:45
1
answer

Problem with Turbolink in ruby on rails

My problem is as follows, I am setting up an administration panel and in my navigation I have the classic buttons to minimize the navigation bar and the dropdown for each action that has an subaction and everything works in a startup but I move...
asked by 20.11.2017 / 00:05
1
answer

How can I increase a variable that is in php using javascript and that in turn with a button reload the page

I'm doing a program that extracts information from a database and I want it to be incremented by a counter that acts as an id in a SQL query when it is given in the "next" AND "previous" buttons. $acum = 1; $consulta = "SELECT * FROM noticia w...
asked by 19.11.2017 / 18:03
1
answer

Collisions on canvas html5 game

I hope you are having a good day. I'm here because I have a canvas collision problem ... I am creating or trying to create my first jjuego with canvas and javascript. I'm on the side of collisions, which does not work for me, I do not understand...
asked by 19.11.2017 / 17:11