Ok this one should be simple, but im so rusty I need some guidance . Im applying simple "Element.hide" effect to tables on my site, and it all works fine within Firefox, although in IE , it dosnt. It works how ever when applied to a form button, just not when I apply it to an image. heres what im doing -> <IMG src="{$skin.images}/close.png" onClick="Element.hide({$scriptdivid})"/> The error IE is giving is: "''Style'' is null or not an object" The full table code is: <table class="datablock" width="100%" cellspacing="0" cellpadding="0" style="100"> <xsl:attribute name="id"><xsl:value-of select="@name"/></ xsl:attribute> <tr> <td class="topleft"><img src="{$skin.images}/frame-tl.png"/></td> <td class="top"></td> <td class="topright"><img src="{$skin.images}/frame-tr.png"/></td> </tr> <tr valign="middle"> <td class="topside" background="{$skin.images}/ titlebarbottom.png"/> <td class="toptitle" align="left" width="90%"> <xsl:attribute name="width">100%</xsl:attribute> <img src="{$skin.images}/header_arrow.png"/>  <span class="{@class}"><xsl:value-of select="@title"/></ span><IMG src="{$skin.images}/close.png" onClick="Element.hide({$scriptdivid})"/> </td> <td class="topside" /> </tr> <tr> <td class="sideleft"/> <td class="contents"> <xsl:call-template name="make-datablock-contents"> <xsl:with-param name="product" select="$product"/> </xsl:call-template> </td> <td class="sideright"/> </tr> <tr> <td class="bottomleft"><img src="{$skin.images}/frame-bl.png"/></ td> <td class="bottom"/> <td class="bottomright"><img src="{$skin.images}/frame-br.png"/></td></tr> <script type="text/javascript" language="javascript"> new Draggable(document.getElementById("<xsl:value-of select="$scriptdivid" />"), {} ); </script> </table> Can anyone help me ? This is something simple im sure. Cheers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It''s been a while since I''ve played w/ XSLT. ''Twould be easier to see the final output. However, I''d guess that you need to add quotes around the id you''re passing to Element.hide. i.e. onClick="Element.hide(''{$scriptdivid}'')"/> TAG On Jul 18, 2007, at 11:55 PM, BSide wrote:> > Ok this one should be simple, but im so rusty I need some guidance . > > Im applying simple "Element.hide" effect to tables on my site, and it > all works fine within Firefox, although in IE , it dosnt. > > It works how ever when applied to a form button, just not when I apply > it to an image. > > heres what im doing -> <IMG src="{$skin.images}/close.png" > onClick="Element.hide({$scriptdivid})"/> > > The error IE is giving is: "''Style'' is null or not an object" > > > > The full table code is: > <table class="datablock" width="100%" cellspacing="0" cellpadding="0" > style="100"> > > <xsl:attribute name="id"><xsl:value-of select="@name"/></ > xsl:attribute> > <tr> > <td class="topleft"><img src="{$skin.images}/frame-tl.png"/></td> > <td class="top"></td> > > > <td class="topright"><img src="{$skin.images}/frame-tr.png"/></td> > </tr> > <tr valign="middle"> > <td class="topside" background="{$skin.images}/ > titlebarbottom.png"/> > <td class="toptitle" align="left" width="90%"> > <xsl:attribute name="width">100%</xsl:attribute> > <img src="{$skin.images}/header_arrow.png"/> >  <span class="{@class}"><xsl:value-of select="@title"/></ > span><IMG src="{$skin.images}/close.png" > onClick="Element.hide({$scriptdivid})"/> > </td> > > <td class="topside" /> > </tr> > <tr> > <td class="sideleft"/> > <td class="contents"> > <xsl:call-template name="make-datablock-contents"> > <xsl:with-param name="product" select="$product"/> > </xsl:call-template> > </td> > <td class="sideright"/> > </tr> > <tr> > <td class="bottomleft"><img src="{$skin.images}/frame-bl.png"/ > ></ > td> > <td class="bottom"/> > <td class="bottomright"><img src="{$skin.images}/frame-br.png"/ >> </td> > </tr> > <script type="text/javascript" language="javascript"> > new Draggable(document.getElementById("<xsl:value-of > select="$scriptdivid" />"), {} ); > </script> > </table> > > > > > Can anyone help me ? This is something simple im sure. > > Cheers > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeezuz .. That did the trick.. Did i mention i was rusty ? .. lol Thanks for that.! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---