daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Cannot count dropped items
  2. $("#launchPad .card").length;
  3.    
  4. $("#dropZone").bind( "drop", function(event, ui) {
  5.  
  6.     $(ui.draggable).addClass('dropped');
  7.     var currentCount = $("#launchPad .card:not(.dropped)").length;
  8.    
  9. <td id="launchPad" class="ui-droppable">&nbsp;
  10.     <div id="CARD2674" class="card ui-draggable" style="position: relative; ">Task 2</div>
  11.     <div id="CARD2677" class="card ui-draggable" style="position: relative; ">Task 5</div>
  12.     <div id="CARD2675" class="card ui-draggable" style="position: relative; ">Task 3</div>
  13.     <div id="CARD2673" class="card ui-draggable" style="position: relative; ">Task 1</div>
  14.     <div id="CARD2676" class="card ui-draggable" style="position: relative; ">Task 4</div>
  15. </td>
  16.    
  17. $.ajax({
  18.         url: "uxowBCc",
  19.         type: "POST",  
  20.         data : "saveCard=33&idCard="+idCard+"&x="+x+"&y="+y,
  21.         dataType: "script",
  22.          success: function(data){
  23.             eval( data);
  24.            }
  25.         });
  26.    
  27. <!-- It seems like you have a couple lines of nothing up here that shouldn't be -->
  28.  
  29. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  30.  
  31. <html>
  32.  
  33. <head>
  34.  
  35.     <title>usabiliTEST -- Task Prioritization</title>
  36.  
  37.     <script language="JavaScript"><!-- window.name="testRun"; //--></script>
  38.  
  39.     <link rel="stylesheet" type="text/css" href="/css/style.css">
  40.  
  41. <link rel="stylesheet" type="text/css" href="/css/testStyle.css">
  42.  
  43. <link rel="STYLESHEET" type="text/css" href="/jq/UI/css/blitzer/uimin.css">
  44.  
  45. <script type="text/javascript" src="/jq/jquery-1.5.1.min.js"></script>
  46.  
  47. <script type="text/javascript" src="/jq/jquery-ui.min.js"></script>console.info("id: 299");console.info("2674    299    43    53");
  48.  
  49. </body>
  50.  
  51. </html>
  52.    
  53. var currentCount = $("#launchPad .card").length;
  54.    
  55. var currentCount = $("#launchPad .card:not(.moved)").length;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top