Scott Lanning > Mozilla-DOM-0.23 > Mozilla::DOM::HTMLFormElement

Download:
Mozilla-DOM-0.23.tar.gz

Annotate this POD

CPAN RT

New  2
Open  5
View/Report Bugs
Source  

NAME ^

Mozilla::DOM::HTMLFormElement

Mozilla::DOM::HTMLFormElement is a wrapper around an instance of Mozilla's nsIDOMHTMLFormElement interface. This class inherits from HTMLElement.

 * The nsIDOMHTMLFormElement interface is the interface to a [X]HTML
 * form element.
 *
 * For more information on this interface please see
 * http://www.w3.org/TR/DOM-Level-2-HTML/
 *
 * @status FROZEN

CLASS METHODS ^

$iid = Mozilla::DOM::HTMLFormElement->GetIID()

Pass this to QueryInterface.

METHODS ^

$acceptcharset = $htmlformelement->GetAcceptCharset()

$htmlformelement->SetAcceptCharset($acceptcharset)

$action = $htmlformelement->GetAction()

$htmlformelement->SetAction($action)

$enctype = $htmlformelement->GetEnctype()

$htmlformelement->SetEnctype($enctype)

$method = $htmlformelement->GetMethod()

$htmlformelement->SetMethod($method)

$name = $htmlformelement->GetName()

$htmlformelement->SetName($name)

$target = $htmlformelement->GetTarget()

$htmlformelement->SetTarget($target)

$elements = $htmlformelement->GetElements()

$elements is a Mozilla::DOM::HTMLCollection.

In list context, returns a list of Mozilla::DOM::Node. (See DOM 2 HTML spec.) I'm guessing you can QueryInterface this to HTMLElement, but I leave that to you:

  $iid = Mozilla::DOM::HTMLElement->GetIID;
  $htmlelement = $node->QueryInterface($iid);

$length = $htmlformelement->GetLength()

Number of elements returned by GetElements.

$htmlformelement->Reset()

Reset inputs to their default values.

$htmlformelement->Submit()

Submits the <form>, but doesn't trigger the onSubmit event.

SEE ALSO ^

Mozilla::DOM

COPYRIGHT ^

Copyright (C) 2005-2007, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.

syntax highlighting: