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.
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.
In the JavaScript we'll replace the name of this with a unique value which will be based on the current time.
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.
If we go back to our application and enter a chat message it is broadcast back to us through Faye and we see the JavaScript that we'll need to evaluate to add the new message to the list.
Si volvemos a la aplicación e introducimos un mensaje, Faye nos lo devuelve y vemos el JavaScript que tenemos que evaluar para añadir el nuevo mensaje a la lista.
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.
We also need a way to reference the the table from JavaScript so we'll give it an id.
We have not modified any files of Joomla!, Nor is he learns what has happened and we can run the Javascript we want!
No hemos modificado ningún fichero de Joomla!, es más ni se entera de lo que ha pasado y ya podemos ejecutar el javascript, joomla
By default the JavaScript console only shows errors from web content.
Por defecto la consola JavaScript solo muestra errores desde contenido de red.
The rolling dice are simulated by calling the JavaScript random function.
Los dados de rodadura se simulan llamando a la función aleatoria JavaScript.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.