dojox/image/_base.js

  • Provides:

    • dojox.image._base
  • dojox.image.preload

    • type
      Function
    • parameters:
      • urls: (typeof Array)
        The list of urls to load. Can be any valid .src attribute.
    • source: [view]
        if(!cacheNode){
         cacheNode = d.create("div", {
          style:{ position:"absolute", top:"-9999px", height:"1px", overflow:"hidden" }
         }, d.body());
        }


        // place them in the hidden cachenode
        return d.map(urls, function(url){
         return d.create("img", { src: url }, cacheNode);
        });
    • summary
      Preload a list of images in the dom.
    • return_summary
      Array
      An Array of DomNodes that have been cached.
    • example
      Load two images into cache:
      
      	dojox.image.preload(["foo.png", "bar.gif"]);
    • example
      Using djConfig:
      
      	var djConfig = {
      		preloadImages:["bar.png", "baz.png", "http://example.com/icon.gif"]
      	};
  • djConfig.preloadImages

    • summary
  • dojox.image._base

    • type
      Object
    • summary
  • dojox.image

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary