On 12/13/06, Fred <[EMAIL PROTECTED]> wrote: > > getElementsByTagName only fails in the above scenario if a second load > script is used with a different path to the first one (hence you need > an updated path) *and* it is in the head element. Below is a load > script that works fine as long as the second and subsequent loads are > done from the body. It can easily be extended to include more > features, I just wanted to show you can avoid a recursive node walk > (which must grate on anyone looking for a clean design).
The recursive descent is only document->head->head elements. It is not a complex deep walk with long descents into fruitless branches. It is almost a direct hit especially if you put the loader script inclusion high in the head element. There are situations where you can't move scripts from the head to body elements just willy-nilly <http://www.w3schools.com/js/js_whereto.asp> Peter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
