Questions tagged as 'javascript'

3
answers

Send checkbox as fix in ajax and process it in PHP

I have a problem when sending the value of several checkboxes through ajax. For example I have: <input type='checkbox' name='ids[]' class="checkBoxGroup" value='1' /> <input type='checkbox' name='ids[]' class="checkBoxGroup" value=...
asked by 18.05.2016 / 16:46
1
answer

Optimize website upload speed - Google Recommendations

Hello, I have a website and using the google speed testing tool, I'm giving you the following recommendations:    Eliminate render-blocking JavaScript and CSS in above-the-fold content    Optimize images    Leverage browser caching...
asked by 09.07.2016 / 20:22
3
answers

How to make a score of Simon says in Javascript?

Good afternoon, I need some help in Javascript since I am not very expert in this language, the problem I have is the following: I'm doing a game of Simon says, which already works, but I would like to be able to add a score that works as follow...
asked by 10.06.2016 / 23:01
1
answer

Javascript - Onclick in links

My question is: can onclick events be done on links? cambiar_estado.php $query = "SELECT * FROM usuarios_datos WHERE ID_OBLIGATORIO = '".$_REQUEST["Id"]."'";...
asked by 15.11.2016 / 16:09
1
answer

Scroll to iframe using buttons and Javascript

Good, on my page I have an iframe and on top of this 3 buttons, one to do Scroll Up, another Scroll Down and another to pause the Scroll. <html> <head> <script> function scrollAbajo(){ var m...
asked by 19.11.2016 / 14:37
2
answers

How to create mini window event in onmouseover

I have a button on a website of a restaurant, and I would like that when the mouse over the button comes out a mini window where this appears: ( link ) I think that with an onmouseover event maybe I could do it, does anyone know which code would...
asked by 01.06.2016 / 08:00
2
answers

Inject a service or factory into a controller in angular.js

I'm getting into the world of angular, and trying to inject a service or factory into a controller, but I get errors. I make a call $ http.post using a controller var app; app = angular.module('AppUPC',[]); app.controller('formul...
asked by 22.02.2016 / 17:27
1
answer

error creating a pdf with jspdf

This simple web is to test jspdf. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title> creando pdfs</title> <link rel="s...
asked by 28.02.2016 / 20:40
3
answers

require is not defined javascript

I have the following problem, I try to call a dependency in this way but it tells me that the word require is not defined, I would like to know if it can only be used on the express server or on any server that is used on node. var Twitter = r...
asked by 14.02.2016 / 15:24
1
answer

Load templates and angular controllers using require.js

I have a problem using require.js and angular.js to load modules asynchronously, and is that many times when making a minimum change I always get the following error:    Uncaught ReferenceError: angular is not defined main.js...
asked by 29.02.2016 / 16:40