...

View Full Version : how to make script.acul.us work with tr's?



shedokan
08-26-2008, 01:10 AM
how do I make script.acul.us work with tr tags and not with li?
here's my code:

<table id="menu">
<tr id="1">
<td><div class="linkcontent" id="link1">Home</div></td>
<td><a id="link1edit" href="#">edit</a></td>
<td><a href="javascript:Remove(1);" onclick="return confirm('Delete Home from the menu?');">delete</a></div></td></tr>
<tr id="2">
<td><div class="linkcontent" id="link2">Forum</div></td>

<td><a id="link2edit" href="#">edit</a></td>
<td><a href="javascript:Remove(2);" onclick="return confirm('Delete Forum from the menu?');">delete</a></div></td></tr>
<tr id="3">
<td><div class="linkcontent" id="link3">Dailies</div></td>
<td><a id="link3edit" href="#">edit</a></td>
<td><a href="javascript:Remove(3);" onclick="return confirm('Delete Dailies from the menu?');">delete</a></div></td></tr>

<tr id="4">
<td><div class="linkcontent" id="link4">Avatars</div></td>
<td><a id="link4edit" href="#">edit</a></td>
<td><a href="javascript:Remove(4);" onclick="return confirm('Delete Avatars from the menu?');">delete</a></div></td></tr>
<tr id="5">
<td><div class="linkcontent" id="link5">Cheats</div></td>
<td><a id="link5edit" href="#">edit</a></td>

<td><a href="javascript:Remove(5);" onclick="return confirm('Delete Cheats from the menu?');">delete</a></div></td></tr>
</table>
<div id="output">drag links to arrange them</div>
<div id="output2"></div>
<div id="serialize"></div>
<script type="text/javascript">
Sortable.create('menu',{constraint:false,tag:'TR',
onChange:function(element){$('serialize').innerHTML = Sortable.serialize(element.parentNode);$('output').innerHTML = '<a href="#" onclick="Save(\'menu\'); Effect.BlindDown(\'menu\'); return false;">שמור</a>';}});
</script>


I tried adding the option "tag:'TR'" but still doesn't works.
any suggestions?

rhinodog8
08-26-2008, 02:30 AM
move to a div/css format.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum