I'm generating div's dynamically based on the number of entries in a
table, and I'd like to make them draggables as well but it's not
working for me. I think the problem is with using a ruby variable
inside the javascript:
drag= "drag" (changed by the iterator by adding a char after
each cycle through)
<div id="<%= drag %>
<script type="text/javascript">
new Draggable('<%=drag%>'), { scroll: window, revert: true };
</script>
new Draggable('<%=drag%>')
I'm relatively positive it's with using the var inside the javascript
declaration, so is there some different syntax I can use here to make
it work?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---