Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="inputform" action="page.php" method="get" onsubmit="getform()">
- <input value="person" name="user">
- <input value="password" name="pwd">
- <input value="place" name="organization">
- <input value="key" name="requiredkey">
- <button type="submit">Submit</button>
- </form>
- url = $("#form").serialize();
- $.ajax({
- type: "GET",
- dataType: "json",
- url: url,
- success: function (data) {
- //modify table
- }
- });
- function getform() {
- var http = new XMLHttpRequest();
- http.open('GET', 'page.php', true);
- http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
- http.send();
- }
Add Comment
Please, Sign In to add comment