dojox/mobile/_ContentPaneMixin (version 1.10)

dojox/mobile/_ExecScriptMixin

Summary

Mixin for a very simple content pane to embed an HTML fragment.

By mixing this class into a widget, the widget can have the ability to embed an external HTML fragment and to run the parser.

Usage

var foo = new _ContentPaneMixin();
dojox/mobile/_ContentPaneMixin

See the dojox/mobile/_ContentPaneMixin reference documentation for more information.

Property Summary

  • contentAn HTML fragment to embed.
  • executeScriptsIf true, executes scripts that is found in the content.
  • hrefURL of the content to embed.
  • lazyIf true, external content specified with the href property is not loaded at startup time.
  • parseOnLoadIf true, runs the parser when the load completes.
  • progIf true, shows progress indicator while loading an HTML fragment specified by href.

Method Summary

Event Summary

  • onLoad() Stub method to allow the application to connect to the loading of external content (see load()).

Properties

content

An HTML fragment to embed.

executeScripts

If true, executes scripts that is found in the content.

href

URL of the content to embed.

lazy

If true, external content specified with the href property is not loaded at startup time. It can be loaded by calling load().

parseOnLoad

If true, runs the parser when the load completes.

prog

If true, shows progress indicator while loading an HTML fragment specified by href.

Methods

_setContentAttr(data)
Parameter Type Description
data String | DomNode
Returns:undefined
_setHrefAttr(href)
Parameter Type Description
href String
Returns:null | undefined
errorHandler(err)

An error handler called when load fails.

Parameter Type Description
err undefined
execScript(html)

Finds script tags and executes the script.

Parameter Type Description
html String

The HTML input.

Returns:String | undefined

The given HTML text from which <script> blocks are removed.

load()

Loads external content specified with href.

loadHandler(response)

A handler called when load completes.

Parameter Type Description
response String

Events

onLoad()

Stub method to allow the application to connect to the loading of external content (see load()). Called when parsing is done and the content is ready.

Returns:boolean
Error in the documentation? Can’t find what you are looking for? Let us know!