Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add scratchpad for SimpleDB testing

  • Loading branch information...
commit 650b7b78e42695461731ea7fc9e16443e79d892c 1 parent 27f86e0
@aristidb authored
Showing with 2,580 additions and 0 deletions.
  1. +156 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/BatchPutAttributes.html
  2. +102 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/CreateDomain.html
  3. +175 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/DeleteAttributes.html
  4. +102 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/DeleteDomain.html
  5. +102 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/DomainMetadata.html
  6. +120 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/GetAttributes.html
  7. +108 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/ListDomains.html
  8. +169 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/PutAttributes.html
  9. +114 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/Select.html
  10. +615 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/css/scratchpad.css
  11. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/add.gif
  12. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/bg-nav.png
  13. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/bg-table.png
  14. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/bluearrow.gif
  15. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-displaystringtosign.png
  16. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-displayurl.png
  17. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-invokerequest.png
  18. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-resetform.png
  19. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/delete.gif
  20. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/go.gif
  21. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/help.png
  22. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/poweredbyaws.png
  23. BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/spacer.gif
  24. +4 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/index.html
  25. +123 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/js/awssigner.js
  26. +328 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/js/hmacsha1.js
  27. +246 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/js/scratchpad.js
  28. +37 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/main.html
  29. +79 −0 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/navbar.html
View
156 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/BatchPutAttributes.html
@@ -0,0 +1,156 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("BatchPutAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("BatchPutAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("BatchPutAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">BatchPutAttributes</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Domain Name</span></td>
+ <td nowrap><input class="input" type="text" name="DomainName"></td>
+ </tr>
+ </table>
+ <table style="margin: 20px" cellpadding="0" width="90%" cellspacing="2" border="0" bgcolor="#eeeeee" id="Item.1">
+ <tr>
+ <td style="border: 2px dashed #cccccc;">
+ <table width="100%">
+ <tr>
+ <td><input align="right" hspace="5" vspace="5" type="image" src="images/add.gif" onclick="addContainer(this, 8);return false;" id="Item.1.Add"><input align="right" type="image" style="display:''" src="images/delete.gif" hspace="5" vspace="5" onclick="deleteContainer(this, 8);return false;" id="Item.1.Delete"><div class="legend"><img src="images/bluearrow.gif" align="absmiddle" hspace="10">Item
+ </div>
+ </td>
+ </tr>
+ </table>
+ <fieldset style="padding-left: 30px;padding-right: 30px;padding-bottom: 30px; border: 0px;">
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Item Name</span></td>
+ <td nowrap><input class="input" type="text" name="Item.1.ItemName"></td>
+ </tr>
+ </table>
+ <table style="margin: 20px" cellpadding="0" width="90%" cellspacing="2" border="0" bgcolor="#eeeeee" id="Item.1.Attribute.1">
+ <tr>
+ <td style="border: 2px dashed #cccccc;">
+ <table width="100%">
+ <tr>
+ <td><input align="right" hspace="5" vspace="5" type="image" src="images/add.gif" onclick="addContainer(this, 8);return false;" id="Item.1.Attribute.1.Add"><input align="right" type="image" style="display:''" src="images/delete.gif" hspace="5" vspace="5" onclick="deleteContainer(this, 8);return false;" id="Item.1.Attribute.1.Delete"><div class="legend"><img src="images/bluearrow.gif" align="absmiddle" hspace="10">Attribute
+ </div>
+ </td>
+ </tr>
+ </table>
+ <fieldset style="padding-left: 30px;padding-right: 30px;padding-bottom: 30px; border: 0px;">
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Name</span></td>
+ <td nowrap><input class="input" type="text" name="Item.1.Attribute.1.Name"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Value</span></td>
+ <td nowrap><input class="input" type="text" name="Item.1.Attribute.1.Value"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Replace</span></td>
+ <td nowrap><input class="input" type="text" name="Item.1.Attribute.1.Replace"></td>
+ </tr>
+ </table>
+ </fieldset>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
102 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/CreateDomain.html
@@ -0,0 +1,102 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("CreateDomain",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("CreateDomain",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("CreateDomain",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">CreateDomain</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Domain Name</span></td>
+ <td nowrap><input class="input" type="text" name="DomainName"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
175 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/DeleteAttributes.html
@@ -0,0 +1,175 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DeleteAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DeleteAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DeleteAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">DeleteAttributes</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Domain Name</span></td>
+ <td nowrap><input class="input" type="text" name="DomainName"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Item Name</span></td>
+ <td nowrap><input class="input" type="text" name="ItemName"></td>
+ </tr>
+ </table>
+ <table style="margin: 20px" cellpadding="0" width="90%" cellspacing="2" border="0" bgcolor="#eeeeee" id="Attribute.1">
+ <tr>
+ <td style="border: 2px dashed #cccccc;">
+ <table width="100%">
+ <tr>
+ <td><input align="right" hspace="5" vspace="5" type="image" src="images/add.gif" onclick="addContainer(this, 8);return false;" id="Attribute.1.Add"><input align="right" type="image" style="display:''" src="images/delete.gif" hspace="5" vspace="5" onclick="deleteContainer(this, 8);return false;" id="Attribute.1.Delete"><div class="legend"><img src="images/bluearrow.gif" align="absmiddle" hspace="10">Attribute
+ </div>
+ </td>
+ </tr>
+ </table>
+ <fieldset style="padding-left: 30px;padding-right: 30px;padding-bottom: 30px; border: 0px;">
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Name</span></td>
+ <td nowrap><input class="input" type="text" name="Attribute.1.Name"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Value</span></td>
+ <td nowrap><input class="input" type="text" name="Attribute.1.Value"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Name Encoding</span></td>
+ <td nowrap><input class="input" type="text" name="Attribute.1.NameEncoding"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Value Encoding</span></td>
+ <td nowrap><input class="input" type="text" name="Attribute.1.ValueEncoding"></td>
+ </tr>
+ </table>
+ </fieldset>
+ </td>
+ </tr>
+ </table>
+ <table style="margin: 20px" cellpadding="0" width="95%" cellspacing="4" border="0" bgcolor="#eeeeee" id="Expected">
+ <tr>
+ <td style="border: 2px dashed #cccccc;">
+ <div class="legend"><img src="images/bluearrow.gif" align="absmiddle" hspace="10">Expected
+ </div>
+ <fieldset style="padding-left: 30px;padding-right: 30px;padding-bottom: 30px; border: 0px;">
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Name</span></td>
+ <td nowrap><input class="input" type="text" name="Expected.Name"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Value</span></td>
+ <td nowrap><input class="input" type="text" name="Expected.Value"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Exists</span></td>
+ <td nowrap><input class="input" type="text" name="Expected.Exists"></td>
+ </tr>
+ </table>
+ </fieldset>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
102 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/DeleteDomain.html
@@ -0,0 +1,102 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DeleteDomain",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DeleteDomain",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DeleteDomain",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">DeleteDomain</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Domain Name</span></td>
+ <td nowrap><input class="input" type="text" name="DomainName"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
102 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/DomainMetadata.html
@@ -0,0 +1,102 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DomainMetadata",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DomainMetadata",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("DomainMetadata",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">DomainMetadata</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Domain Name</span></td>
+ <td nowrap><input class="input" type="text" name="DomainName"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
120 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/GetAttributes.html
@@ -0,0 +1,120 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("GetAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("GetAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("GetAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">GetAttributes</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Domain Name</span></td>
+ <td nowrap><input class="input" type="text" name="DomainName"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Item Name</span></td>
+ <td nowrap><input class="input" type="text" name="ItemName"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%" id="AttributeName.1">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Attribute Name</span></td>
+ <td nowrap><input class="input" type="text" name="AttributeName.1"><input style="display:''" type="image" src="images/delete.gif" vspace="5" hspace="5" onclick="deleteContainer(this, 4);return false;" id="AttributeName.1.Delete"><input vspace="5" type="image" src="images/add.gif" hspace="5" onclick="addContainer(this, 4);return false;" id="AttributeName.1.Add"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Consistent Read</span></td>
+ <td nowrap><input class="input" type="text" name="ConsistentRead"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
108 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/ListDomains.html
@@ -0,0 +1,108 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("ListDomains",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("ListDomains",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("ListDomains",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">ListDomains</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Max Number Of Domains</span></td>
+ <td nowrap><input class="input" type="text" name="MaxNumberOfDomains"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Next Token</span></td>
+ <td nowrap><input class="input" type="text" name="NextToken"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
169 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/PutAttributes.html
@@ -0,0 +1,169 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("PutAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("PutAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("PutAttributes",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">PutAttributes</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Domain Name</span></td>
+ <td nowrap><input class="input" type="text" name="DomainName"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Item Name</span></td>
+ <td nowrap><input class="input" type="text" name="ItemName"></td>
+ </tr>
+ </table>
+ <table style="margin: 20px" cellpadding="0" width="90%" cellspacing="2" border="0" bgcolor="#eeeeee" id="Attribute.1">
+ <tr>
+ <td style="border: 2px dashed #cccccc;">
+ <table width="100%">
+ <tr>
+ <td><input align="right" hspace="5" vspace="5" type="image" src="images/add.gif" onclick="addContainer(this, 8);return false;" id="Attribute.1.Add"><input align="right" type="image" style="display:''" src="images/delete.gif" hspace="5" vspace="5" onclick="deleteContainer(this, 8);return false;" id="Attribute.1.Delete"><div class="legend"><img src="images/bluearrow.gif" align="absmiddle" hspace="10">Attribute
+ </div>
+ </td>
+ </tr>
+ </table>
+ <fieldset style="padding-left: 30px;padding-right: 30px;padding-bottom: 30px; border: 0px;">
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Name</span></td>
+ <td nowrap><input class="input" type="text" name="Attribute.1.Name"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Value</span></td>
+ <td nowrap><input class="input" type="text" name="Attribute.1.Value"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Replace</span></td>
+ <td nowrap><input class="input" type="text" name="Attribute.1.Replace"></td>
+ </tr>
+ </table>
+ </fieldset>
+ </td>
+ </tr>
+ </table>
+ <table style="margin: 20px" cellpadding="0" width="95%" cellspacing="4" border="0" bgcolor="#eeeeee" id="Expected">
+ <tr>
+ <td style="border: 2px dashed #cccccc;">
+ <div class="legend"><img src="images/bluearrow.gif" align="absmiddle" hspace="10">Expected
+ </div>
+ <fieldset style="padding-left: 30px;padding-right: 30px;padding-bottom: 30px; border: 0px;">
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Name</span></td>
+ <td nowrap><input class="input" type="text" name="Expected.Name"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Value</span></td>
+ <td nowrap><input class="input" type="text" name="Expected.Value"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Exists</span></td>
+ <td nowrap><input class="input" type="text" name="Expected.Exists"></td>
+ </tr>
+ </table>
+ </fieldset>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
114 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/Select.html
@@ -0,0 +1,114 @@
+<html>
+ <head>
+ <title>Amazon SimpleDBScratchpad</title>
+ <script src="js/hmacsha1.js"></script>
+ <script src="js/awssigner.js"></script>
+ <script src="js/scratchpad.js"></script>
+ <script>
+ function invokeRequest() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("Select",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var postFormArea = document.getElementById("PostFormArea");
+ postFormArea.innerHTML = getFormFieldsFromUrl(url);
+ var postForm = document.getElementById("PostForm");
+ postForm.submit();
+ }
+
+ function displayUrl() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("Select",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ document.getElementById("preview").innerHTML = "<b>Signed URL:</b><p/>" + url + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+
+ function displayStringToSign() {
+ var form = document.forms[0];
+ var accessKeyId = parent.navbar.getAccessKeyId();
+ var secretKey = parent.navbar.getSecretAccessKey();
+ var url = generateSignedURL("Select",form, accessKeyId, secretKey, "https://sdb.amazonaws.com", "2009-04-15");
+ var stringToSign = getStringToSign(url);
+ document.getElementById("preview").innerHTML = "<b>String To Sign:</b><p/>" + stringToSign + "<p/>";
+ document.getElementById("preview").style.display = "block";
+ }
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="css/scratchpad.css"/>
+ </head>
+
+ <body marginheight="0" marginwidth="0" bottommargin="0" rightmargin="0" leftmargin="0" topmargin="0">
+ <form name="myform" action="" enctype="application/x-www-form-urlencoded" method="get">
+ <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 100%">
+ <tr>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ <td valign="top">
+ <table width="100%">
+ <tr>
+ <td valign="top" nowrap><font class="header">Select</font>
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <table cellspacing="10" width="100%" style="background-color: #eeeeee; padding: 10px;">
+ <tr><td>
+ <table width="100%" align="center"><tr><td>
+ <table border="0" width="100%" style="padding: 0px; margin: 0px; border: 2px solid #D5D5D5; background: url(images/bg-table.png) left top repeat-x;">
+ <tr>
+ <td>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Select Expression</span></td>
+ <td nowrap><input class="input" type="text" name="SelectExpression"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Next Token</span></td>
+ <td nowrap><input class="input" type="text" name="NextToken"></td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="3" border="0" bgcolor="#eeeeee" width="100%">
+ <tr>
+ <td align="right" style="padding-right:25px;padding-left:0px" width="250"><span class="label">Consistent Read</span></td>
+ <td nowrap><input class="input" type="text" name="ConsistentRead"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ </td></tr></table>
+ </td></tr>
+ </table>
+ </td>
+ </tr>
+
+ </table>
+ <div class="blurb" id="preview" style="margin: 20 1 1 1;overflow: auto;display:none"></div>
+ <img height="15" src="images/spacer.gif" width="700">
+ <table width="100%">
+ <tr>
+ <td><a href="javascript:invokeRequest();"><img border="0" src="images/button-invokerequest.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:displayUrl();"><img border="0" src="images/button-displayurl.png"></a>&nbsp;&nbsp;&nbsp;
+ <a href="javascript:document.forms[0].reset()"><img border="0" src="images/button-resetform.png"></a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="50%"><img height="1" src="images/spacer.gif" width="100"></td>
+ </tr>
+ </table>
+
+ <br/><br/>
+ <div style="padding-bottom: 2px; border-bottom: 1px dashed #cccccc; width: 100%"></div>
+ <center><div style="padding: 15px" class="smallLabel">Amazon SimpleDB API Version: 2009-04-15. Scratchpad generated: Thu Jul 15 15:51:04 PDT 2010 </div></center>
+ </form>
+ <form id="PostForm" name="PostForm" target="_new" action="https://sdb.amazonaws.com" enctype="application/x-www-form-urlencoded" method="get">
+ <div id="PostFormArea"></div>
+ </form>
+ </body>
+</html>
+
+
+
+
View
615 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/css/scratchpad.css
@@ -0,0 +1,615 @@
+:focus {
+ -moz-outline-style: none;
+}
+html {
+ overflow: -moz-scrollbars-vertical;
+ outline-style: none;
+}
+
+body {
+ font-family: verdana, arial, helvetica, sans-serif;
+ padding: 0px;
+ margin: 0px;
+ font-size: 11px;
+ outline-style: none;
+}
+
+table {
+ font-family: verdana, arial, helvetica, sans-serif;
+ padding: 0;
+ margin: 0;
+ font-size: 12px;
+}
+
+a:active {
+ outline-style: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+a {
+ text-decoration: none;
+ color: #4b6a86;
+ outline-style: none;
+}
+
+.blurb {
+ margin: 15px;
+ padding: 15px;
+ border: 1px dashed #ffc20d;
+ background-color: #fffbb8;
+}
+
+.apitable {
+ margin: 15px;
+ padding: 15px;
+ width: 500px;
+ border: 1px dashed #cccccc;
+ background-color: #eeeeee;
+}
+
+.apitable {
+ margin: 15px;
+ padding: 15px;
+ border: 1px dashed #cccccc;
+ background-color: #ffffff;
+}
+
+h4 {
+ font-size: 15px;
+ font-weight: bold;
+ color: #c60;
+ margin-top: 0px;
+}
+
+.header {
+ font-family: trebuchet ms, verdana, tahoma, arial;
+ font-size: 22px;
+ font-weight: bold;
+ color: #6D6DA0;
+ margin-top: 0px;
+}
+
+.logo {
+ font-family: trebuchet ms, verdana, tahoma, arial;
+ font-size: 20px;
+ color: #ba3639;
+ margin-top: 0px;
+}
+
+
+.logoweb {
+ font-family: trebuchet ms, verdana, tahoma, arial;
+ font-size: 20px;
+ color: #B3B3B3;
+ margin-top: 0px;
+}
+
+.text {
+ margin: 15px;
+ padding: 15px;
+ border: 1px dashed #ffffff;
+ background-color: #ffffff;
+}
+
+.label {
+ font-family: Arial,Helvetica,sans-serif;
+ font-size :13px ;
+ color : #333333 ;
+}
+
+.smallLabel {
+ font-family: Arial,Helvetica,sans-serif;
+ font-size :11px ;
+ color : #616161 ;
+}
+
+.help {
+ background-color: #ffff99;
+ border: 1px solid #ff9900;
+ display:none;
+ width:700px;
+ font-size: 12px;
+ font-family: Ms san serif, Verdana, Arial;
+ padding: 10px;
+ z-index: 1;
+}
+.outerTable {
+ padding: 0px;
+ height: 100%;
+ margin: 0px;
+ border: 0px;
+ width: 100%;
+
+}
+
+.outerTdRight {
+ background-color: #ffffff;
+ border-bottom: 1px solid #cccccc;
+ border-right: 1px solid #cccccc;
+ padding: 0px;
+}
+
+.logoutTd {
+ padding: 0px;
+ padding-right: 15px;
+ background-color: #f2f2f2;
+
+}
+
+.outerTdBottom {
+ background-color: #ffffff;
+ border-bottom: 1px solid #cccccc;
+ text-align: top;
+ width: 100%;
+ padding: 0px;
+
+}
+
+.outerTdLeft {
+ background-color: #ffffff;
+ border-bottom: 1px solid #cccccc;
+ border-left: 1px solid #cccccc;
+ width: 20%;
+ padding: 0px;
+}
+
+.outerTdLeftColumn {
+ background-color: #f2f2f2;
+ border-bottom: 1px solid #cccccc;
+ border-right: 1px solid #cccccc;
+ align: center;
+ text-align: top;
+ padding: 0px;
+}
+
+.outerTdBody {
+ padding: 15px;
+ height: 100%;
+ background-color: #ffffff;
+ text-align: top;
+ width: 600px;
+ align: left;
+
+}
+
+.outerTdRightColumn {
+ background-color: #f2f2f2;
+ border-bottom: 1px solid #cccccc;
+ border-left: 1px solid #cccccc;
+ width: 20%;
+ text-align: top;
+ padding: 0px;
+}
+
+fieldset {
+ padding: 0px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ font:100%/1 sans-serif;
+ border: 1px solid #ccc;
+
+}
+.legend {
+ padding: 5px;
+ font-weight:bold;
+ color: #6699cc;
+
+}
+.input {
+ width: 250px;
+ height: 30px;
+ background-color: #ffffff;
+ border: 1px solid #cccccc;
+ font-size: 17px;
+ color: #6699cc;
+}
+select {
+ background-color: #ffffff;
+ color: #6699cc;
+ width: 250px;
+ border: 1px solid #cccccc;
+ height: 30px;
+ font-size: 17px;
+}
+
+td {
+ font-family: helvetica, arial, verdana;
+ font-size: 15px;
+ color: #333;
+}
+.dashedLine {
+ padding-bottom: 2px;
+ border-bottom: 1px dashed #cccccc;
+ width: 100%;
+
+}
+
+.description {
+ background-color: #dbdfff;
+ padding: 15px;
+ margin: 15px;
+ width: 100%;
+
+}
+
+.errors {
+ background-color: #ffdfdf;
+ padding: 15px;
+ margin: 15px;
+ color: red;
+
+}
+
+.response {
+ background-color: #ccff99;
+ padding: 15px;
+ margin: 15px;
+
+}
+.submit {
+ outline: none;
+
+}
+
+ul.list li {
+ list-style-type: square;
+ padding: 5px;
+ color: #333333;
+
+}
+
+.darkLink {
+ text-decoration: none;
+ color: #cc3333;
+ outline-style: none;
+}
+
+.note {
+ background-color: #ffffcc;
+ border: 1px solid #fce383;
+ font-size: 12px;
+ font-family: Ms san serif, Verdana, Arial;
+ padding: 10px;
+ color: #333;
+}
+
+:focus {
+ -moz-outline-style: none;
+}
+html {
+ overflow: -moz-scrollbars-vertical;
+ outline-style: none;
+}
+
+body {
+ font-family: verdana, arial, helvetica, sans-serif;
+ padding: 0px;
+ margin: 0px;
+ font-size: 11px;
+ outline-style: none;
+}
+
+table {
+ font-family: verdana, arial, helvetica, sans-serif;
+ padding: 0;
+ margin: 0;
+ font-size: 12px;
+}
+
+a:active {
+ outline-style: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+a {
+ text-decoration: none;
+ color: #4b6a86;
+ outline-style: none;
+}
+
+.blurb {
+ margin: 15px;
+ padding: 15px;
+ border: 1px dashed #ffc20d;
+ background-color: #fffbb8;
+}
+
+.apitable {
+ margin: 15px;
+ padding: 15px;
+ width: 500px;
+ border: 1px dashed #cccccc;
+ background-color: #eeeeee;
+}
+
+.apitable {
+ margin: 15px;
+ padding: 15px;
+ border: 1px dashed #cccccc;
+ background-color: #ffffff;
+}
+
+h4 {
+ font-size: 15px;
+ font-weight: bold;
+ color: #c60;
+ margin-top: 0px;
+}
+
+.header {
+ font-family: trebuchet ms, verdana, tahoma, arial;
+ font-size: 18px;
+ font-weight: bold;
+ color: #cc6600;
+ margin-top: 0px;
+}
+
+.logo {
+ font-family: trebuchet ms, verdana, tahoma, arial;
+ font-size: 22px;
+ color: #ba3639;
+ margin-top: 0px;
+ font-weight: bold;
+}
+
+
+.logoweb {
+ font-family: trebuchet ms, verdana, tahoma, arial;
+ font-size: 22px;
+ color: #B3B3B3;
+ margin-top: 0px;
+ font-weight: bold;
+}
+
+.text {
+ margin: 15px;
+ padding: 15px;
+ border: 1px dashed #ffffff;
+ background-color: #ffffff;
+}
+
+.label {
+ font-family: Arial,Helvetica,sans-serif;
+ font-size :13px ;
+ color : #333333 ;
+}
+
+.smallLabel {
+ font-family: Arial,Helvetica,sans-serif;
+ font-size :11px ;
+ color : #616161 ;
+}
+
+.help {
+ background-color: #ffff99;
+ border: 1px solid #ff9900;
+ display:none;
+ width:700px;
+ font-size: 12px;
+ font-family: Ms san serif, Verdana, Arial;
+ padding: 10px;
+ z-index: 1;
+}
+.outerTable {
+ padding: 0px;
+ height: 100%;
+ margin: 0px;
+ border: 0px;
+ width: 100%;
+
+}
+
+.outerTdRight {
+ background-color: #ffffff;
+ border-bottom: 1px solid #cccccc;
+ border-right: 1px solid #cccccc;
+ padding: 0px;
+}
+
+.logoutTd {
+ padding: 0px;
+ padding-right: 15px;
+ background-color: #f2f2f2;
+
+}
+
+.outerTdBottom {
+ background-color: #ffffff;
+ border-bottom: 1px solid #cccccc;
+ text-align: top;
+ width: 100%;
+ padding: 0px;
+
+}
+
+.outerTdLeft {
+ background-color: #ffffff;
+ border-bottom: 1px solid #cccccc;
+ border-left: 1px solid #cccccc;
+ width: 20%;
+ padding: 0px;
+}
+
+.outerTdLeftColumn {
+ background-color: #f2f2f2;
+ border-bottom: 1px solid #cccccc;
+ border-right: 1px solid #cccccc;
+ align: center;
+ text-align: top;
+ padding: 0px;
+}
+
+.outerTdBody {
+ padding: 15px;
+ height: 100%;
+ background-color: #ffffff;
+ text-align: top;
+ width: 600px;
+ align: left;
+
+}
+
+.outerTdRightColumn {
+ background-color: #f2f2f2;
+ border-bottom: 1px solid #cccccc;
+ border-left: 1px solid #cccccc;
+ width: 20%;
+ text-align: top;
+ padding: 0px;
+}
+
+fieldset {
+ padding: 0px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ font:100%/1 sans-serif;
+ border: 1px solid #ccc;
+
+}
+.legend {
+ padding: 5px;
+ font-weight:bold;
+ color: #6699cc;
+
+}
+.input {
+ width: 250px;
+ height: 30px;
+ background-color: #ffffff;
+ border: 1px solid #cccccc;
+ font-size: 17px;
+ color: #6699cc;
+}
+select {
+ background-color: #ffffff;
+ color: #6699cc;
+ width: 250px;
+ border: 1px solid #cccccc;
+ height: 30px;
+ font-size: 17px;
+}
+
+td {
+ font-family: helvetica, arial, verdana;
+ font-size: 15px;
+ color: #333;
+}
+.dashedLine {
+ padding-bottom: 2px;
+ border-bottom: 1px dashed #cccccc;
+ width: 100%;
+
+}
+
+.description {
+ background-color: #eeeeee;
+ padding: 15px;
+
+}
+
+.errors {
+ background-color: #ffdfdf;
+ padding: 15px;
+ margin: 15px;
+ color: red;
+
+}
+
+.response {
+ background-color: #ccff99;
+ padding: 15px;
+ margin: 15px;
+
+}
+.submit {
+ outline: none;
+
+}
+
+ul.list li {
+ list-style-type: square;
+ padding: 5px;
+ color: #333333;
+
+}
+
+.darkLink {
+ text-decoration: none;
+ color: #cc3333;
+ outline-style: none;
+}
+
+.note {
+ background-color: #ffffcc;
+ border: 1px solid #fce383;
+ font-size: 12px;
+ font-family: Ms san serif, Verdana, Arial;
+ padding: 10px;
+ color: #333;
+}
+
+.label{
+ color: #333;
+
+}
+.tab{
+ color: navy;
+ background-color: white;
+ border-top: 0px solid #6699cc;
+ border-bottom: 0px solid #6699cc;
+ border-left: 1px solid #6699cc;
+ border-right: 1px solid #6699cc;
+ background:url(../images/bg-nav.png);
+ position: absolute;
+ top: 0;
+ width: 120px;
+ text-align: center;
+ font: 9pt Verdana,sans-serif;
+ z-index: 2;
+ padding: 3;
+ cursor: pointer;
+ cursor: hand;
+ height: 33px;
+
+}
+
+.tabLite {
+ filter: alpha(opacity=50); -moz-opacity: 0.5;
+ color: navy;
+ background-color: white;
+ border-top: 0px solid #6699cc;
+ border-bottom: 0px solid #6699cc;
+ border-left: 1px solid #6699cc;
+ border-right: 1px solid #6699cc;
+ background:url(../images/bg-nav.png);
+ position: absolute;
+ top: 3;
+ width: 120px;
+ text-align: center;
+ font: 9pt Verdana,sans-serif;
+ z-index: 2;
+ padding: 3;
+ cursor: pointer;
+ cursor: hand;
+ height: 30px;
+}
+.panel{
+ position: absolute;
+ top: 32;
+ left: 15%;
+ right: 15%;
+ width: 70%;
+ z-index: 1;
+ height: 1000px;
+ display: none;
+ padding: 10;
+ overflow: none;
+ border: 2px dashed #669999;
+}
+
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/add.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/bg-nav.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/bg-table.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/bluearrow.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-displaystringtosign.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-displayurl.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-invokerequest.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/button-resetform.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/delete.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/go.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/help.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/poweredbyaws.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/images/spacer.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/index.html
@@ -0,0 +1,4 @@
+<frameset rows="129,*">
+ <frame frameborder="no" style="border: 0px" noresize name="navbar" src="navbar.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0">
+ <frame frameborder="no" noresize style="border: 0px" name="main" src="main.html" marginwidth="0" marginheight="0" frameborder="0">
+</frameset>
View
123 misc/AmazonSimpleDB-2009-04-15-scratchpad/webapp/js/awssigner.js
@@ -0,0 +1,123 @@
+function AWSSigner(accessKeyId, secretKey) {
+ this.accessKeyId = accessKeyId;
+ this.secretKey = secretKey;
+}
+
+AWSSigner.prototype.sign = function (params, time, requestInfo) {
+ var timeUtc = time.toISO8601();
+ params = this.addFields(params, timeUtc);
+ params.Signature = this.generateSignature(this.canonicalize(params, requestInfo));
+ return params;
+}
+
+AWSSigner.prototype.addFields = function (params, time) {
+ params.AWSAccessKeyId = this.accessKeyId;
+ params.SignatureVersion = this.version;
+ params.SignatureMethod = "HmacSHA1";
+ params.Timestamp = time;
+ return params;
+}
+
+AWSSigner.prototype.generateSignature = function (str) {
+ return b64_hmac_sha1(this.secretKey, str);
+}
+
+AWSV2Signer.prototype = new AWSSigner();
+
+function AWSV2Signer(accessKeyId, secretKey) {
+ AWSSigner.call(this, accessKeyId, secretKey);
+ this.version = 2;
+}
+
+function urlEncode(url) {
+ return encodeURIComponent(url)
+ .replace(/!/g, '%21')
+ .replace(/'/g, '%27')
+ .replace(/\(/g, '%28')
+ .replace(/\)/g, '%29')
+ .replace(/\*/g, '%2A');
+}
+
+AWSV2Signer.prototype.canonicalize = function (params, requestInfo) {
+ var verb = requestInfo.verb;
+ var host = requestInfo.host.toLowerCase();
+ var uriPath = requestInfo.uriPath;
+ var canonical = verb + "\n" + host + "\n" + uriPath + "\n";
+ var sortedKeys = filterAndSortKeys(params, signatureFilter, caseSensitiveComparator);
+ var first = true;
+ for (var i = 0; i < sortedKeys.length; i++) {
+ if (first) {
+ first = false;
+ } else {
+ canonical += "&";
+ }
+ var key = sortedKeys[i];
+ canonical += urlEncode(key);
+ if (params[key] !== null) {
+ canonical += "=" + urlEncode(params[key]);
+ }
+ }
+ return canonical;
+}
+
+function filterAndSortKeys(obj, filter, comparator) {
+ var keys = new Array();
+ for (var key in obj) {
+ if (!filter(key, obj[key])) {
+ keys.push(key);