Click to return to the DHTML, HTML     
dataFld Property     DATAPAGESIZE Attribute | ...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

DATAFORMATAS Attribute | dataFormatAs Property


Sets or retrieves how to render the data supplied to the object.

Syntax

HTML<ELEMENT DATAFORMATAS = sFormat ... >
Scriptingobject.dataFormatAs [ = sFormat ]

Possible Values

sFormat String that specifies one of the following values:
textData is rendered as text.
htmlData is rendered as HTML.

The property is read/write with a default value of text.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Example

This DIV example renders data in HTML format.

Sample Code

<DIV DATAFLD="Column2" DATAFORMATAS="html"></DIV>

This SPAN example renders data in HTML format.

<SPAN DATASRC="#bank_acct" DATAFLD="balance" DATAFORMATAS="html"></SPAN>

This TEXTAREA example renders data in text format.

<TEXTAREA DATASRC="#customer" DATAFLD="address" DATAFORMATAS="text" 
    ROWS=6 COLS=60>
</TEXTAREA>

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
BODY, BUTTON, DIV, INPUT type=button, LABEL, MARQUEE, PARAM, SPAN

See Also

Data Binding



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.