Web site management - CD-133Appendix F . Examples from Parts III and

CD-133Appendix F . Examples from Parts III and IV

U.S. Bill of Rights

Another button on the page enables you to switch between the initial piecemeal version of the document and the unformatted version in its entirety. To load the entire document as a single record, the FieldDelim and RowDelimparameters of the second OBJECT element eliminate their default values by replacing them with characters that don t appear in the document at all. And because the external file does not have a field name in the file, the default value (column1 for the lone column in this document) is the data field. Thus, in the toggleComplete()function, the dataSrc property is changed to the desired OBJECT element ID, the dataFld property is set to the correct value for the data source, and the dataFormatAs property is changed to reflect the different intention of the source content (to be rendered as HTML or as plain text). When the display shows the entire document, you can hide the two radio buttons by assigning a classNamevalue to the SPAN element that surrounds the buttons. The className value is the identifier of the class selector in the document s style sheet. When the toggleComplete() function resets the classNameproperty to empty, the default properties (normal inline display style) take hold. One further example demonstrates the kind of power available to the TDC under script control. Listing 15-9 displays table data from a tab-delimited file of Academy elementObject.dataFld
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

Leave a Reply