Rob has mentioned this the last several time the discussion has come up, and yet I still don't remember it. I should--it's certainly easy and effective.
At times I wonder whether my brain is hard-wired to select the most difficult solution available. Maybe one of these days I'll wise up. =) Thanks Rob! TAG On Apr 25, 2007, at 11:22 PM, RobG wrote: > The simplest solution is to setup an initialisation function (say > called "init()") that you would have called onload and call it from a > script just before your closing body tag, e.g.: > > <body> > > <!-- lots of stuff ... --> > > <script>init && init()</script> > </body> > > > And save yourself a whole slab of browser-sniffing code that will fail > at least some of the time. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
