pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

talis private pastebin - collaborative debugging tool What's a private pastebin?


Posted by astilla on Tue 2 Oct 08:03
report abuse | download | new post

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4.     <title>Test page</title>
  5.     <script type="text/javascript" src="js/prototype.js"></script>
  6.     <script type="text/javascript" src="js/scriptaculous.js"></script>
  7.     <style type="text/css">
  8.         h3.sectionHeader
  9.         {
  10.             cursor: move;
  11.         }
  12.     </style>
  13. </head>
  14.  
  15. <!--
  16.     Seems to be a problem with 'dropOnEmpty:true' when you are trying to drop
  17.     onto a list (in this case <ol>
  18. ).  When the internal lists are converted
  19.     to just <div>s the problem goes away and everything works as expected.
  20. -->
  21.  
  22. <div id="sections">
  23.     <div id="section1" class="section">
  24.         <h3 class="sectionHeader">Section 1</h3>
  25.         <ol id="section1Items">
  26.             <li class="item">Item 1</li>
  27.             <li class="item">Item 2</li>
  28.             <li class="item">Item 3</li>
  29.         </ol>
  30.     </div>
  31.     <div id="section2" class="section">
  32.         <h3 class="sectionHeader">Section 2</h3>
  33.         <ol id="section2Items">
  34.             <li class="item">Item 4</li>
  35.             <li class="item">Item 5</li>
  36.             <li class="item">Item 6</li>
  37.         </ol>
  38.     </div>
  39.     <div id="section3" class="section">
  40.         <h3 class="sectionHeader">Section 3</h3>
  41.         <ol id="section3Items">
  42.         </ol>
  43.     </div>
  44. </div>
  45.  
  46. <script type="text/javascript">
  47. //<![CDATA[
  48.  
  49.     var sections = ['section1Items', 'section2Items', 'section3Items'];
  50.  
  51.     Sortable.create('section1Items',{tag:'li',dropOnEmpty:true, containment:sections, only:'item'});
  52.         Sortable.create('section2Items',{tag:'li',dropOnEmpty:true, containment:sections, only:'item'});
  53.         Sortable.create('section3Items',{tag:'li',dropOnEmpty:true, containment:sections, only:'item'});
  54.         Sortable.create('sections',{tag:'div', only:'section',handle:'sectionHeader'});
  55.  
  56. //]]>
  57. </script>
  58.  
  59. </body>
  60. </html>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post