dojox/mobile/dh/HtmlScriptContentHandler (version 1.10)

dojox/mobile/dh/HtmlContentHandler, dojox/mobile/_ExecScriptMixin

Summary

An HTML content handler that has script execution capability.

Method Summary

  • execScript(html) Finds script tags and executes the script.
  • parse(content,target,refNode) Parses the given data and creates a new view at the given position.

Methods

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.

parse(content,target,refNode)

Parses the given data and creates a new view at the given position.

Parameter Type Description
content String

Content data for a new view.

target DomNode

A DOM node under which a new view is created.

refNode DomNode
Optional

An optional reference DOM node before which a new view is created.

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