Having a problem with Drag & Drop on my site. it works fine in Firefox , but not in IE (which is what I need). Some tables work fine , but others dont. The ones that dont, will drag, but they wont release .. Meaning , once you click on them to drag you cant drop it .. you have to refresh to page to release. The error that IE reports is: "Object doesnt support this property or method" but i can figure out how to fix. Am I missing something ? My table code is: <xsl:variable name="scriptdivid"> <xsl:value-of select="@name"/> </xsl:variable> <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> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You can use Sortable.create on any container element that contains Block Elements, with the exception of TABLE, THEAD, TBODY and TR. This is a technical restriction with current browsers. I think its true with draggables since sortables are draggables. see: http://wiki.script.aculo.us/scriptaculous/show/Sortable.create for more info ~K On Jul 18, 11:24 pm, BSide <j...-8SBO/aU9k2Pby3iVrkZq2A@public.gmane.org> wrote:> Having a problem with Drag & Drop on my site. > > it works fine in Firefox , but not in IE (which is what I need). > Some tables work fine , but others dont. > > The ones that dont, will drag, but they wont release .. Meaning , once > you click on them to drag you cant drop it .. you have to refresh to > page to release. > > The error that IE reports is: "Object doesnt support this property > or method" but i can figure out how to fix. Am I missing > something ? > > My table code is: > > <xsl:variable name="scriptdivid"> > <xsl:value-of select="@name"/> > </xsl:variable> > > <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>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for the reply, but it still dosnt work .. Unless im using it wrong. Any other suggestions ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---