We are a user experience design and software development firm
Hire us to design your site, build your application, serve billions of users and solve real problems.
I've been pairing with my colleague Noel Rappin on a cool Rails project lately, which has helped me turn a bunch of conceptual knowledge into real-world experience. I'm writing Ruby code, doing things the Rails way, and hewing faithfully to test-driven development.
I'm also returning to Prototype for my JavaScript needs after almost 15 months of daily jQuery use. The framework has matured nicely while I've been away. One surprise popped up today, however: Prototype 1.6 lacks the ability to simulate native browser events. jQuery offers this in the form of jQuery.trigger, which can simulate both native and custom events. But Prototype's Element#fire supports only namespaced custom events. (Read this mailing-list thread for more analysis.)
I did a couple hours of digging around today - including a trip to Scripteka - and haven't really found a canned, cross-browser solution to this issue. I'm looking for something that offers jQuery's native event firing in a tidy little Prototype extension. Anyone know of such a tool?
Topics: Javascript, jQuery, Prototype, rails, ruby
Hire us to design your site, build your application, serve billions of users and solve real problems.
Hey Brian,
Kangax’s Event#simulate (http://github.com/kangax/protolicious/tree/master/event.simulate.js) seems to do the job for me.
Hope that helps!
Comment by Joe Gornick, Monday, November 24, 2008 @ 6:20 pm
@Joe: Many thanks! Giving it a shot now.
Comment by Brian Dillard, Monday, December 1, 2008 @ 6:47 pm