SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drag n Drop - Save with Cookie (Scriptaculous)

    Hello.
    I make a drag n drop page with scriptaculous. i'd like to save the
    pozitions with cookie.
    How?


    The CODE:
    Code:
    <ul id="descmiddlebal" >
       <li>
         <div id="tvplayer">
        asd
         </div>
       </li>
       <li>
         <div class="dobozbal">
           <table>asd</table>
            </div>
       </li>
       <li>
           <div class="dobozbal">
                  <div class="handle" id="dbh1">
                    News
                  </div>
             DESCASDEDSC
            </div>
       </li>
    </ul>
    
    
    <ul id="descmiddlejobb" >
       <li>
         <a href="#"><img src="images/jatek.gif" border="0" /></a>
       </li>
       <li>
           <div class="dobozjobb">
                  <div class="handle" id="djh1">
                    <img src="images/rss2.gif" alt="rss" border="0"
    class="rss2" /> Categories
                  </div>
    
            asdasd
            </div>
       </li>
       <li>
           <div class="dobozjobb">
                  <div class="handle" id="djh2">
                    <img src="images/rss2.gif" alt="rss" border="0"
    class="rss2" /> Channels
                  </div>
      asdasdasdasd
      </div>
       </li>
       <li>
    </ul>
    <script type="text/javascript">
     // <![CDATA[
       Sortable.create("descmiddlebal",
         {dropOnEmpty:true,containment:["descmiddlebal","descmiddlejobb"],constraint:false});
       Sortable.create("descmiddlejobb",
         {dropOnEmpty:true,handle:'handle',containment:["descmiddlebal","descmiddlejobb"],constraint:false});
     // ]]>
    </script>

    Thanks a lot

  2. #2
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is not a PHP issue, it would be more suited in the Javascript forum.


Bookmarks

Posting Permissions

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