Questions tagged as 'javascript'

2
answers

How to retrieve data-bind attribute value in html document

I had the need to obtain some values from the data attribute I have the following: <img data-bind="attr: {src: app.utils.getFavicon('http://gamovideo.com/9tbtyuoti8ae')}" src="http://www.google.com/s2/favicons?domain=gamovideo.com...
asked by 12.04.2017 / 19:54
2
answers

checkbox check and "descheckeo" [duplicated]

I have a form with three select , that I get certain data from the database and when generating them, a graph with the detail is displayed according to the select selected of year from 2015 for example to 2017, and after of select...
asked by 17.05.2017 / 14:42
2
answers

Get height and width of an image before loading it with Javascript

No jQuery or similar The href that are stored in the link variable are images that are not found in the DOM I want to save the values of the height and width of X number of images of different proportions with a for cycle, but the way...
asked by 17.05.2017 / 06:16
2
answers

Error getting value from a jQuery text field

I'm trying to get the value of a field configured with the plugin intl-tel-input , in which I ask the user to enter their phone number. The problem is that, for some reason, when sending the data to the server, the field (named phone ) is...
asked by 18.05.2017 / 14:22
1
answer

PHP does not receive parameters after submit

I'm making a relatively simple form in which I use the plugin multiple-select . This is the form: <form id="frmDatos" class="form-horizontal" action="txartelak.php" method="post"> <input type="submit" class="btn" id="sal...
asked by 04.05.2017 / 13:35
1
answer

pause / resume button on comecocos js

I was developing the game of the comet in js, based on the guidelines indicated at www.w3schools.com. My problem is that after pressing the pause button ('spacebar') the keyboard driver stops listening and, therefore, there is no way to resum...
asked by 08.05.2017 / 09:30
1
answer

Modal windows Javascript

I am trying to create, for example, several buttons and each one of them skips a popup. But I do not know how to reuse the code for several buttons, so I create differences functions, and I think that when you rewrite the same code several ti...
asked by 20.07.2017 / 14:27
2
answers

Loading data with JSON shows nothing

I want to show values with JSON when collecting information from two text fields. Here the codes: HTML: <input type="text" name="valor_grados1" id="valor_grados1">Superior <input type="text" name="valor_grados" id="valor_gra...
asked by 13.03.2017 / 19:27
1
answer

Why does a random array throw me undefined?

You will see create an array that creates a random text that you put in a link, replacing the spaces by - but throws me undefined. This is my code: var array = ["texto 1", "text 2", "text 3", "text 4"]; var random = Math.floor(Math....
asked by 13.03.2017 / 22:40
1
answer

touch events (javascript event)

Very good. I'm doing a canvas game for mobile and I have a problem with touch events. I use the clientX, to move the player, if it is in the center of the screen it will jump, and if it is on the sides it will move to this one. Using e.tou...
asked by 14.03.2017 / 17:29