For some reason, after the most recent upgrade to the latest prototype version, some of my scripts stopped working in IE. They continue to work in FF, but IE shows a "script error". Specifically, I''m having problems with: $(''the_item'').innerHTML = ''whatever''; Any help/insight is appreciated. Thanks --Kyle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
$(''item'').update(''whatever''); On 29 nov, 08:22, Kyle Brady <brad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> For some reason, after the most recent upgrade to the latest prototype > version, some of my scripts stopped working in IE. They continue to > work in FF, but IE shows a "script error". > > Specifically, I''m having problems with: > $(''the_item'').innerHTML = ''whatever''; > > Any help/insight is appreciated. > > Thanks > > --Kyle--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ok, I''ll have to give it a try tomorrow... but why would .innerHTML stop working altogether? Especially in IE, when Microsoft supposedly developed the innerHTML functionality back in the day? Thanks for the help --Kyle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Please give a full example, preferably at an online URL where this happens. You can also try using Microsoft Script Debugger to isolate the line of code where this happens. The latest version of Prototype sure works fine here on IE, and .innerHTML isn''t even part of Prototype -- in this case i assume that $(''the_item'') returns nothing. To debug it, a full HTML page is required. Best, Thomas Am 29.11.2007 um 08:22 schrieb Kyle Brady:> > For some reason, after the most recent upgrade to the latest prototype > version, some of my scripts stopped working in IE. They continue to > work in FF, but IE shows a "script error". > > Specifically, I''m having problems with: > $(''the_item'').innerHTML = ''whatever''; > > Any help/insight is appreciated. > > Thanks > > --Kyle > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Kyle Brady wrote:> Specifically, I''m having problems with: > $(''the_item'').innerHTML = ''whatever'';MSIE (some version...) has been known to have problems with ids using the "_" character - sometimes in very unusual circumstances that are almost impossible to pinpoint. Try it with "theitem" instead (of course renaming the actual element as well). -- Bertilo Wennergren <http://bertilow.com> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I never had any issues with that. Can you give examples...? Sounds FUD- ish to me... :? Best, Thomas Am 29.11.2007 um 12:59 schrieb Bertilo Wennergren:> MSIE (some version...) has been known to have problems > with ids using the "_" character - sometimes in very > unusual circumstances that are almost impossible to > pinpoint.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thomas Fuchs wrote:> I never had any issues with that. Can you give examples...? Sounds FUD- > ish to me... :?It happened to me a couple of times, but it was very long ago. A mysterious bug in MSIE just disappeared when I changed to an id without an underscore. It really should not matter, and most of the time it doesn''t. But once in a blue moon it does - for some unclear reason. It''s probably very very rare. -- Bertilo Wennergren <http://bertilow.com> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The underscore was just an arbitrary example. But, I''ve changed the .innerHTML usage to .update(''whatever''), and I''m still having problems in IE with it (not FF)... returns a "script error". Here''s a real example of the code I''m using: $(''registerMessage'').update(''<p><strong>Update Failed. Please Try Again.</strong></p>''); Pretty standard, right? In other instances, I''m doing something like: $(''registerMessage'').update(val); Where "val" is a variable containing stuff. For a real example, you can visit http://consumer.myshoutoutloud.com [will require user registration], and try out the "myDATA" page. This live version is using the .update method rather than the .innerHTML method, since neither work anyway. Thanks --Kyle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Addendum: now things just aren''t working in GENERAL after moving to the .update method. Great. --Kyle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Solution: So what happened was that my scripts (and IE) stopped liking action="<? echo $PHP_SELF; ?>", and so I replaced it with actual URLs. I''m not sure if that fixed it, or it was some other little tweaks I made, but overall it works. I just have to work out a few minor things, but it''s working in IE. Thanks for the help. --Kyle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---