if(!dojo._hasResource["dojox.widget.FileInputAuto"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.widget.FileInputAuto"] = true; dojo.provide("dojox.widget.FileInputAuto"); dojo.require("dojox.widget.FileInput"); dojo.require("dojo.io.iframe"); dojo.declare("dojox.widget.FileInputAuto", dojox.widget.FileInput, { // summary: An extension on dojox.widget.FileInput providing background upload progress // // description: An extended version of FileInput - when the user focuses away from the input // the selected file is posted via dojo.io.iframe to the url. example implementation // comes with PHP solution for handling upload, and returning required data. // // notes: the return data from the io.iframe is used to populate the input element with // data regarding the results. it will be a JSON object, like: // // results = { size: "1024", filename: "file.txt" } // // all the parameters allowed to dojox.widget.FileInput apply // url: String // the URL where our background FileUpload will be sent url: "", // blurDelay: Integer // time in ms before an un-focused widget will wait before uploading the file to the url="" specified // default: 2 seconds blurDelay: 2000, // duration: Integer // The time in ms to use as the generic timing mechanism for the animations // set to 1 or 0 for "immediate respose" duration: 500, // uploadMessage: String // // FIXME: i18n somehow? uploadMessage: "Uploading ...", _sent: false, // small template changes, new attachpoint: overlay templateString:"