#summary How to navigate between views (API 0.7) = Introduction = 0.7 changed the Surface object to a View object and moved navigation out of the `opensocial` namespace into the `gadgets` namespace. This page updates the sample code available in the [http://code.google.com/apis/opensocial/docs/0.6/devguide.html#Nav OpenSocial Developer's Guide] to work with the 0.7 API = Details = Here is a complete example to list the supported views and navigate between them: {{{ ]]> }}} Here is a sample that navigates to the canvas view: {{{ function gotoCanvas() { var canvas_view = new gadgets.views.View("canvas"); gadgets.views.requestNavigateTo(canvas_view); }; gotoCanvas(); }}} Here is a sample that navigates to the profile view: {{{ function gotoProfile() { var profile_view = new gadgets.views.View("profile"); gadgets.views.requestNavigateTo(profile_view); }; gotoProfile(); }}}