0

Alternate SideView

I want to display an alternate sideview from the default one defined in the init.js file.
Here is the code I inserted
CODE
_handleActivateSnippet: function(event) {

// disable event default event processing
event.preventDefaultI);
//load alternate
KONtx.application.loadView('my_new_view_id', {var1: 'functionVariable)'});
},

Log contains the following:
Sent HostEvent: loadView;
**AppManager._checkAllowLoadView() Not allowed right now ......

THANX in advance

by
3 Replies
  • Use this code instead:

    CODE
    _handleActivateSnippet: function(event) {
    log("activate snippet!");
    event.preventDefault();
    event.stopPropagation();
    KONtx.application.setHostResultToViewId(event, VIEW_ID, VIEW_PARAMS);
    }
    0
  • QUOTE (Jeremy Johnstone @ May 24 2010, 06:33 PM) <{POST_SNAPBACK}>
    Use this code instead:

    CODE
    _handleActivateSnippet: function(event) {
    log("activate snippet!");
    event.preventDefault();
    event.stopPropagation();
    KONtx.application.setHostResultToViewId(event, VIEW_ID, VIEW_PARAMS);
    }
    0
  • Jeremy,
    Thank you for the information.
    Works like a champ!!
    0

Recent Posts

in Design / Interaction - Yahoo! TV Widgets