Developer Documentation Library > Mobile SDK > Connected mobile application example reference > Components overview > pageManager.js
 
pageManager.js
Public methods
getPostData
GET post data from the user interface.
initialize
Accepts the context data from main.js.
postReady
Return a Boolean value that indicates whether the response data is ready for posting to the server.
render
Renders the current question in the user interface.
setPosition
Sets the question array index to retrieve the current question.
Major private methods
_getQuestionRenderer
GET the specific question renderer, according to the current question type.
_setPageCodes
Renders the selection items that support codes (NA, REF, DK).
_setPageText
Sets the question text, or error text, in the user interface.
Methods
CollectResponse
Collect the response values for the question object at CurrentIndex in the QuestionList array.
GeneratePostData
Generate the post data according to the user responses. Simple questions contain a single response; complex questions contain responses for each question.
RenderQuestion
Render the question object at CurrentIndex in the QuestionList array.
See also
Components overview