Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated formatting in various code samples per DM-10
Actions

Table of Contents
maxLevel5
stylecircle
minLevel2

Requirements

The examples in this page use the Prototype library, which is included by default inside a portal. However, the same concepts may be applied using other implementations.

...

Code Block
languagejavascript
 
dispatch($H({
  controller : 'portal.browser',
  action : "internalOpen",
  args : ["http://www.appcelerator.com"].toJSON()
}).toJSON());

...

Code Block
languagejavascript
 
dispatch($H({
  controller : 'portal.browser',
  action : "externalOpen",
  args : ["http://www.appcelerator.com"].toJSON()
}).toJSON());

...

Code Block
languagejavascript
 
var addedBrowsers = dispatch($H({
  controller : 'portal.browser',
  action : "configureBrowsers"
}).toJSON());

...

Code Block
languagejavascript
 
var browsers = dispatch($H({
  controller : 'portal.browser',
  action : "getConfiguredBrowsers"
}).toJSON());

...

Code Block
languagejavascript

myLink = $('my-link');
myLink.observe('click', function(e) {
  if (typeof(dispatch) !== 'undefined') {
    dispatch($H({
      controller : 'portal.browser',
      action : "externalOpen",
      args : ["http://www.appcelerator.com"].toJSON()
    }).toJSON());
  }
  return false;
});