Using Tagdataunknownattributes - MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual

Table of Contents

Advertisement

Building Tag Editors
Using OPTIONLinearLayout
Here is a version of the mytag layout template that responds to user preferences for
single line or indented layout:
<taglayout>
<WIZIF OPTIONLinearLayout EQ 'true'>
<WIZSET Spacer = ' '>
<WIZELSE>
<WIZSET Spacer =
</WIZIF>
<mytag color="$${clrBGColor}"$${Spacer}face="$${fontFace}
"$${Spacer}size="$${txtSize}">
</taglayout>
The template would generate a tag based on the following user layout preference:
LINEAR:
<mytag color="White" face="Arial" SIZE="10">
NONLINEAR:
<mytag color="White"
face="Arial"
size="10">

Using TAGDATAUnknownAttributes

The
TagDataUnknownAttributes
in the original tag string but are not supported by the editor. For example, you can
write an editor for the HTML tag
attributes, however, the editor will not cover JavaScript event attributes such as,
onCLick
process, the editor engine creates the TagDataUnknownAttributes variable
containing a list of unknown attributes together with their original values. You can
use this variable to "stamp" all the unsupported attributes at the end of the tag you
are generating.
<taglayout>
<mytag color="$${colorBGColor}">
<wizif TagDataUnknownAttributes NEQ''> $$TagDataUnknownAttributes
</wizif>
</taglayout>
If you edit a tag
preserves the
Chr(13) & Chr(10) & ' '>
). To prevent loss of what are in effect unknown attributes during the editing
<mytag color="Blue" onClick="CallThis">
attribute even though it is not supported in the editor.
onClick
tag contains the list of attributes that are contained
. that provides editing capabilities for all basic
input
179
, the above template

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion studio 5

Table of Contents