I'm working on an UI feature for my SP2010 site and would like to display a number indicating how many documents were added to a specific library since the users last visit.
The UI will display a box on the left hand site of the screen, listing all document libraries on the current web and then how many documents were added since the users last visit.
I already know you can get all lists by doing:
var context = new SP.ClientContext.get_current();
var lists = context.get_web().get_lists();
But how can I get all document libraries as they are of a different type than SPList
?