I''m still pretty new on js and Prototype, so this is possibly already a known issue, or I might just be doing something dumb, but I thought I''d see if anyone''s got any explanation for it. The problem occurred when running and RJS action from a Rails app (though I don''t think it''s related to either of those things). I have a div with id of description, which I''m updating with page.replace_html ''description'', :partial => ''description'' which is generating Element.update("description", "new text goes here") This works fine in Firefox and Safari, but in Opera and IE (6 & 7) I''m getting RJS error: object Error then the js statement as above. After much trial an error (BTW is there any way of getting a js console in Opera or IE?) I discovered that changeing the id of the div to item_description solves the problem. The only things I can think might be causing this (other than IE''s usual pain-in-the-ass-edness), would be that there''s a meta description tag, which is messing with the finding of the description div, or that perhaps description is somehow a reserved word of sorts. Can anyone enlighten me? Thanx 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 -~----------~----~----~----~------~----~------~--~---
Not so much a debug console for IE but it helps, Grab the IE Dev toolbar from Microsoft and the "DebugBar" (just google) and you get a bunch more debuggint tools- still no firefox-like console though. Gareth On 3/16/07, ChrisT <ctmailinglists-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > > I''m still pretty new on js and Prototype, so this is possibly already > a known issue, or I might just be doing something dumb, but I thought > I''d see if anyone''s got any explanation for it. > > The problem occurred when running and RJS action from a Rails app > (though I don''t think it''s related to either of those things). I have > a div with id of description, which I''m updating with > > page.replace_html ''description'', :partial => ''description'' > > which is generating > > Element.update("description", "new text goes here") > > This works fine in Firefox and Safari, but in Opera and IE (6 & 7) I''m > getting > > RJS error: object Error > > then the js statement as above. > > After much trial an error (BTW is there any way of getting a js > console in Opera or IE?) I discovered that changeing the id of the div > to item_description solves the problem. > > The only things I can think might be causing this (other than IE''s > usual pain-in-the-ass-edness), would be that there''s a meta > description tag, which is messing with the finding of the description > div, or that perhaps description is somehow a reserved word of sorts. > > Can anyone enlighten me? > > Thanx > 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 -~----------~----~----~----~------~----~------~--~---
Got that. But like you said, no console :-( On 15 Mar, 21:54, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Not so much a debug console for IE but it helps, > > Grab the IE Dev toolbar from Microsoft and the "DebugBar" (just google) and > you get a bunch more debuggint tools- still no firefox-like console though. > > Gareth > > On 3/16/07, ChrisT <ctmailingli...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > I''m still pretty new on js and Prototype, so this is possibly already > > a known issue, or I might just be doing something dumb, but I thought > > I''d see if anyone''s got any explanation for it. > > > The problem occurred when running and RJS action from a Rails app > > (though I don''t think it''s related to either of those things). I have > > a div with id of description, which I''m updating with > > > page.replace_html ''description'', :partial => ''description'' > > > which is generating > > > Element.update("description", "new text goes here") > > > This works fine in Firefox and Safari, but in Opera and IE (6 & 7) I''m > > getting > > > RJS error: object Error > > > then the js statement as above. > > > After much trial an error (BTW is there any way of getting a js > > console in Opera or IE?) I discovered that changeing the id of the div > > to item_description solves the problem. > > > The only things I can think might be causing this (other than IE''s > > usual pain-in-the-ass-edness), would be that there''s a meta > > description tag, which is messing with the finding of the description > > div, or that perhaps description is somehow a reserved word of sorts. > > > Can anyone enlighten me? > > > Thanx > > 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 -~----------~----~----~----~------~----~------~--~---
Hi, To get a js console under IE, you can install Companion.JS : http://www.my-debugbar.com/wiki/CompanionJS/HomePage It is a first step to a js debugger for IE, and has a JS console like firefox. Hope this helps. JFR On 16 mar, 16:12, "ChrisT" <chrismtagg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Got that. But like you said, no console :-( > > On 15 Mar, 21:54, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Not so much a debug console for IE but it helps, > > > Grab the IE Dev toolbar from Microsoft and the "DebugBar" (just google) and > > you get a bunch more debuggint tools- still no firefox-like console though. > > > Gareth > > > On 3/16/07, ChrisT <ctmailingli...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > I''m still pretty new on js and Prototype, so this is possibly already > > > a known issue, or I might just be doing something dumb, but I thought > > > I''d see if anyone''s got any explanation for it. > > > > The problem occurred when running and RJS action from a Rails app > > > (though I don''t think it''s related to either of those things). I have > > > a div with id of description, which I''m updating with > > > > page.replace_html ''description'', :partial => ''description'' > > > > which is generating > > > > Element.update("description", "new text goes here") > > > > This works fine in Firefox and Safari, but in Opera and IE (6 & 7) I''m > > > getting > > > > RJS error: object Error > > > > then the js statement as above. > > > > After much trial an error (BTW is there any way of getting a js > > > console in Opera or IE?) I discovered that changeing the id of the div > > > to item_description solves the problem. > > > > The only things I can think might be causing this (other than IE''s > > > usual pain-in-the-ass-edness), would be that there''s a meta > > > description tag, which is messing with the finding of the description > > > div, or that perhaps description is somehow a reserved word of sorts. > > > > Can anyone enlighten me? > > > > Thanx > > > Chris- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents ---~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---