Zapatec Utils

Class Zapatec.Transport

Object
   |
   +--Zapatec.Transport

class Zapatec.Transport

Defined in transport.js


Field Summary
<static>  Object pickActiveXVersion
          
 
Constructor Summary
Zapatec.Transport()
           
 
Method Summary
<static> object createXmlHttpRequest()
           Creates cross browser XMLHttpRequest object.
<static> void evalGlobalScope(<string> sScript)
           Evaluates javascript in global scope.
<static> object fetch(<object> oArg)
           Fetches specified URL using new XMLHttpRequest object.
<static> object fetchJsonObj(<object> oArg)
           Fetches and parses JSON object from the specified URL.
<static> object fetchXmlDoc(<object> oArg)
           Fetches and parses XML document from the specified URL.
<static> string getPath(<string> sScriptFileName)
           Returns path to the specified js file.
<static> void include(<string> sSrc, <string> sId, <boolean> bForce)
           Writes script tag to the document.
<static> void includeCSS(<string> sHref)
           Includes CSS file into the page.
<static> void includeJS(<string> sSrc, <string> sId)
           Includes JS file into the page.
<static> void loadCss(<object> oArg)
           Fetches style sheet using fetch and loads it into the document.
<static> void loadCssList(<object> oArg)
           Loads several CSS files one by one it into the document.
<static> void loadJS(<object> oArg)
           Fetches JS file using fetch and evaluates it in global scope.
<static> object parseHtml(<string> sHtml)
           Parses HTML fragment into HTMLElement object.
<static> object parseJson(<object> oArg)
           Parses JSON string into object.
<static> object parseXml(<object> oArg)
           Parses XML string into XMLDocument object.
<static> void preloadImages(<object> oArg)
           Preloads one or several images at once.
<static> void removeBusy(<object> oArg)
           Removes animated GIF which was put by Zapatec.Transport.showBusy() from the specified div.
<static> string serializeJsonObj(<object> v)
           Serializes JSON object into JSON string.
<static> string serializeXmlDoc(<object> oDoc)
           Serializes XMLDocument object into XML string.
<static> void setInnerHtml(<object> oArg)
           Assigns passed HTML fragment to the specified element's innerHTML property and evaluates in global scope javascripts found in the fragment.
<static> void showBusy(<object> oArg)
           Shows animated GIF in the specified div.
<static> string translateUrl(<object> oArg)
           Translates a URL to the URL relative to the specified or to absolute URL.

Field Detail

pickActiveXVersion

<static> Object pickActiveXVersion

Constructor Detail

Zapatec.Transport

Zapatec.Transport()

Method Detail

createXmlHttpRequest

<static> object createXmlHttpRequest()

evalGlobalScope

<static> void evalGlobalScope(<string> sScript)

fetch

<static> object fetch(<object> oArg)

fetchJsonObj

<static> object fetchJsonObj(<object> oArg)

fetchXmlDoc

<static> object fetchXmlDoc(<object> oArg)

getPath

<static> string getPath(<string> sScriptFileName)

include

<static> void include(<string> sSrc, <string> sId, <boolean> bForce)

includeCSS

<static> void includeCSS(<string> sHref)

includeJS

<static> void includeJS(<string> sSrc, <string> sId)

loadCss

<static> void loadCss(<object> oArg)

loadCssList

<static> void loadCssList(<object> oArg)

loadJS

<static> void loadJS(<object> oArg)

parseHtml

<static> object parseHtml(<string> sHtml)

parseJson

<static> object parseJson(<object> oArg)

parseXml

<static> object parseXml(<object> oArg)

preloadImages

<static> void preloadImages(<object> oArg)

removeBusy

<static> void removeBusy(<object> oArg)

serializeJsonObj

<static> string serializeJsonObj(<object> v)

serializeXmlDoc

<static> string serializeXmlDoc(<object> oDoc)

setInnerHtml

<static> void setInnerHtml(<object> oArg)

showBusy

<static> void showBusy(<object> oArg)

translateUrl

<static> string translateUrl(<object> oArg)

Zapatec Utils

Documentation generated by JSDoc on Thu Aug 16 12:18:39 2007