Skip to content

Instantly share code, notes, and snippets.

@isaiahdw
Created October 5, 2010 03:17
Show Gist options
  • Save isaiahdw/610927 to your computer and use it in GitHub Desktop.
Save isaiahdw/610927 to your computer and use it in GitHub Desktop.
getReturnURL : function(httpReq) {
xmlObj = new DOMParser().parseFromString(httpReq.responseText, "text/xml");
var gist_id = xmlObj.getElementsByTagName("repo")[0].textContent;
return 'http://gist.github.com/'+ gist_id;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment