Skip to content

Instantly share code, notes, and snippets.

/.java Secret

Created August 3, 2015 08:25
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 anonymous/2066ebbc8a1fef402505 to your computer and use it in GitHub Desktop.
Save anonymous/2066ebbc8a1fef402505 to your computer and use it in GitHub Desktop.
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