Skip to content

Instantly share code, notes, and snippets.

@starrhorne
Created January 19, 2012 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starrhorne/1637317 to your computer and use it in GitHub Desktop.
Save starrhorne/1637317 to your computer and use it in GitHub Desktop.
$("#uploadify").uploadify({
// Eval the response
'onComplete' : function(a, b, c, response){ eval(response) },
// And set the accept header to application/javascript
'scriptData' : {
'<%%= session_key_name %>' : '<$%= u cookies[session_key_name] %>',
'_http_accept': "application/javascript"
},
... Other options removed for clarity ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment