The Script Approach to Active Client Pages: Chrys`s Enhancement - Script Approach Without Frameset
(Page 2 of 4 )
Imagine that your session on the net is short. Consider a case where the user has to fill out a form and there is a lot of interaction with the form. You design your web page to have the form with some script in the HEAD element.
There is no frameset here. You have external script tags at the bottom of the page. As soon as the form is displayed, downloading the scripts in the tags will begin. These downloaded scripts have more information for the interaction. Before the user starts serious interaction with the form, the scripts would have been downloaded. So the script approach can also be used without a frameset.
Rendering web pages as they arrive
With the script approach to active client pages, when you are not using a frameset, the first web page should be rendered as it arrives at the browser. If you design your web page according to the normal CSS flow, it should be rendered by the browser as it arrives, everything being equal.
The main problem occurs with HTML tables. If you want a table to be rendered as it arrives, declare column properties (e.g. widths) at the start of a table definition. Avoid the particular use of "0*" to specify column width. If you do not specify the column widths, the table may not be rendered incrementally, as it arrives.
The secret lies in giving the table column widths, values at the beginning of the table definition. The widths can be in pixels, percentage or proportionally, e.g. width="3*".
Next: The innerHTML Property >>
More JavaScript Articles
More By Chrysanthus Forcha