Created
November 4, 2016 16:25
-
-
Save theredstapler/7768d7185ded9eec00fe8ca0a52a44e4 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
<html> | |
<head> | |
<script src="jquery-2.1.4.js"></script> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<h1>Create Issue</h1> | |
<form id="create-form"> | |
Summary: <input type="text" name="summary" id="summary" value=""/> | |
Description: <input type="text" name="description" id="description" value="" /> | |
Issue Type: <input type="text" name="type" id="type" value=""/> | |
Username: <input type="text" name="user" id="user" value=""/> | |
Password: <input type="password" name="pass" id="pass" value=""/> | |
<input type="button" id="button" value="Create Issue"/> | |
</form> | |
</div> | |
<script> | |
$('#button').click(function() { | |
$.ajax({ | |
type: "POST", | |
url: "jiraapi.php", | |
data: $('#create-form').serialize(), | |
success: function(data){ | |
alert(data); | |
}, | |
dataType: "html" | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment