Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:315557
Created Feb 26, 2010

var drop = new Y.DD.Drop({
node: '#defaultSlot'
drop.on('drop:hit', function(e) {
var out = e.drag.get('node').get('id');
dNum = parseInt(out.match(/\d+/),10);
this.get('node').set('innerHTML', dNum);
var trans = {
method: "POST",
data: "ID=dNum&first=yes",
headers: { 'X-Transaction': 'Post Transfer'}
var sUrl = "index.php?page=deckManager";
function makeRequest(){
var request =, trans);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment