Displaying 5 results from an estimated 5 matches for "item_7".
Did you mean:
item_t
2005 Jul 19
0
draggables bug(s)
...ails... two small issues though -
First bug: creating a draggable object with a handle in rails:
<%= draggable_element "item_#{item.id}", :handle=>"myhandle" %>
this generates code like this:
<script type="text/javascript">new Draggable(''item_7'',
{handle:myhandle})</script>
*** notice the missing quotes in the associative array around myhandle
-- simple fix to the javascript helpers for rails adding quotes ;) ***
Second bug:
having a draggable actually use the handle is borked:
new Draggable(''item_7''...
2007 May 29
0
Ajax sortable_element refresh
...<%= i+1 %></li>
<% end -%>
</ul>
<%= sortable_element ''list'', :complete => visual_effect(:highlight,
''list'') %>
</body>
</html>
### Controller
def index
end
def add_item
render_text "<li id=\"item_7" + "\">I''m number 7</li>"
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39...
2006 Jun 14
0
Bad behaviour in Internet Explorer
...eters:Sortable.serialize("list[2]")})}, tag:''div''})
//]]>
</script>
</div>
<div id="item_4" onclick="CSSUtils.show(''list[4]'')">Ensaios
<div id="list[4]" class="hidden">
<div id="item_7" > Adriano Pedrosa</div>
<div id="item_504" > Território dos Sentidos</div>
<div id="item_18" > Bumerangue</div>
</div>
<script type="text/j...
2006 Feb 14
5
problem with sortable lists and IE
...d="item_1">one</li>
<li id="item_2">two</li>
<li id="item_3">three</li>
<li id="item_4">four</li>
<li id="item_5">five</li>
<li id="item_6">six</li>
<li id="item_7">seven</li>
</ul>
<p id="list-info"></p>
<script type="text/javascript">
Sortable.create(''list'', {
onUpdate:function(){
new Ajax.Updater(''list-info'',
''http://demo.script.aculo.us/ajax/orde...
2005 Jul 20
3
examples of drag n drop
...>
> First bug: creating a draggable object with a handle in rails:
>
> <%= draggable_element "item_#{item.id}", :handle=>"myhandle" %>
>
> this generates code like this:
>
> <script type="text/javascript">new Draggable(''item_7'',
> {handle:myhandle})</script>
>
> *** notice the missing quotes in the associative array around myhandle
> -- simple fix to the javascript helpers for rails adding quotes ;) ***
>
> Second bug:
>
> having a draggable actually use the handle is borked:
>
&...