Hi all,

I hope I can explain this well enough...

I am playing with editing VTML files, and I have a perplexing problem. I am
trying to create one for our CFX_PWIMAGEPROC. This tag has true/false
attributes that do not require values, ie if TEXT_BOLD is present, any text
the tag draws is bold. If it's not there, the text drawn is not bold.

It's ok in the drop downs within Studio, but I'm trying to make an "edit
tag" dialog. If I use a checkbox and no value is selected, the attribute is
not included. If the checkbox is checked, TEXT_BOLD="true" is included in
the output. That's OK, because the tag will ignore the ="true" part and make
any text bold. If the checkbox is set to true and then changed to be false,
rather than removing the attribute completely, it sets it to
TEXT_BOLD="false". This won't work because the tag is ignoring the value of
the attribute and applying the effect if the attribute is present, which is
obviously not going to give the correct results.

Radio buttons are no good because you can't deslect the value once it is
selected. Multi-select listboxes won't work. I'm tearing my hair out!

I guess someone is going to say "don't write tags like that", hey.

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

Reply via email to