Blindation Systems Inc.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Blindation Systems Inc.

Blindation Systems Inc. is a company which is opened on computing and world culture
 
HomeHome  PortalPortal  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  
Le deal à ne pas rater :
Cartes Pokémon 151 : où trouver le coffret Collection Alakazam-ex ?
Voir le deal

 

 HTML lesson 14

Go down 
AuthorMessage
Blind Dragon
Perl encoder
Perl encoder
Blind Dragon


Female
Number of posts : 341
Age : 32
Localisation : Here, as usual
Emploi : Admin.
Registration date : 2007-05-13

HTML lesson 14 Empty
PostSubject: HTML lesson 14   HTML lesson 14 Icon_minitimeThu Jun 28, 2007 5:09 am

The form is described between the buoys <FORM> and </FORM>.

The buoy <FORM> is gonna be completed at least by the two following attributes :
-METHOD, taking the value POST or the value GET, defines the transfer mode of the data towards the CGI
script
-ACTION which defines the URL of a program (script) responsible to treat the data acquired since the form.
The properties of the object FORM are :
-action - URL CGI or pseudo-protocol associated to the form
-method - GET or POST (transfer of the data to the CGI)
-target - destination window
-enctype - encoding Mime of the data
-elements - access to the form components
The method of the object FORM is submit() which starts the submission (calls the CGI with the collected data).
The event of the object FORM is onSubmit which appears at the moment of the submission of the form.
The buoy <INPUT> defines fields to enter a text and buttons allowing to choose options.
The attribute TYPE, associated to the buoy INPUT allows the choice of the entry element.
The type TEXT allows to collect alpha-numeric text :
-name - name attributed to the buoy
-type - equal to the kinda buoy (text in that case)
-value - value typed or coded in the HTML
-defaultValue - value attributed by default in the HTML code
Methods of the object TEXT :
-focus() - brings the cursor in the field
-blur() - forces the cursor outta field
-select() - selects the content of the field
The events of the object TEXT are :
-onChange - appears at the editing of the typing field
-onFocus - appears to the focus taking
-onBlur - appears to the losing of the focus
-onSelect - appears when we select all or a part of the field
The type SUBMIT starts the sending of the form towards the script.
Properties of the object SUBMIT :
-name, type, value - same as the object TEXT
The method of the object SUBMIT is submit() which starts the submission.
The event of the object SUBMIT is onClick which appears when we click on the button.
The type RESET allows to erase data already entered.
Properties of the object RESET :
-name, type, value as the object TEXT.
The method of the object RESET is click(), as the click than cou'd make the user (program click)
The event of the object RESET is onClick which appears when we click on the button.
The type PASSWORD allows to type a password of kinda confidential.
Its properties, methods and events are the same as the object TEXT.
The type CHECKBOX allows to do a block of buttons allowing a multiple choice of options (logic function and)
The type RADIO allows to do a block of buttons allowing an exclusive choice among several options (logic function or exclusive).
Properties of the objects CHECKBOX and RADIO :
-name, type and value same as the object TEXT
-checked - returns true if the box is checked off.
-defaultChecked - returns true if it's the box checked off by default
-index (radio only) - index of the button checked off
-length (radio only) - number of radio buttons associated
The method of the objects CHECKBOX and RADIO is click(), same as the click than cou'd make the user (program click)
The events of the objects CHECKBOX and RADIO is onClick which appears when we click on the button.
The type HIDDEN is to pass data acquired in a form to another form without nufin appears on the screen.
Properties of the object HIDDEN :
-name, type, value - same as the object TEXT.
The buoy <SELECT> allows to generate lists with simple choice (or exclusive) or multiple choice (and). It's
programmed as a list, where each item is specified by the buoy <OPTION>. The appearance of the list depends of the presence of the attribute SIZE. If the value given to the attribute SIZE is inferior to 2 or if there's not the attribute SIZE, the list is interpreted as a pop-list. In the contrary case, it's shown in a window with scrollbar. The value given to SIZE gives the number of lines shown in the window. The option multiple choice results of the presence of the attribute MULTIPLE.
Properties of the object SELECT :
-name, type - same as the object TEXT
-selectedIndex - index of the first or only option selected
Method of the object SELECT :
-blur, focus - same as the object TEXT
Events of the object TEXT :
-onChange, onFocus, onBlur - same as the object TEXT
Properties of the object OPTION :
-defaultSelected - has the value true id it's the option by default
-selected - has the value true if the option is selected
-text - text associated to the option
-value - value associated to the option.
The buoy <TEXTAREA> allows to create a window with scrollbars horizontals and verticals in the one we're
gonna can type text. The value given to the attributes ROWS (lines) and COLS (columns) delimits the size of this window.
The properties, methods and options of the object TEXTAREA are those of the object TEXT.
REMEMBERS :
The script must know the element of the form which the one provides a data. The attribute NAME allows to affect
an identificator to each element of the form.
The attribute VALUE allows :
-to specify a text to write on the buttons reset and submit (visual information)
-to prefull a field textarea (visual information)
-to attribute a value to the option for the buttons radio and checkbox (information for the script).
Back to top Go down
https://blindsysinc.1fr1.net
 
HTML lesson 14
Back to top 
Page 1 of 1
 Similar topics
-
» HTML lesson 3
» HTML lesson 4
» HTML lesson 5
» HTML lesson 6
» HTML lesson 7

Permissions in this forum:You cannot reply to topics in this forum
Blindation Systems Inc. :: English-speaking people :: Webmastering classroom-
Jump to: