Chris McCormack
2007-Jun-20 18:28 UTC
\n unterminated string constant in external .js files
Hi all - When I import prototype.js and scriptaculous.js as well as a 3rd party clickstream .js file (or other .js files now and again). I get lots of "\n unterminated string constant" errors in firebug(firefox) in the clickstream(or other) .js file. Proto+Script still work fine and report no errors. I know this is a prototype issue(prototype is the culprit of the errors but it is misleading as it reports the errors in the other .js files) as I sometimes get it when coding some of my own javascript stuff and have to mess about deleting new lines and spaces here and there etc until prototype is happy again. Is this a known issue? Is there a fix/workaround for it? Can I stop prototype having this behaviour at all? I did read on the struts2 mailing list that the reason Dojo was selected over Prototype and Scriptaculous to be the ajax framework included was because Prototype was not safe in a portlet environment due to it not being namespaced (where dojo is). Could this be the issue I''m seeing here ? Any help and all suggestions are very welcome :) thanks Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Are you using some form of script concatination? This sounds like an issue when dynamically compressing files with jsmin. Also try: http://clientside.cnet.com/category/3rd-party-libraries/prototype/page/2/ http://ajaxian.com/downloads/code/prototypify/prototypify.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Cody Sawn also has a blog post about something similar to Prototypify at: http://blog.slimc.com/prototype-removing-custom-attributes/ his site seems to be down at the moment though. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---