Created
September 17, 2012 05:16
-
-
Save trescenzi/3735680 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
function parseGetResponse(response){ | |
var splitUrl = response.split("?")[1].split("&"); | |
var variables = {}; | |
for(var i=0; i<splitUrl.length; i += 1){ | |
var broken = splitUrl[i].split("="); | |
var key=broken[0]; | |
var value = broken[1]; | |
variables[key] = value; | |
} | |
return variables; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment