Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2007
    Posts
    277
    Thanks
    2
    Thanked 4 Times in 4 Posts

    how to make script.acul.us work with tr's?

    how do I make script.acul.us work with tr tags and not with li?
    here's my code:
    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?

  • #2
    New Coder
    Join Date
    Aug 2008
    Location
    Colfax, California USA
    Posts
    64
    Thanks
    3
    Thanked 5 Times in 5 Posts
    move to a div/css format.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •