Eventos en jQuery, cómo usar on.

En la última entrega vimos que el siguiente código no funcionaba: El anuncio desencadenó un charla con Sergi manteniendo que debería escribir directamente sobre delegación de eventos, que es precisamente lo que vamos a tratar ahora. Delegando eventos. jQuery cuenta con muchos métodos para delegar a eventos (bind, delegate o live). Sin embargo, estos métodos … Read more Eventos en jQuery, cómo usar on.

Un alto en el camino, eventos.

Hacemos un alto en el camino para aprender un poco más sobre los eventos. Serán tres entregas: Eventos, cómo funcionan. Características básicas. Eventos en jQuery. Veremos cómo usar on. Eventos en jQuery. ¿Qué es eso de trigger? ¿Qué es un evento? Un evento puede representar varias cosas, pero normalmente es una respuesta a una acción … Read more Un alto en el camino, eventos.

Aprendiendo jQuery con la web del Senado, I

Notas previas. En primer lugar, agradecer a los desarrolladores que han trabajado duramente en funciones.js y en aquellos que no se han molestado en pasarlo por un minimizador de código. Se recomienda leer antes el artículo de Javier Ramírez Los problemas del desarrollo web en España resumidos en senado.es. El código está disponible en este … Read more Aprendiendo jQuery con la web del Senado, I

Transforming CSS selector to an XPath query


Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

So. Easy. < View plain text > code require ‘nokogiri’; Nokogiri::CSS.xpath_for(css_selector)

The One where I spent a morning because -0.5 turned to be parsed as 1/2

This summer, I have been doing some amazing stuff for GeoGebra. First of all, I would like to thank two people: Miguel, my mentor, who guided me through all that really advanced mathematical stuff; and Heinz Kredel, JAS creator and developer, who answered all my questions and implemented my suggestions as quickly as I could … Read more The One where I spent a morning because -0.5 turned to be parsed as 1/2

Status update for GeoGebra.

My contributions for the first part of the first part of GSoC 2010 can be divided in two: general improvements and coding. General improvements I made a few general improvements on GeoGebra: Refactored build.dir in ant build file. Previously, build.dir wasn’t in the root directory. A few ant tasks were added, such compile-grammar, compile-oe (outside … Read more Status update for GeoGebra.

Writing your own JRuby extension. Part II: Creating your first class.

What’s the point of coding a JRuby extension if you don’t create classes? Well, I cannot think of any case, but if you find one, please, let me know. Do you remember Java’s classes hierarchy? If so, you’ll realize  that Java objects inherit from java.lang.Object by default but that is not actually what we need. … Read more Writing your own JRuby extension. Part II: Creating your first class.

Writing your own JRuby extension. First problem.

Maybe, when requiring your just created extension, you get a LoadError. If it is the first time you require it, it is quite likely that you have not followed JRuby requiring conventions. If you want to know how require works, you can find the best documentation ever about it in the comment before org.jruby.runtime.load.LoadService class. … Read more Writing your own JRuby extension. First problem.

Writing your own JRuby extension. Part I: BasicLibraryService.

Note: not code in this post, but you can see the code in Github. Follow the links! Writing a JRuby extension is very easy, but there are almost not post out there about it. As far as I know, there is only one, Ola’s. It is a really good tutorial indeed, but it lacks some … Read more Writing your own JRuby extension. Part I: BasicLibraryService.

If you are (un)happy with Ruby 1.8.7

There are two interesting topics in the Ruby Forum being discussed right now. Both opened by George Brown (the guy behind Prawn). They are: If you are happy with the direction of Ruby 1.8.7+, respond If you are unhappy with the direction of Ruby 1.8.7+, respond I’ve read every single message because backwards compatibility in … Read more If you are (un)happy with Ruby 1.8.7