Created
April 5, 2011 18:04
-
-
Save meddulla/904142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//responds to request when new click is sent | |
//to /addDataPoint, otherwise hangs | |
var displayNewDataPoints = function(req, res) { | |
MyHeatmap.on('added', function(dt) { | |
//print client side js so client heatmap | |
//display functions are called | |
//and recall this url again | |
var str = 'xx.addDataPoint('+dt.x+","+dt.y+');'; | |
str += 'ajad_send(nurl);'; | |
res.write(str,'utf8'); | |
res.end(); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment