Help
getSectionData
Launches an asynchronous request to get all item data for the current user's section. You get the data in a callback function. If the requester is a student, data is returned only if at least five students have completed the activity.
Syntax
getSectionData(Object options) : Boolean
Parameters
Returns
True on successful request launch, otherwise false. Check success status in callback.
Example
This example calls getSectionData to retrieve class data for the current activity. It assumes DEJS_API.initialize has successfully been called.

function getSectionDataHandler(options, success, data) {
  if (success) {
    // JSON.encode stringifies the result so you can easily see 
    // all the data in one string
    alert('in callback; getSectionData completed successfully with data: ' +  
          JSONP.encode(data));
  } else {
    alert('in callback: getSectionData failed!');
  }
}

DEJS_API.getSectionData({callback: getSectionDataHandler, timeout: 60000}));
			
See Also
getSectionDataHandler