public
anonymous / gist:315557
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
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 = Y.io(sUrl, trans);
}
 
makeRequest();
 
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.