Resources



Sample Code and Libraries

Javascript Scratchpad for Amazon SimpleDB

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
Average Review:

A simple HTML and Javascript application that allows you to explore the Amazon SimpleDB API without writing any code.

Submitted By: Elena@AWS  
AWS Products Used: Amazon SimpleDB
Language(s): JavaScript/AJAX
License: Apache License 2.0

About this Scratchpad

  • A simple HTML/Javascript-based application that allows you to explore the Amazon SimpleDB API without writing any code.
  • Based on the 2009-04-15 API version.

What's New?

  • 2009-05-20: Deprecate Query and QueryWithAttributes. Please migrate to Select API
  • 2009-03-24: Support for new API - BatchPutAttributes
  • 2008-08-28: Support for new API - QueryWithAttributes
  • 2008-04-24: Upgrade hmac-sha1 library to support UTF8. Note, however, UTF8-related functionality in scratchpad is currently limited to GET requests. To invoke request with UTF8 characters, click on "Display Signed URL" and paste url into the browser window.


Package Content

Directory Overview
webapp HTML / Javascript distribution of scratchpad.

Quick Start

  1. Extract the amazon-simpledb-2009-04-15-javascript-scratchpad.zip file into a working directory.
  2. Browse to amazon-simpledb-2009-04-15-javascript-scratchpad/webapp directory and open index.html file in your browser.
  3. Use "Explore API" dropdown to navigate and try various Amazon SimpleDB API
Happy coding!

Comments, Questions or Feedback

If you have any comments, questions or feedback on the library, please start discussion here.

Discussion

The 5 most recent discussion messages. View full discussion.

johnthsu
Posts: 4
Registered: 10/1/09
Re: AuthFailure with Scratchpad
Posted: Oct 3, 2009 7:43 AM PDT   in response to: JoeJ@AWS
 
  Click to reply to this thread Reply

Hi JoeJ:
I am not sure how to get the private mwssage that you sent to me.

Thanks
Sincerely
John Hsu

JoeJ@AWS
Posts: 158
Registered: 5/30/08
Re: AuthFailure with Scratchpad
Posted: Oct 3, 2009 5:44 PM PDT   in response to: johnthsu
 
  Click to reply to this thread Reply


Use this link to retreive your private messages:

http://developer.amazonwebservices.com/connect/pm.jspa


johnthsu
Posts: 4
Registered: 10/1/09
Re: AuthFailure with Scratchpad
Posted: Oct 5, 2009 7:07 PM PDT   in response to: JoeJ@AWS
 
  Click to reply to this thread Reply

Thanks a lot JoeJ.
It works after resign up for the service. I also create a new access key.

Sincerely
John Hsu

Daniel Wong
RealName(TM)
Posts: 6
Registered: 12/4/08
Re: Javascript Scratchpad for Amazon SimpleDB
Posted: Nov 23, 2009 3:17 AM PST   in response to: blacksqr
 
  Click to reply to this thread Reply

I think I found a bug where if you try to input more than 10 attribute name/value pairs, the constructed request URL uses incorrect attribute numbers. To repro, just use the PutAttributes tool, and input more than 10 attribute name/value pairs.

Sorry if this isn't the right place to report bugs. The article doesn't seem to mention a bug tracker :/

PS: Other than this bug, I really like this tool.


davidrtill
Posts: 1
Registered: 12/1/09
Re: AuthFailure with Scratchpad
Posted: Dec 1, 2009 1:49 PM PST   in response to: johnthsu
 
  Click to reply to this thread Reply

I wonder if you ever discovered why you got AutoFailure from Scratchpad and how you fixed it... I am having the same problem.

David


Reviews
Create Review Write a Review

Misleading and missing buttons, Jan 5, 2008 4:59 AM
Reviewer: smcal75
A very good scratchpad indeed to explore simpledb. But a novice user might get confused as InvokeRequest button actually does not invoke the request and just displays the URL to be invoked! User would need to copy/paste this URL in another browser window/tab to actually invoke the request. This might be due to incorrect commenting out and a copy/paste error in original code. For example in CreateDomain.html line 78 requires a fix to call invokeRequest() instead of displayUrl() when button shown by button-invokerequest.png is clicked. Also display url and display signed url buttons which have been commented out should be put back in.

putAttributes - replace confusing, Mar 16, 2008 10:05 PM
Reviewer: Johan Steenkamp
The scratch pad is very useful tool - thanks for making it available. Why allow users to enter a value for Replace when it can only be true/false? I found this confusing as it appeared you could specify a value for a Attribute/Value pair to be replaced with - for example if I have multiple values for a given attribute (color = red,blue,black) and only wanted to replace a specific one (color = black, repalce with color = white). I think making it a radio button or drop select list with true/false would be better. Also adding a "link" option to launch the generated URL would be useful.

It's Free and it Runs :-), Jun 3, 2008 1:30 PM
Reviewer: dekenewman
For being a little client running off JavaScript, html, and css... this is flat out awesome. At first, I used awszone.com. And, that's alright, but this is way better :-) Thanks.

Handy Tool While We Wait for the Console, Jun 5, 2009 6:04 AM
Reviewer: Gandalf
Getting used to the limitations of SimpleDB takes some time, and developing applications using it feels clumsy and sluggish compared to the robust toolkit supporting MySQL (including the superb phpMyAdmin). Amazon is promising AWS Console point-and-click support for SimpleDB. In the meantime, the Javascript Scratchpad is a useful tool for kicking the tires on your database and running less used, but helpful API calls. My only complaint is that the app sends our AWS credentials across the wire instead of loading from a config file.
Welcome, Guest Help
Login Login