Home

Faq

Download

production.gif (1614 bytes)

Support

Feedback

Cool

 

 

Very important notice:

95% of html page is static information which never will be changed. Only 5% is dynamic data so we need the way to mark those places in our html page as a place where we can put our information. Apparently one of such places is input fields such as input boxes, radio buttons. That's why parser will create an objects for all of them. Also we must be able to have read only information on html page which comes from database. Because of it parser will understand construction <input type="static" ...>. Of course we always can use substitutor for that but it's not always good approach because it's not object oriented approach. Also sometimes we have dynamic tables on  html page. With dynamic tables we do not know up front how many rows do we have or sometimes even do not know anything about tables. So parser will create an object HtmlTable for constructions <Table ...>.

Such objects we call "control" and all of them resides in controls collection. You can retrieve control by name. Because of it all controls must have "name" property in template. Example: <input type="text" name="Age">. Without name it's not valid control.

Here is all constructions which can be interpreted by html parser.

  1. <input type="text" name="Text" ....> - input box

  2. <input type="radio" name="Radio" ....> - radio button.

  3. <input type="checkbox"  ....> - checkbox

  4. <input type="static" name="Static" ..........> - read only field.

  5. <select name="Select" ....> ............</select> - dropdown

  6. <textarea name="Area" ....> ..........</textarea> - text area

  7. <input type="blinking" name="Blinking" .....>   - automatic control. See more information in help.

  8. <Table name="table" .....> ...........</Table> - dynamic table.

  9. <!--include "file" --> - server side include. "file" is a file name in file system. Example: <!--include "c:\a.txt" -->.It's not a control.

Please not that it's important to not have space between < and input ( or Table, select) also it's impotant to have it with small letters (except Table). It's gives you way to exclude some of them from controls collection.

Example:

  1. < input type="text" ..> - not control, have space between < and input

  2. <inPut type="text" ..> - not control. P is capital.

  3. <input          TYPE="text" ...> - Is control. We can have spaces and any cases to describe properties

  4. <table ...> is not control. only <Table ...> is control.

Also all properties must be set with double quotes or single. Example: <input type="text" ...> - valid. <input type=text ..> not valid. These rules are compatible with FrontPage ( FrontPage generates exactly the same html text ) except Table. It's done just because you probably have 10 tables on your html page and only one of them is dynamic tables. So you will need to change it manually to <Table ..>.

 

WB00774_.gif (1029 bytes)

Previous           Next