Anyone would why this is not working in IE (both 6 and 7): $(''elementId'').hide(); Only the form Element.hide(''elementId'') is working. Just updated to version 1.5.1.2 to see if it would fix the problem but the behavior was the same. What is really puzzling me is that I could swear that it worked some time ago. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> Just updated to version 1.5.1.2 to see if it would fix the problemThe latest version is 1.6.0.2. It offers the extensions you are looking for. -justin --~--~---------~--~----~------------~-------~--~----~ 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 sure if I can upgrade... The whole system was done with 1.5, I fear the new version will break something. Anyways, wasn''t it supposed to work? On Apr 2, 5:55 pm, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Just updated to version 1.5.1.2 to see if it would fix the problem > > The latest version is 1.6.0.2. It offers the extensions you are looking for. > > -justin--~--~---------~--~----~------------~-------~--~----~ 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''ve just gave 1.6.0.2 a try, it had the same behavior... I feel as missing something... On Apr 2, 5:55 pm, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Just updated to version 1.5.1.2 to see if it would fix the problem > > The latest version is 1.6.0.2. It offers the extensions you are looking for. > > -justin--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Pedro wrote:> Anyone would why this is not working in IE (both 6 and 7): > > $(''elementId'').hide(); > > Only the form Element.hide(''elementId'') is working. > ...You''ll have to provide some html and surrounding js. The problem is most likely with something else. For example, if two html nodes have the id=elementId it will break. Also, on IE when one node has name=elementId and another has id=elementId it will also cause problems due to a wacky implementation of document.getElementById. - Ken Snyder --~--~---------~--~----~------------~-------~--~----~ 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 am considering a proper HTML. Anything like <html><body><div id="elementId">Content</div></body></ html>. Here the commands and outputs took from a page:>>> $(''modeloObjAprem'')tr#modeloObjAprem>>> $(''modeloObjAprem'').setAttundefined>>> $(''modeloObjAprem'').getElementsByClassNameundefined On Apr 2, 7:37 pm, Ken Snyder <kendsny...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Pedro wrote: > > Anyone would why this is not working in IE (both 6 and 7): > > > $(''elementId'').hide(); > > > Only the form Element.hide(''elementId'') is working. > > ... > > You''ll have to provide some html and surrounding js. The problem is > most likely with something else. For example, if two html nodes have > the id=elementId it will break. Also, on IE when one node has > name=elementId and another has id=elementId it will also cause problems > due to a wacky implementation of document.getElementById. > > - Ken Snyder--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Pedro wrote:> I am considering a proper HTML. > Anything like <html><body><div id="elementId">Content</div></body></ > html>. >The code below works for me in IE6 and FF2 Win. Can you produce a minimal example that fails? - Ken <html> <head> <script type="text/javascript" src="prototype.1.6.js"></script> <body> <div id="elementId">Hide</div> <div id="elementId2">Display</div> <script>$(''elementId'').hide()</script> </body> </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 -~----------~----~----~----~------~----~------~--~---
Sorry, guys, after wasting a couple of days I found the problem was another .js redefining the $() function. All that the new function did was a getElementById... This .js is add by a header JSP Tag I am obligated to use (client requirement). This was driving me crazy. Isn''t that a recurring problem, I''ve already seen a few times libraries that defines $ and causes problems with Prototype. Any ideia how to prevent this situation? On Apr 3, 3:58 pm, Ken Snyder <kendsny...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Pedro wrote: > > I am considering a proper HTML. > > Anything like <html><body><div id="elementId">Content</div></body></ > > html>. > > The code below works for me in IE6 and FF2 Win. Can you produce a > minimal example that fails? > - Ken > > <html> > <head> > <script type="text/javascript" src="prototype.1.6.js"></script> > <body> > <div id="elementId">Hide</div> > <div id="elementId2">Display</div> > <script>$(''elementId'').hide()</script> > </body> > </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 -~----------~----~----~----~------~----~------~--~---
Yes it should work..... Please provide a snippet of your code so we might be able to better help you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Opps sorry for the late reply, it seems a lot happend since i refreshed the page... please disreguard. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---