On Tue, 22 May 2001 08:05:03 -0500, "Bryan LaPlante"
<[EMAIL PROTECTED]> wrote:
>Ok I got it. I did this like 4 times with bad results so be careful how you
>type it in. This is the line from one of my tags that tag editors that I
got
>to work like you want. It thinks checked it true and not checked is false
>but don't forget the single quotes or it will through an error.
>
><WIZIF edtThrowOnError EQ
>'true'>$$SpacingGap$${DefaultCase('ThrowOnError')}=$${Q}$$edtThrowOnError$$
{
>Q}<WIZSET SpacingGap = VertSpacingGap></WIZIF>
>
>How does everyone else feel about this behavior, I can update the custom
tag
>wizard to use this output instead of the current behavior that shows check
>box attributes whether they are checked or not.
>Your input would be appreciated.
>
>Bryan
Thanks Bryan, I'll have to try it out tomorrow when I get to work.
I haven't seen many tags that use the behaviour I am talking about, in fact
we are taling about making it ="true" or ="false" in the next version. I
don't know if there would be much use for that kind of behaviour in the
custom tag wizard, personally. Anyone else? It could result in cleaner, more
efficient code, I guess.
By the way I love the custom tag wizard, I used it to generate the first
version of the file, then tweaked the results by hand. Thanks!
K.
>
>----- Original Message -----
>From: "Kay Smoljak" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Tuesday, May 22, 2001 7:12 AM
>Subject: Re: VTML "edit tag" dialogs: attributes with no value?
>
>
>> On Tue, 22 May 2001 02:35:20 -0500, "Bryan LaPlante"
>> <[EMAIL PROTECTED]> wrote:
>>
>> >Use the free custom tag wizard at
>http://www.netwebapps.com/mytags/main.cfm
>> >.. On the last screen you get a chance to choose the type of control you
>> want
>> >associated with your input and choosing a checkbox from the drop down
>gives
>> >your vtm file that default behavior.
>> >
>> ><CF_CUSTOMTAGWIZARD TAGNAME="sample"
>> > [EMAIL PROTECTED]
>> > EMAILMESSAGE="thanks for useing our tag wiz"
>> > SENDASHTML="false">
>> > The sendashtml is a checkbox and if left unchecked it outputs with the
>> >value of false or true if checked.
>>
>> OK, that's my problem... the tag takes parameters like this:
>>
>> <cfx_pwimageproc text_draw="testing text" text_bold>
>> -- would create text in bold
>>
>> <cfx_pwimageproc text_draw="testing text">
>> -- would create text NOT bolded
>>
>> if the attribute was written as TEXT_BOLD="true" or TEXT_BOLD="false" it
>> would still turn out bolded, because when the tag runs it is checking for
>> the existence of the attribute. If the attribute TEXT_BOLD is not
included
>> the effect will not be applied. If the attribute TEXT_BOLD is included,
>the
>> effect will be applied. It doesn't matter what the value of the attribute
>> is. It could be TEXT_BOLD="who_gives_a_toss" and the text will still come
>> out bold.
>>
>> I can do this in Tag Insight by specifying the attribute as type
"flag"...
>> there doesn't seem to be an equivalent for the tag editor dialog box.
>>
>> K.
______________________________________________________
Kay Smoljak - ColdFusion Developer - PerthWeb Pty Ltd
Internet Solutions for your business!
Level 9/105 St George's Tc - Perth - Western Australia
Ph: (08) 9226 1366 Fax: (08) 9226 1375 Mobile : 0419 949 007
Visit Perth online! : www.perthweb.com.au
Tools for developers: http://developer.perthweb.com.au
-- cfx_pwimageproc: image processing tool
-- cfx_pwcardcrypt: credit card validation and encryption
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists