saqimtiaz / hesperian-mhealth-pregnancy-warning-signs

Mobile app using Hesperian content about warning signs during pregnancy
MIT License
4 stars 3 forks source link

Passing context when navigating to a new page #12

Closed saqimtiaz closed 13 years ago

saqimtiaz commented 13 years ago

Research whether it is possible to pass along some context information that would be retained when navigating from one page to another. This would be used to highlight the appropriate big 5 icon in the top navigation bar based on how the user arrived at that page (a page can belong to multiple categories)

saqimtiaz commented 13 years ago

Assuming that we keep the entire app in one page, the easiest way to go about this would be to set a global variable object HM and just set HM.bigfive on each page change.