Forum: Ruby on Rails Error for second Drag in IE

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
1b9cfd9892a765221fe557768987b42d?d=identicon&s=25 Juan Matias (jmrepetti)
on 2007-06-27 00:18
first: sorry by my inglish :)

I have in one side a list and in the other a table (2 columns and many
I need to drag one item from the list and drop it in any of all the td's
on the table. In every 'td' of the second's columns there is a 'div',
which is dropable and dragable(to revert changes). firefox
works! but in IE I pick an item from the list drop it on the table and
if I try with other, IE returns me an error:

line: 3082
character: 7
error: unespecified
code: 0

Here is my code, these are two parcial's:

------------------------ list ---------------------

<h3> Campos de Tipo Archivo </h3>
<ul id="campos_de_tipo_archivo">
    <% for campo in @campos_disponibles -%>
      <li id="<%= dom_id(campo)%>" class="<%= dom_class(campo)%>">
      <%= campo.nombre.humanize %> <b> <%=
h(campo.tipo_de_dato.nombre.capitalize) %></b>
      <%= draggable_element "#{dom_id(campo)}", :revert => false %>
    <% end %>

-------------------- table ------------------------------
    <% for mapa_item in @mapa_items %>
        <td id="td_<%=dom_id(mapa_item)%>"
          <%= h(mapa_item.nombre) %>
          <div id="div_<%=dom_id(mapa_item)%>" class="div_receptor">
          <%= mapa_item.campo.nil? ? "Arrastre un campo hasta aqui..." :
mapa_item.campo.nombre.humanize -%>
          <%= draggable_element "div_#{dom_id(mapa_item)}", :revert =>
false %>

      <%= drop_receiving_element "div_#{dom_id(mapa_item)}",
      :url => { :action => "agregar_relacion", :mapa_item => mapa_item
      :accept => "#{dom_class(Campo)}"

    <% end %>

In other place on the application I use the Drag&Drop between list's and
works in both (FF and IE), I need this structure for the purpose that
Ou!, the problems is from the list to the table, from the table to the
list I can do it all the times I want.
Some opinion?

Juan Matias Repetti
This topic is locked and can not be replied to.