Questions tagged as 'javascript'

1
answer

get icon name and show it in input with JS

How to do so that by giving click icon, I can send the icon name to input , in this case I need to send input what contains the class of my tag i < i class="fa fa-android"> < /i>     
asked by 17.11.2017 / 04:05
1
answer

In Javascript. Where the default values are passed in a daughter class (extends). In "super" or in the "constructor"

Where the default values of the past arguments from the superclass (Vehicle) to the daughter class (bicycle) should be placed: class Bicicleta extends Vehiculo { constructor({numeroDeRuedas=2, tieneMotor=false}={}){ super(numeroDeRued...
asked by 30.11.2017 / 12:21
1
answer

Why does not the variable I want in PHP come out of the console?

Greetings, I have this JS code where I use AJAX ($ ("# pass") is the password of the form): function egiaztatuPasahitza(){ var data = $("#pass"); var request = $.ajax({ url:'egiaztatuPasahitza.php',...
asked by 30.11.2017 / 22:32
1
answer

Foreach + InnerHtml take a concrete value

I have a foreach where several forms are generated and for each one there is a modify button, I want to give that button modify to take the input name="txtdireccion_mac" that belongs to it. --- HTML @foreach($datos_usuario as $value)...
asked by 29.11.2017 / 22:44
2
answers

Execute function passed by json

I have this ajax function: function GuardarJson(url,que,id,cod,param,respuesta) { var Daticos = {id: id ,codigo: cod, respu: respuesta }; $.ajax({ url: "Paginas/"+url+"?que="+param, data: Daticos, type: "post",...
asked by 25.12.2017 / 22:14
2
answers

how to generate divs with css Skew and images inside

Hi, I'm wanting to put together a gallery like the example page that I attached guide page where TOURNAMENTS says it's a carousel and it has images in diagonal with hovers, put together a small example but I can not make the images go straight...
asked by 15.12.2017 / 18:19
3
answers

How can I make ten different requests to a server per ajax?

Hello, I have a server that gives me a random word and when creating a loop, it always gives me the same word and I do not know how to make me give me ten different words. Here the code: var palabra = ""; function Creapalabra() { var xhtt...
asked by 17.12.2017 / 15:12
1
answer

Variable passed from php to javascript does not show all characters

I have this function on a button "<td><button type='button' class='btn btn-primary' onclick='CrudNotas(".$row['rut_alumno'].")'><span class='glyphicon glyphicon-plus' aria-hidden='true'></button></td>" which wh...
asked by 05.12.2017 / 23:44
1
answer

HTML and JS form

Some bug in the code ???    Error Uncaught TypeError: Can not read property 'value' of null HTML <form> <label for="nombre">Nombre: </label> <input type="text" name="nombre" id="nombre" />...
asked by 04.12.2017 / 19:39
1
answer

Get the time with jquery

I have the following code, with this I can add a class (today) in a div. Now what I need is to be able to do the following, 18:00 - 20:00 I want to be able to calculate that if the time range is not between 18:00 y 20:00 , add a text...
asked by 06.12.2017 / 09:38