Does String.evalScripts() work when the opening SCRIPT tag of a SCRIPT block contains common attributes? I''ve tried and it does not appear to be working. Here''s an example: <script type="text/javascript" charset="ISO-8859-1" language="JavaScript"> //<![CDATA[ <!-- alert(''look! it works!''); //--> //]]> </script> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
broberts
2008-Apr-21 23:04 UTC
Re: Does String.evalScripts() work on well-formed script tags?
I answered my own question. It was the scoping issue as described in the Prototype API documentation on Ajax.Updater. I have one suggestion for the Prototype API Docs... It would be really helpful if the Ajax.Updater section titled "About evalScripts and defining functions" was included (linked to) in the documentation on String.evalScripts, since it appears that the exact same concern applies in both cases. On Apr 21, 4:28 pm, broberts <brobert...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Does String.evalScripts() work when the opening SCRIPT tag of a SCRIPT > block contains common attributes? I''ve tried and it does not appear > to be working. Here''s an example: > > <script type="text/javascript" charset="ISO-8859-1" > language="JavaScript"> > //<![CDATA[ > <!-- > alert(''look! it works!''); > //--> > //]]> > </script>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
broberts
2008-Apr-21 23:08 UTC
Re: Does String.evalScripts() work on well-formed script tags?
Do you guys need some help keeping the documentation updated? Let me know. I''d be glad to chip in. I really think documentation is a large part of what makes or breaks a JavaScript framework. On Apr 21, 6:04 pm, broberts <brobert...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I answered my own question. It was the scoping issue as described in > the Prototype API documentation on Ajax.Updater. I have one > suggestion for the Prototype API Docs... > > It would be really helpful if the Ajax.Updater section titled "About > evalScripts and defining functions" was included (linked to) in the > documentation on String.evalScripts, since it appears that the exact > same concern applies in both cases. > > On Apr 21, 4:28 pm, broberts <brobert...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Does String.evalScripts() work when the opening SCRIPT tag of a SCRIPT > > block contains common attributes? I''ve tried and it does not appear > > to be working. Here''s an example: > > > <script type="text/javascript" charset="ISO-8859-1" > > language="JavaScript"> > > //<![CDATA[ > > <!-- > > alert(''look! it works!''); > > //--> > > //]]> > > </script>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jdalton
2008-Apr-22 03:57 UTC
Re: Does String.evalScripts() work on well-formed script tags?
Post your documentation requests via a ticket in LightHouse: http://www.prototypejs.org/contribute The error your speak of has been addressed via this patch (though it is not in the core yet) http://dev.rubyonrails.org/ticket/11423 best, JDD :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
broberts
2008-Apr-22 16:37 UTC
Re: Does String.evalScripts() work on well-formed script tags?
Thanks. On Apr 21, 10:57 pm, jdalton <John.David.Dal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Post your documentation requests via a ticket in LightHouse:http://www.prototypejs.org/contribute > > The error your speak of has been addressed via this patch (though it > is not in the core yet)http://dev.rubyonrails.org/ticket/11423 > > best, > JDD :)--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---