Created
October 2, 2009 10:36
-
-
Save ecarnevale/199615 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> | |
<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