Questions tagged as 'javascript'

2
answers

Auto height resize window jquery

With the following code, I select the elements to apply as the height of the browser; but later, when I size the browser, the height does not change. function init_heght(element) { var y = $(window).height(); $(element).css('height', y...
asked by 12.03.2017 / 05:11
1
answer

API Mercadopago: How to generate a new Payment Token, after a "payment" rejected

Testing in Sandbox environment, I have an app that generates a "payment token", which I then send to the server to generate the "payment". The scenario is during the test of error messages: I try insufficient funds, I add FUND in front of t...
asked by 19.02.2017 / 07:01
1
answer

Help with error in Ping Pong game [closed]

At this moment I am programming a game of Ping Pong and I am supporting myself in a tutorial to do it. The question is that I have an error of the type: Uncaught SyntaxError: Missing initializer in const declaration and I can not find any...
asked by 31.03.2017 / 03:38
2
answers

How to build a route with the Google Maps API?

Good, I want to know where to start to research to create a route on the Google map, but I want to make a route to convenience, I mean not optimized by Google, is to indicate the route of a public transport BUS. Thanks     
asked by 21.02.2017 / 21:52
1
answer

Problem with an HTML / JavaScript / PHP form

I have a problem with an HTML / JavaScript form that is then processed and validated with PHP: On my site there is an HTML form, and the first label is a selection of multiple options, however looking with a bit of JavaScript I am trying to m...
asked by 03.04.2017 / 23:31
1
answer

I can not modify the width of a div with JS

Good morning, I am using a small script to modify the width of a div, which is repeated several times. <script> $(function() { var ancho_div = document.getElementsByClassName("seccion_logro")[0].offsetWidth; var ancho_imagen = d...
asked by 02.04.2017 / 16:14
2
answers

How to know when a button has been clicked, which was generated dynamically in JS?

I'm working on a web application implementing HTML , JAVASCRIPT , JQUERY From JAVASCRIPT , I am adding code HTML , to generate buttons, as needed, within for , but I only add as I am adding it with the fol...
asked by 21.04.2017 / 00:42
1
answer

Problems with anchors in browsers

It turns out that I'm creating a WordPress template and I'm having trouble redirecting to specific parts of the area, like the homepage. I want to go to this page , which obviously by the anchor I'm telling you to send me to that area of the...
asked by 23.03.2017 / 19:18
2
answers

Validate Json API response

In the last days I have had a problem that I have not been able to solve, I hope to get your help, please. The problem is this: I am creating a page which has a module in which inputs are created dynamically but each of those inputs must return...
asked by 25.03.2017 / 16:58
3
answers

Query event click jquery

I'm learning, I know some php and little jquery. I have to make some adjustments to an application of my work, developed in cake php. At this moment, clicking on a link takes me to a previous screen. I need to give that same behavior to a button...
asked by 27.12.2016 / 14:50