var context = new DataManagerContext(); // Create a new DataManagerContext object
context.forceOnline = true; // Set the forceOnline property to true
// Specify the web’s URL.
var webUrl = " http://spdemo.infragistics.com/demo";
// Invoke Web.getWebsAndLists API method.
SPlus.Web.getWebsAndLists(webUrl, function(webs, lists) {
// Get all webs and lists and implement what to do with them
}, function(response) {
// Implement how to handle errors
}, function(response) {
// Implement how to handle a user’s cancel
}, context); // Send the DataManagerContext to the API method