javascript - TypeError: AWS.SimpleDB() is not a constructor -


i'm trying access aws simpledb javascript. code following:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.38.js"></script> <script type="text/javascript">     aws.config.update({accesskeyid: 'mykey', secretaccesskey: 'mysecret'});     aws.config.region = 'us-east-1'; </script> <script>     var simpledb = new aws.simpledb(); </script> 

i'm getting error:

typeerror: aws.simpledb() not constructor

i tried creating aws.s3() object , works fine.

what's proper way initialize , use simpledb simple javascript?

it not appear more recent versions of javascript sdk supports simpledb. inspected js source of library attempting use , recent version of browser sdk , neither have functionality (access simpledb). here list of services supported in current sdk. please let me know if i'm misunderstanding:

http://docs.aws.amazon.com/awsjavascriptsdk/guide/browser-services.html

edit: not supported in hosted version of library, when link js in script tag above. there instructions build custom sdk script host support access simpledb. see:

http://docs.aws.amazon.com/awsjavascriptsdk/guide/browser-building.html


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -