-
-
Save anonymous/2066ebbc8a1fef402505 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
var addField = function (name, value) { | |
//check if the element is part of the "execute"-option before | |
//adding it to the request string | |
var fieldExecutable = isFieldExecutable(name); | |
if (fieldExecutable) { | |
var tmpStr = ""; | |
if (qString.length > 0) { | |
tmpStr = "&"; | |
} | |
tmpStr += encodeURIComponent(name)+"="+encodeURIComponent(value); | |
qString.push(tmpStr); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment