Salvatore Di Fazio
Salvatore Di Fazio

Reputation: 715

Storage Table - REST and JavaScript

Maybe the question is stupid but I do it anyway :)

I would like to write into a azure storage table by client side (JavaScript), is that possible?

Upvotes: 4

Views: 955

Answers (2)

Mike Fisher
Mike Fisher

Reputation: 389

At the BUILD conference, Windows Azure Storage announced support for JSON and CORS coming by the end of 2013. This will make it easy to access your table storage account directly from JavaScript code to read and write data.

Source: http://blogs.msdn.com/b/windowsazurestorage/archive/2013/06/28/windows-azure-storage-build-talk-what-s-coming-best-practices-and-internals.aspx

In the meantime, you can create a small web service that you call from your JavaScript code to access your table storage account.

Upvotes: 1

rjha94
rjha94

Reputation: 4318

Right now my workaround is to write services in Java/Jersey that talk to Azure table services. Jersey supports CORS so I can access the services through javascript easily.

The big problem with accessing any REST service from Javascript is security. It should be okay for public services though.

Upvotes: 1

Related Questions