The class JaxcentUploadForm extends JaxcentForm, and is meant for processing file uploading. It corresponds to FORM tags. The FORM should contain an INPUT of type FILE, and a SUBMIT button. It may contain other input tags. The value of these inputs at the time of file upload can be retrieved in "onUploadData".

The action, method, encoding type and target of the form are set by Jaxcent on page load, and do not need to be set. (If specified in the FORM tag, these will be over-written.)

Namespace: Jaxcent.Web.Html
Assembly: Jaxcent (in Jaxcent.dll) Version: 2.3.1.0 (2.3.1.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class JaxcentUploadForm : JaxcentForm
Public Class JaxcentUploadForm _
	Inherits JaxcentForm
public ref class JaxcentUploadForm : public JaxcentForm

Members

               
 All Members  Constructors   Properties   Methods   Events  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
JaxcentUploadForm(JaxcentPage, String)
Search for HTML element on page by specified ID
JaxcentUploadForm(JaxcentPage, SearchType, String)
Search for HTML element on page by specified search type and search string. If the search returns multiple objects, use the first one.
JaxcentUploadForm(JaxcentPage, SearchType, String, Int32)
Search for HTML Element on page by specified search type and search string, and search index. The search is expected to return multiple results. The search index is 0-based, and specifies the index in the multiple results. This constructor is not for use with createNew.
JaxcentUploadForm(JaxcentPage, SearchType, String, String)
Create new HTML Element on page using the specified tag. Search type must be createNew and tag must be "FORM". If text is non null, the new element is populated with that text.
JaxcentUploadForm(JaxcentPage, SearchType, array<String>[]()[][], array<String>[]()[][])
Create new HTML element on page using the specified attributes and values. Search type must be createNew. Attributes and values arrays must have the same length.
JaxcentUploadForm(JaxcentPage, SearchType, String, array<String>[]()[][], array<String>[]()[][])
Create new HTML element on page using the specified text and attributes and values. Search type must be createNew. Attributes and values arrays must have the same length.
Action
Retrieve/Set the "action" property
(Inherited from JaxcentForm.)
AddJavaScriptVerification(String, String, array<Object>[]()[][])
Add JavaScript verification code on a handler. If the event is being over-ridden, the verification code is called first. If it does not return a value of true, or if it fails, the Java event handler is not called.

This method can be used to reduct client-server trips by doing some of the verification on the client side before calling the event handler.

The arguments array can contain strings, Integers, Doubles, strings, bool, other Jaxcent HTML Elements (or "this"), or can be null. If the argument array is not null, the "verifier" must not contain the parentheses character. The characters "( )" containing any arguments are appended to the "verifier". The array specifies the list of parameters. If the argument array is null, the "verifier" is evaluated as is, as an expression. To call a function with no args, use the form addJavaScriptVerification( "click", "myCheckFunction()", null );

(Inherited from JaxcentObject.)
CheckNodeExists(RelationType)
Check if a node exists with the specified relationship. Relationship can be "next sibling", "previous sibling", "parent node", "first child", or "last child". Node can be retrieved as a generic HtmlElement.
(Inherited from JaxcentHtmlBase.)
DeleteElement()()()()
Delete element from DOM.
(Inherited from JaxcentHtmlBase.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetAttribute(String)
Retrieve the specified attribute.
(Inherited from JaxcentHtmlBase.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetJaxcentPage()()()()
Get Jaxcent page that this object is connected to.
(Inherited from JaxcentObject.)
GetProperty(String)
Get the value of a a property.
(Inherited from JaxcentObject.)
GetStyle(String)
Retrieve the specified style element.
(Inherited from JaxcentHtmlBase.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Hide()()()()
Shortcut for setStyle( "display", "none" );
(Inherited from JaxcentHtmlBase.)
ID
The ID property of HTML object
(Inherited from JaxcentObject.)
InnerText
Gets or Sets the inner text of an HTML element
(Inherited from JaxcentHtmlBase.)
InsertAfter(JaxcentHtmlBase)
Insert element just after target element. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtBeginning()()()()
Insert element at document beginning. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtBeginning(JaxcentHtmlBase)
Insert element inside target element, at beginning. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtEnd()()()()
Insert element at document end. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtEnd(JaxcentHtmlBase)
Insert element inside target element, at end. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertBefore(JaxcentHtmlBase)
Insert element just before target element. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
Length
Retrieve the "length" property
(Inherited from JaxcentForm.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Method
Retrieve/Set the "method" property
(Inherited from JaxcentForm.)
Name
Retrieve/Set the "name" property
(Inherited from JaxcentForm.)
OnBlur
Handler for "Blur" event
(Inherited from JaxcentForm.)
OnClick
Handler for "Click" event
(Inherited from JaxcentForm.)
OnDragDrop
Handler for "DragDrop" event. Drop sources must be enabled by calling SetDraggable.
(Inherited from JaxcentHtmlBase.)
OnFilesUploaded
This event can be used to receive notification of the completion of an upload operation. The "uploadParams" map contains string values for any data in the form. For file data, it will contain a filename. The "fileBytes" map contains byte[] values for any file(s) in the form. Exceptions during handling this event are displayed via JaxcentFramework.JaxcentExceptionHandler
OnFocus
Handler for "Focus" event
(Inherited from JaxcentForm.)
OnMouseDown
Handler for "MouseDown" event
(Inherited from JaxcentForm.)
OnMouseUp
Handler for "MouseUp" event
(Inherited from JaxcentForm.)
OnReset
Handler for "Reset" event
(Inherited from JaxcentForm.)
OnSubmit
Handler for "Submit" event
(Inherited from JaxcentForm.)
OnSubmitWithPageData
Handler for "Submit" event with page data
(Inherited from JaxcentForm.)
OnUploadDone
This event can be used to receive notification of upload completion. If "success" is true, this event will be followed by the OnFileUploaded event which includes the uploaded data. Exceptions during handling this event are displayed via JaxcentFramework.JaxcentExceptionHandler
OnUploadProgress
This event can be used to receive intermediate notifications of upload progress. It can be used to display feedback to the user. It indicates "bytesReceived" out of "totalBytes" bytes have been received. "totalBytes" includes length of any files, plus header bytes. Exceptions during handling this event are displayed via JaxcentFramework.JaxcentExceptionHandler
OnUploadStart
This event can be used to receive notifications when user has started a file upload a JaxcentUploadForm. Exceptions during handling this event are displayed via JaxcentFramework.JaxcentExceptionHandler
Reset()()()()
Reset the form.
(Inherited from JaxcentForm.)
ScrollIntoView(Boolean)
Bring the element into view, by scrolling if necessary. If top is true, the top of element is brought into view, otherwise the bottom of the element is scrolled into view.
(Inherited from JaxcentForm.)
SetAttribute(String, String)
Set the specified attribute.
(Inherited from JaxcentHtmlBase.)
SetCssClass(String)
Sets the CSS class of an element.
(Inherited from JaxcentHtmlBase.)
SetDraggable(Boolean)
Call with true argument to enable element as a drag-and-drop source. Call with false to disable dragging. The target element must have "onDragDrop" overridden.
(Inherited from JaxcentHtmlBase.)
SetEnabled(Boolean)
Shortcut for setProperty( "disabled", ! enabled );
(Inherited from JaxcentHtmlBase.)
SetProperty(String, Boolean)
Set a property to the specified bool value.
(Inherited from JaxcentObject.)
SetProperty(String, Color)
Set a property to the specified System.Drawing.Color value.
(Inherited from JaxcentObject.)
SetProperty(String, Int32)
Set a property to the specified int value.
(Inherited from JaxcentObject.)
SetProperty(String, String)
Set a property to the specified value.
(Inherited from JaxcentObject.)
SetStyle(String, Boolean)
Set the specified bool style element.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, Color)
Set the specified style element from a java.awt.Color value.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, Int32)
Set the specified style element from an int.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, String)
Set the specified style element.
(Inherited from JaxcentHtmlBase.)
SetVisible(Boolean)
Shortcut for setStyle( "visibility", "visible" or "hidden" );
(Inherited from JaxcentHtmlBase.)
Show()()()()
Shortcut for setStyle( "display", "inline" ); except for P, DIV, FORM, BODY, OL, UL, HR, TABLE etc where it is a shortcut for setStyle( "display", "block" );
(Inherited from JaxcentHtmlBase.)
Submit()()()()
Submit the form.
(Inherited from JaxcentForm.)
Tag
Returns the tag of the HTML element. For instance "P" for para, "IMG" for images, "TABLE" for tables, "TD" for table cells, etc.
(Inherited from JaxcentHtmlBase.)
Target
Retrieve/Set the "target" property
(Inherited from JaxcentForm.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)

Inheritance Hierarchy

System..::..Object
  Jaxcent.Web..::..JaxcentObject
    Jaxcent.Web.Html..::..JaxcentHtmlBase
      Jaxcent.Web.Html..::..JaxcentForm
        Jaxcent.Web.Html..::..JaxcentUploadForm

See Also