API Documentation for: 0.6.0
Show:

DataUtils Class

Defined in: DataUtils:36
Module: PreloadJS

A few data utilities for formatting different data types.

Item Index

Methods

Methods

parseJSON

(
  • value
)
Object

Defined in parseJSON:67

Parse a string into an Object.

Parameters:

  • value String

    The loaded JSON string

Returns:

Object:

A JavaScript object.

parseXML

(
  • text
  • type
)
XML static

Defined in parseXML:43

Parse XML using the DOM. This is required when preloading XML or SVG.

Parameters:

  • text String

    The raw text or XML that is loaded by XHR.

  • type String

    The mime type of the XML. Use "text/xml" for XML, and "image/svg+xml" for SVG parsing.

Returns:

XML:

An XML document