Login Register Help
API Documentation
Choose a stylesheet:

Constructordojox.form.FileInput

dojo.require("dojox.form.FileInput");
defined in dojox/form/FileInput.js

A input type=”file” form widget, with a button for uploading to be styled via css, a cancel button to clear selection, and FormWidget mixin to provide standard dijit.form.Form support (FIXME: maybe not fully implemented)

Usage

var foo=new dojox.form.FileInput();

Jump to PropertiesJump to FunctionsNamespacesBack to top

Jump to PropertiesJump to NamespacesFunctionsBack to top

Functionattr(name: String|Object, value: Object?)
Defined by dijit._Widget
Set or get properties on a widget instance.
Construct the UI for this widget from a template, setting this.domNode.
Functioncompare(val1: anything, val2: anything)
Compare 2 values (as returned by attr('value') for this widget).
Functionconnect(obj: Object|null, event: String|Function, method: String|Function)
Defined by dijit._Widget
Connects specified obj/event to specified method of this object and registers for disconnect() on widget destroy.
Functioncreate(params: Object?, srcNodeRef: DomNode|String?)
Kick off the life-cycle of a widget
Functiondestroy(preserveDom: Boolean)
Destroy this widget, but not its descendants. Will, however, destroy internal widgets such as those used within a template.
Defined by dijit._Widget
Recursively destroy the children of this widget and their descendants.
FunctiondestroyRecursive(preserveDom: Boolean?)
Defined by dijit._Widget
Destroy this widget and it's descendants. This is the generic "destructor" function that all widget users should call to cleanly discard with a widget. Once a widget is destroyed, it's removed from the manager object.
FunctiondestroyRendering(preserveDom: Boolean?)
Defined by dijit._Widget
Destroys the DOM nodes associated with this widget
Functiondisconnect(handles: Object)
Defined by dijit._Widget
Disconnects handle created by this.connect. Also removes handle from this widget's list of connects
Put focus on this widget
Defined by dijit._Widget
Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. Does not return nested widgets, nor widgets that are part of this widget's template.
Defined by dijit._Widget
Returns all the widgets that contained by this, i.e., all widgets underneath this.containerNode. This method should generally be avoided as it returns widgets declared in templates, which are supposed to be internal/hidden, but it's left here for back-compat reasons.
Deprecated. Use attr('value') instead.
Tells if this widget is focusable or not. Used internally by dijit.
Defined by dijit._Widget
Checks the page for text direction
Defined by dijit._Widget
Called when the widget stops being "active" because focus moved to something outside of it, or the user clicked somewhere outside of it, or the widget was hidden.
FunctiononChange(newValue)
Callback when this widget's value is changed.
FunctiononClick(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of mouse click events.
Defined by dijit._Widget
Callback if someone tries to close the child, child will be closed if func returns true
FunctiononDblClick(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of mouse double click events.
Defined by dijit._Widget
Called when the widget becomes "active" because it or a widget inside of it either has focus, or has recently been clicked.
FunctiononKeyDown(event: key)
Defined by dijit._Widget
Connect to this function to receive notifications of keys being pressed down.
FunctiononKeyPress(event: key)
Defined by dijit._Widget
Connect to this function to receive notifications of printable keys being typed.
FunctiononKeyUp(event: key)
Defined by dijit._Widget
Connect to this function to receive notifications of keys being released.
FunctiononMouseDown(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse button is pressed down.
FunctiononMouseEnter(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves onto this widget.
FunctiononMouseLeave(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves off of this widget.
FunctiononMouseMove(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget.
FunctiononMouseOut(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget.
FunctiononMouseOver(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget.
FunctiononMouseUp(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse button is released.
FunctionplaceAt(reference: String|DomNode|_Widget, position: String|Integer?)
Defined by dijit._Widget
Place this widget's domNode reference somewhere in the DOM based on standard dojo.place conventions, or passing a Widget reference that contains and addChild member.
Defined by dijit._Widget
Called after a widget's dom has been setup
Called after the parameters to the widget have been read-in, but before the widget template is instantiated. Especially useful to set properties that are referenced in the widget template.
Functionreset(e: Event)
on click of cancel button, since we can't clear the input because of security reasons, we destroy it, and add a new one in it's place.
FunctionsetAttribute(attr: String, value: anything)
Defined by dijit._Widget
Deprecated. Use attr() instead.
FunctionsetDisabled(disabled: Boolean)
Deprecated. Use attr('disabled', ...) instead.
FunctionsetLabel(label: String, cssClass: String?)
method to allow use to change button label
Deprecated. Use attr('value', ...) instead.
Overrides dijit._Widget
listen for changes on our real file input
Defined by dijit._Widget
Returns a string that represents the widget. When a widget is cast to a string, this method will be used to generate the output. Currently, it does not implement any sort of reversable serialization.
Defined by dijit._Widget
Stub function. Override to implement custom widget tear-down behavior.
Defined by dijit._Widget
Step during widget creation to copy all widget attributes to the DOM as per attributeMap and _setXXXAttr functions.
Function_attachTemplateNodes(rootNode: DomNode|Array[Widgets], getAttrFunc: Function?)
Defined by dijit._Templated
Iterate through the template and attach functions and nodes accordingly.
Function_attrToDom(attr: String, value: String)
Defined by dijit._Widget
Reflect a widget attribute (title, tabIndex, duration etc.) to the widget DOM, as specified in attributeMap.
Defined by dijit._Templated
Relocate source contents to templated container node. this.containerNode must be able to receive children, or exceptions will be thrown.
Defined by dijit._Widget
Helper function for Widget.attr(). Caches attribute name values so we don't do the string ops every time.
Function_handleOnChange(newValue: anything, priorityChange: Boolean?)
Called when the value of the widget is set. Calls onChange() if appropriate
Work around table sizing bugs on FF2 by forcing redraw
set the content of the upper input based on the semi-hidden file input
Defined by dijit._Widget
This is where widgets do processing for when they stop being active, such as changing CSS classes. See onBlur() for more details.
Defined by dijit._Widget
Called when someone connects to one of my handlers. "Turn on" that handler if it isn't active yet. This is also called for every single initialization parameter so need to do nothing for parameters like "id".
This is where widgets do processing for when they are active, such as changing CSS classes. See onFocus() for more details.
Function_onMouse(event: Event)
Sets _hovering, _active, and stateModifier properties depending on mouse state, then calls setStateClass() to set appropriate CSS classes for this.domNode. To get a different CSS class for hover, send onmouseover and onmouseout events to this method. To get a different CSS class while mouse button is depressed, send onmousedown to this method.
Defined by dijit._Widget
Custom setter for the CSS "class" attribute
Update the visual state of the widget by setting the css classes on this.domNode (or this.stateNode if defined) by combining this.baseClass with various suffixes that represent the current widget state(s).
Defined by dijit._Widget
Sets the style attribut of the widget according to value, which is either a hash like {height: "5px", width: "3px"} or a plain string
Defined by dijit._Templated
Does substitution of ${foo} type properties in template string

Jump to FunctionsJump to NamespacesPropertiesBack to top

Corresponds to the native HTML <input> element's attribute.
Root CSS class of the widget (ex: dijitTextBox), used to add CSS classes of widget (ex: "dijitTextBox dijitTextBoxInvalid dijitTextBoxFocused dijitTextBoxInvalidFocused") See _setStateClass().
the title of the "Cancel" button
Defined by dijit._Widget
HTML class attribute
Defined by dijit._Widget
True if user can close (destroy) this child, such as (for example) clicking the X on the tab. true if user can close this tab pane
Defined by dijit._Widget
Column of the grid to place the widget.
Designates where children of the source dom node will be placed. "Children" in this case refers to both dom nodes and widgets. For example, for myWidget: <div dojoType=myWidget> <b> here's a plain dom node <span dojoType=subWidget>and a widget</span> <i> and another plain dom node </i> </div> containerNode would point to: <b> here's a plain dom node <span dojoType=subWidget>and a widget</span> <i> and another plain dom node </i> In templated widgets, "containerNode" is set via a dojoAttachPoint assignment. containerNode must be defined for any widget that accepts innerHTML (like ContentPane or BorderContainer or even Button), and conversely is null for widgets that don't, like TextBox.
Defined by dijit._Widget
Unsupported by Dijit, but here for completeness. Dijit only supports setting text direction on the entire document. Bi-directional support, as defined by the [HTML DIR](http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir) attribute. Either left-to-right "ltr" or right-to-left "rtl".
Should this widget respond to user input? In markup, this is specified as "disabled='disabled'", or just "disabled".
This is our visible representation of the widget! Other DOM Nodes may by assigned to other properties, usually through the template system's dojoAttachPoint syntax, but the domNode property is the canonical "top level" node in widget UI.
Defined by dijit._Widget
To remove the drag capability.
Defined by dijit._Widget
Defines a group belonging.
Defined by dijit._Widget
A unique, opaque ID string that can be assigned by users or by the system. If the developer passes an ID which is known not to be unique, the specified ID is ignored and the system-generated ID is used instead.
Fires onChange for each value change or only on demand
the title text of the "Browse" button
Defined by dijit._Widget
Rarely used. Overrides the default Dojo locale used to render this widget, as defined by the [HTML LANG](http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang) attribute. Value must be among the list of locales specified during by the Dojo bootstrap, formatted according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt) (like en-us).
Defined by dijit._Widget
"none", "left", "right", "bottom", "top", and "client". See the LayoutContainer description for details on this parameter.
Defined by dijit._Widget
Specifies a minimum size for this widget when resized by a splitter
ugh, this should be pulled from this.domNode
Defined by dijit._Widget
List of nodes that correctly handle click events via native browser support, and don't need dijit's help
Should this widget respond to user input? In markup, this is specified as "readOnly". Similar to disabled except readOnly form values are submitted.
Defined by dijit._Widget
"top", "bottom", "leading", "trailing", "left", "right", "center". See the BorderContainer description for details on this parameter.
On focus, should this widget scroll into view?
Defined by dijit._Widget
Is this child currently selected?
Defined by dijit._Widget
Minimum size (width or height) of a child of a SplitContainer. The value is relative to other children's sizeShare properties.
Defined by dijit._Widget
Size (width or height) of a child of a SplitContainer. The value is relative to other children's sizeShare properties. For example, if there are two children and each has sizeShare=10, then each takes up 50% of the available space.
Defined by dijit._Widget
A parameter needed by RadioGroupSlide only. An optional paramter to force the ContentPane to slide in from a set direction. Defaults to "random", or specify one of "top", "left", "right", "bottom" to slideFrom top, left, right, or bottom.
Defined by dijit._Widget
If true, puts a draggable splitter on this widget to resize when used inside a border container edge region.
Defined by dijit._Widget
pointer to original dom node
Defined by dijit._Widget
HTML style attributes as cssText string or name/value hash
Order fields are traversed when user hits the tab key
Overrides dijit._Templated
Path to template (HTML file) for this widget relative to dojo.baseUrl
Defined by dijit._Templated
A string that represents the widget template. Pre-empts the templatePath. In builds that have their strings "interned", the templatePath is converted to an inline templateString, thereby preventing a synchronous network call.
Defined by dijit._Widget
Title of this widget. Used by TabContainer to the name the tab, etc. TODO: remove this, it's in _Widget already.
Defined by dijit._Widget
a css size value (e.g. "100px")
Corresponds to the native HTML <input> element's attribute.
Corresponds to the native HTML <input> element's attribute.
Defined by dijit._Templated
Should we parse the template to find widgets that might be declared in markup inside it? False by default.
Defined by dijit._Widget
Used by <img> nodes in templates that really get there image via CSS background-image
Indicates that changes to the value should call onChange() callback. This is false during widget initialization, to avoid calling onChange() when the initial value is set.