Category Archives: JavaScript

HTML5 vs Flash !

Lee Brimelow caught some major heat this week from the Apple f-boys and the open source zealots over his post on the iPad’s lack of Flash. The biggest complaints against flash seem to be CPU usage spikes and/or annoying animation. Not to worry HTML5 has both those covered

Try it for yourself, my macbook [...]

Also posted in ActionScript, Flash | Tagged | 5 Comments

PureMVC for JavaScript Released

I won’t be dropping my beloved Flex anytime soon but it’s nice to know if you must do JavaScript (and let’s be honest Flex isn’t always the best tool) you can at least use a familiar framework.
Check out PureMVC for JavaScript.

Posted in JavaScript | 1 Comment

Interesting Links: YUIRails, Ebb faster than Mongrel and thin

The JavaScript library I use most after prototype is YUI so a big thanks to Chetan Patil for making it much easier to use in Rails.
Ruby Inside has a post on Ebb a small and fast web server for hosting Rails and Merb applications (and soon Django).
Ebb is a small, extremely high performance Web / [...]

Also posted in Ajax, Merb, Ruby on Rails | Leave a comment

Rails 2.0 and link_to_remote :with

I’m moving an old app to Rails 2.0 and other than fixing some routes Ajax calls with link_to_remote and the :with parameter was the only thing that gave me some trouble. In the old version I was grabbing the current value of a drop down list with Prototype and passing it along using :with like [...]

Also posted in Ajax, Ruby, Ruby on Rails | 1 Comment

Rails helper for SWFObject

SWFObject (formally know as FlashObject) is a javascript file that unobtrusively embeds flash in a web page. It works by replacing a holder div with Flash content, if the end user doesn’t have Flash or the targeted Flash player SWFObject will ‘fail’ silently and keep the original div. Here’s a Rails helper that let’s you [...]

Also posted in ActionScript, Flash, Flex, Ruby on Rails | 8 Comments

Calling JavaScript from Flex with External Interface

The Flex Ajax Bridge, which for some reason you can only download with Flex Data Services (a 150mb+ download for a 16k file), isn’t the only way to send data from Flex to JavaScript there’s also the External Interface API. I’m working on a Rails project tracker application for a construction company and need to [...]

Also posted in ActionScript, Flex | 2 Comments

New Google Analytics Mixes up Flash and Ajax

Just checked my sites stats and noticed that Google, the Ajax kings, have added some Flash spice to Google Analytics. Each technology handling what it does best, Flash as the presentation layer and Ajax as the data workhorse.
More on the analytics blog.
Flash/Flex has been blowing up lately, it’s faster growing book category for O’Reilly (via [...]

Also posted in ActionScript | 4 Comments

Use javascript/prototype to get a text field value for link_to_remote

This one was a headache, and by headache I mean I was literally pounding my head on the desk trying to figure it out.
I wanted to use link_to_remote to create a model from another model’s form. The example being a ‘Product’ model that belongs to a ‘Group’, the user would select which group a product [...]

Also posted in Ruby on Rails | 8 Comments

Debbugging Your Web Apps

Debugging has come a long way in the last few years, the current crop of tools is making web development faster and easier than ever before.
A great tool I found today is FireBug (late to the party as usual). It let’s you what’s going on under the hood of the browser including JavaScript, CSS, HTML [...]

Also posted in ActionScript, Ruby on Rails | Leave a comment