why does this fail on IE? If I change the a tag to a b tag it works fine. Element.replace("foo", "<li id=\"foo\"><a>bar</a></li>"); <-- fails Element.replace("foo", "<li id=\"foo\"><b>bar</b></li>"); <-- works Btw, the js is being generated by rjs in ruby on rails. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Mar 31, 9:25 am, "Jay donnell" <jaydonn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> why does this fail on IE?What does "fail" mean to you? I undertand it to mean that whatever the code does is different to what you expect. Without indicating what you expect, anyone else may well say "the code does exactly what *I* expect, therefore it succeeds".> If I change the a tag to a b tag it works > fine. > > Element.replace("foo", "<li id=\"foo\"><a>bar</a></li>"); <-- failsDid you epxect a visual presentation indicating a link? An A element without an href value is not a link and (probably) by default its content won''t be given a different visual representation to surrounding content. An A elemet with neither href or name attribute is roughly equivalent a span element. -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
http://kracomp.com/~jay/images/sc/rjs.jpg http://kracomp.com/~jay/images/sc/rjs2.jpg I''m put this code into a super simple html page and it works. For some reason it''s not working on the html for the actual site. I''m not sure why yet, but I should have it working by the end of the day now that I know it works in a different context. p.s. - Do you expect teh code to give an RJS error ;) On Mar 30, 7:01 pm, "RobG" <r...-AFFH1GffN5hPR4JQBCEnsQ@public.gmane.org> wrote:> On Mar 31, 9:25 am, "Jay donnell" <jaydonn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > why does this fail on IE? > > What does "fail" mean to you? > > I undertand it to mean that whatever the code does is different to > what you expect. Without indicating what you expect, anyone else may > well say "the code does exactly what *I* expect, therefore it > succeeds". > > > If I change the a tag to a b tag it works > > fine. > > > Element.replace("foo", "<li id=\"foo\"><a>bar</a></li>"); <-- fails > > Did you epxect a visual presentation indicating a link? An A element > without an href value is not a link and (probably) by default its > content won''t be given a different visual representation to > surrounding content. > > An A elemet with neither href or name attribute is roughly equivalent > a span element. > > -- > Rob--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---