stretchr / sdk-js

HTML5 and JavaScript SDK for Stretchr
http://docs.stretchr.com/sdks/javascript.md
3 stars 0 forks source link

Request events should also get called on the Client object too #17

Open matryer opened 10 years ago

matryer commented 10 years ago

Use case:

As a developer I want to add a 'loading' animated gif to the page whenever Stretchr is doing some work So that I can inform the users of activity, and ask them to wait

Ideally, like this:

stretchr.before(function(){
  $("#busy").show();
});
stretchr.after(function(){
  $("#busy").hide();
});

Where #busy could be a div that fills the screen and has a "Please wait..." message on it.

At the moment, request events don't get called on the Stretchr.Client.

mazondo commented 10 years ago

This is pretty cool. Probably not super high on the priorities but definitely a nice to have