dojox/mobile/dh/DataHandler (version 1.10)

Summary

A component that provides an interface between data and handlers.

This module fetches data through DataSource and calls a ContentHandler to parse the content data and create a new view.

Usage

var foo = new DataHandler(ds,target,refNode);
dojox/mobile/dh/DataHandler
Parameter Type Description
ds DataSource
target DomNode
refNode DomNode
Optional

Property Summary

  • dsA DataSource instance.
  • refNodeAn optional reference DOM node before which a new view is created.
  • targetA DOM node under which a new view is created.

Method Summary

  • processData(contentType,callback) Fetches data through DataSource and passes it to a content handler.

Properties

ds

A DataSource instance.

refNode

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

target

A DOM node under which a new view is created.

Methods

processData(contentType,callback)

Fetches data through DataSource and passes it to a content handler.

Parameter Type Description
contentType String

The type of the content. (ex. "html") It is used to determine what content handler to use.

callback Function

A function to be called after creating a new view.

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