Skip to content

Instantly share code, notes, and snippets.

@ecarnevale
Created October 2, 2009 10:36
Show Gist options
  • Save ecarnevale/199615 to your computer and use it in GitHub Desktop.
Save ecarnevale/199615 to your computer and use it in GitHub Desktop.
<html>
<head>
<title> Interface to jsFluidDB </title>
<script type="text/javascript" src="jquery-1.3.2.js">
</script>
<script type="text/javascript" src="jsFluidDB.js">
</script>
<script type="text/javascript">
function handleResponse(data){
alert(data);
}
$(document).ready(function(){
username = $('#userid').val();
password = $('#password').val();
methodname = $('#methodname').val();
$('#getmethod').click(function(){
fluidDB.get(methodname, handleResponse, true, username, password);
});
$('#postmethod').click( function() {
});
});
</script>
</head>
<body>
<form action="" method="" onsubmit="return false;">
<p><label for="userid">UserID:</label>
<input id="userid" type="text" value="" /></p>
<p><label for="password">Password:</label>
<input id="password" type="text" value="" /></p>
<p><label for="methodname">MethodURL:</label>
<input id="methodname" type="text" /></p>
<p><input id="getmethod" type="button" value="Get" />
<input id="postmethod" type="button" value="Post" /></p>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment