Skip to content

Instantly share code, notes, and snippets.

@spmallette
Created September 12, 2011 13:38
Show Gist options
  • Save spmallette/1211265 to your computer and use it in GitHub Desktop.
Save spmallette/1211265 to your computer and use it in GitHub Desktop.
jquery and rexster
<!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