I''m trying to integrate niftycube (http://www.html.it/articoli/niftycube/index.html) into my rails app. It however requires that you specify window.onload commands for each of the rounded areas which you wish to use. Given that my app is setup using layouts, I was wondering if anyone had any good ideas of how to incorporate this into the application. One approach that comes to mind is to do <%= javascript_tag "window.onload=function() {Nifty(''div#box'',''big'');}" %> inline in the view, but this doesn''t seem to work if there are multiple divs you want rounded in one view, (the onload function gets over ridden). I guess you could also add an element to an array every time you want something rounded but this seems cumbersome. Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---