If we don't define any gon variables in a controller action and we try to call gon in the JavaScript we'll get an error as the gon object won't have been set.
Si no definimos variables de gon en la acción del controlador e intentamos llamar a gon en el JAvaScript recibiremos un error porque el objeto gon no habrá sido creado.
The JavaScript we'll covert is the code we wrote back in episode 261 [watch, read] to validate credit card numbers.
El código que vamos a convertir es el que escribimos en el episodio 261 [verlo, leerlo] que validaba números de tarjeta de crédito.
The JavaScript we'll write involves some DOM manipulation so we'll use the Prototype library to make this easier.
El JavaScript que vamos a escribir implica que tendremos que manipular el DOM por lo que para hacerlo más fácil utilizaremos la librería Prototypp.
Next we can create the skeletal JavaScript file that we'll gradually fill out over the course of this series.
A continuación, podemos crear el archivo esquelético de JavaScript que gradualmente llenaremos a lo largo de esta serie.
Keep this in mind when we turn our attention to writing and enqueuing our own JavaScript, as we'll need to use this handle one more time.
Ten esto en mente cuando nos dediquemos a escribir y encolar nuestro propio JavaScript, ya que utilizaremos este handle una vez más.
Connect Weglot to your website using our JavaScript integration and we'll do all the heavy lifting for you.
Conecte Weglot a su sitio web con nuestra integración de JavaScript y nosotros haremos todo el trabajo pesado por usted.
The server has a JavaScript file that we'll need to include in our application's layout file.
El servidor dispone de un fichero Javascript que tenemos que incluir en el layout de nuestra aplicación.
We also need a way to reference the the table from JavaScript so we'll give it an id.
También tenemos que poder referenciar la tabla desde JavaScript por lo que le daremos un id.
We don't want to hard-code this in the JavaScript code and so we'll generate it dynamically in our Rails app.
Como no queremos escribir a fuego esta dirección en el código JavaScript vamos a generarla dinámicamente desde nuestra aplicación Rails.
It also includes a CSS file and a JavaScript file, which we'll add next.
También incluye archivos de CSS y JavaScript, en los cuales vamos agregar lo siguiente.
Now that we've looked at the fundamental building blocks of JavaScript, we'll test your knowledge of loops, functions, conditionals and events by building a fairly common item you'll see on a lot of websites - a JavaScript-powered image gallery.
Ahora que hemos visto los bloques constructores fundamentales de JavaScript, probaremos tus conocimientos en bucles, funciones, condicionales y eventos construyendo un ítem bastante común en muchos sitios web - una galería de imágenes creada con JavaScript.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.