Created
September 12, 2011 13:38
-
-
Save spmallette/1211265 to your computer and use it in GitHub Desktop.
jquery and rexster
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$.ajax({ | |
type: "PUT", | |
url: "http://localhost:8182/graphs/tinkergraph/vertices/1", | |
data: "name=John&location=Boston", | |
success: function(msg){ | |
$("#container").text("success"); | |
}, | |
failure: function(msg) { | |
$("#container").text("failure"); | |
} | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="container"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment