Questions tagged as 'javascript'

2
answers

Copy the contents of an element to the clipboard using JavaScript

How can I copy the contents of a div (or any element) to the clipboard using JavaScript / jQuery only without using Flash? For example, if I have this code: <p id="mi_parrafo"> Texto que quiero copiar </p> <...
asked by 07.12.2015 / 17:25
2
answers

Load an image when the loading of another

I have many images but loading them slows down the page, and what I need is that I upload the first image at 100% and then start loading the next one, and that the cycle repeats until all the images are loaded. For example: <div class="i...
asked by 13.03.2018 / 21:29
1
answer

Error 404 on AJAX requests from Android after changing the server certificate

We are doing a hybrid app with Phonegap and jQuery Mobile that, through ajax requests, retrieves some data from an external server in JSON format and then treats them. We have never had any problems in iOS or Android. Since we updated the s...
asked by 18.12.2015 / 09:04
9
answers

CSS for alert () or confirm () JavaScript

I would like you to help me to give css to the alert() and the confirm() of javascript, so that my messages are something elegant, I do not want to opt for a modal only for confirmations, so if someone knew how to I realize I would...
asked by 14.08.2017 / 04:53
2
answers

Manipulate the grid checkboxes with Knockoutjs and KendoUI

I would like to know how to detect the change in ownership of an observable object in a grid when selecting a checkbox with knockoutjs. The code that I currently have is this way. <div data-bind="kendoGrid:{data: asignados, columns:columns}...
asked by 18.11.2015 / 18:49
2
answers

Can (a == 1 && a == 2 && a == 3) be evaluated as true?

This is an interview question: Is it possible in Javascript that (a == 1 && a == 2 && a == 3) can evaluate true ? Reference: Related question in SOen     
asked by 24.01.2018 / 14:15
4
answers

OnClick event assignment using document.getElementById

Code function asignarEventos() { var uno = document.getElementById("uno"); var dos = document.getElementById("dos"); var tres = document.getElementById("tres"); var arreglo = [uno, dos, tres]; for (var i = 0; i <...
asked by 01.08.2017 / 15:05
4
answers

Count how many elements with the same class are with JQuery

I would like to know how I can count the elements that exist with the same class in an HTML to be able to be with JQuery but with JavaScript also OK. Thank you! Example div class="hola" div class="hola" div class="hola"    A s...
asked by 17.04.2018 / 15:54
2
answers

Javascript dates

Good morning, I had the following question, can it be done that when a input type="date "have passed more than 65 years difference between today's date and the one put by the users, a input type="radio" will be deactivated? That...
asked by 26.10.2016 / 10:59
7
answers

Write only once each key, ignoring the repetitions

I want that when a key is pressed a long time it does not write several times. ejemplo: tecla tiempo resultado a 3seg a I made this code but it does not work, use the 3 events. var texto=document.getElem...
asked by 19.03.2017 / 17:32