Kjell Bublitz
2008-Feb-24 18:03 UTC
Loading Prototype after Prototype was loaded. Unkown enviroment
Hi all I''am about to write a widget that uses Prototype. Something like a facebook widget, but for just any website, blog, whatever.. So i do not know what javascript is already in place on the target site that includes that widget. Now i wonder what happens if the site - where i remotely include prototype.js on load - already has prototype loaded. Wouldn''t that break the sites own javascript functions / overlap? Is there any way to "sandbox" the library so it is safe to include? Of course i could test if prototype is already loaded, but what if it''s an older version.. i probably would have to load my remote version anyway, but that could still lead to conflicts on shared functions, no? Any hints are highly appreciated. Best, Kjell --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---