Re: VTML edit tag dialogs: attributes with no value?
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. Bryan - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 1:03 AM Subject: Re: VTML edit tag dialogs: attributes with no value? In CF Studio: Select the tag selector tab in the resources area. (Next to the help tab) Then select the little yellow gear with the hint Edit Tag Definition. (Half way up on the gray separation bar) Use this to edit all your VTMs, it's a breeze. Rob Rusher Flare Networks Inc. 233 Linden Street Fort Collins, CO 80524 (970) 498-9196 Office (303) 884-7044 Cell (970) 472-1775 Fax [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.flarenetworks.com -- -- This email and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is only for the use of the intended individual or entity to whom this electronically transmitted message is sent. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you receive this transmission in error, please call Flare Networks collect at 970-689-1294 and delete the message and any attachments. -- -- - Original Message - From: Kay Smoljak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 21, 2001 9:48 PM Subject: Re: VTML edit tag dialogs: attributes with no value? On Mon, 21 May 2001 08:23:08 -0400, Raymond Camden [EMAIL PROTECTED] wrote: You can do a conditional output by using WIZIF So, your VTML portion of the TAGLAYOUT portion can do this: mytag WIZIF fieldname EQ 'true'TEXT_BOLD = 1/WIZIF This way it would only show up if true, not false or not selected at all. Thanks, but is there any way of doing this in the EDITORLAYOUT? ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: VTML edit tag dialogs: attributes with no value?
Thanks, but is there any way of doing this in the EDITORLAYOUT? ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: VTML edit tag dialogs: attributes with no value?
Kay, for some reasyon my reply got deleted. Thanks, but is there any way of doing this in the EDITORLAYOUT? What exactly do you mean? Do you mean you want the tag editor to not use a checkbox? Sorry, I'm not getting what you are after. === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] ICQ UIN : 3679482 My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 8:20 AM To: CF-Talk Subject: RE: VTML edit tag dialogs: attributes with no value? Thanks, but is there any way of doing this in the EDITORLAYOUT? ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: VTML edit tag dialogs: attributes with no value?
I'm in the middle of adding a project to source safe, give me a sec and I will grab a vtm file to see if you can change something to accommodate that. Bryan - 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. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: VTML edit tag dialogs: attributes with no value?
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 - 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. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: VTML edit tag dialogs: attributes with no value?
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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: VTML edit tag dialogs: attributes with no value?
On Tue, 22 May 2001 08:24:30 -0400, Raymond Camden [EMAIL PROTECTED] wrote: Kay, for some reasyon my reply got deleted. Thanks, but is there any way of doing this in the EDITORLAYOUT? What exactly do you mean? Do you mean you want the tag editor to not use a checkbox? Sorry, I'm not getting what you are after. Sorry, I knew I'd have trouble making the actual problem clear. I have a tag that has attributes that have no values. The effect is applied depending on whether the attribute is present or not, not on it's value. I'm trying to make an edit tag dialog that will preferably output attributes with no value if the checkbox is checked, and no attribute if the checkbox is not checked. If that's not going to work, I would be happy with attribute=true if the checkbox is checked, and no attribute in the output if the checkbox is not checked. ie if the TEXT_BOLD checkbox was checked: cfx_pwimageproc TEXT_BOLD preferably, or cfx_pwimageproc TEXT_BOLD=true if the TEXT_BOLD checkbox was not checked: cfx_pwimageproc Is that a litte clearer? 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: VTML edit tag dialogs: attributes with no value?
Sorry, I knew I'd have trouble making the actual problem clear. I have a tag that has attributes that have no values. The effect is applied depending on whether the attribute is present or not, not on it's value. I'm trying to make an edit tag dialog that will preferably output attributes with no value if the checkbox is checked, and no attribute if the checkbox is not checked. If that's not going to work, I would be happy with attribute=true if the checkbox is checked, and no attribute in the output if the checkbox is not checked. ie if the TEXT_BOLD checkbox was checked: cfx_pwimageproc TEXT_BOLD preferably, or cfx_pwimageproc TEXT_BOLD=true if the TEXT_BOLD checkbox was not checked: cfx_pwimageproc Kay, I had no problems understanding that part. Did you see my first response about WIZIF? That would more than handle outputting TEXT_BOLD only if it is needed. Bryan's email was pretty much the same as well. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: VTML edit tag dialogs: attributes with no value?
On Tue, 22 May 2001 09:50:48 -0400, Raymond Camden [EMAIL PROTECTED] wrote: Kay, I had no problems understanding that part. Did you see my first response about WIZIF? That would more than handle outputting TEXT_BOLD only if it is needed. Bryan's email was pretty much the same as well. OK, I'll have to try it tomorrow at work. Thanks for your reply and sorry for my misunderstanding. After reading through the chapter in the ColdFusion Studio docs I was under the assumption that WIZIF only worked in the wizard section, not for the EDITORLAYOUT section. I'll have to try it out. Ain't time differences great... you guys are just getting to work and I'm just getting ready for sleep! 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: VTML edit tag dialogs: attributes with no value?
Kay, I had no problems understanding that part. Did you see my first response about WIZIF? That would more than handle outputting TEXT_BOLD only if it is needed. Bryan's email was pretty much the same as well. OK, I'll have to try it tomorrow at work. Thanks for your reply and sorry for my misunderstanding. After reading through the chapter in the ColdFusion Studio docs I was under the assumption that WIZIF only worked in the wizard section, not for the EDITORLAYOUT section. I'll have to try it out. Pardon my presumption, but I think you might still have a misunderstanding. You wouldn't want to put WIZIF in your EDITORLAYOUT section in order to do what you're trying to do. You'd put it your TAGLAYOUT section, using conditional logic based on the values of the fields displayed in the EDITORLAYOUT section. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: VTML edit tag dialogs: attributes with no value?
You can do a conditional output by using WIZIF So, your VTML portion of the TAGLAYOUT portion can do this: mytag WIZIF fieldname EQ 'true'TEXT_BOLD = 1/WIZIF This way it would only show up if true, not false or not selected at all. === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] ICQ UIN : 3679482 My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Kay Smoljak [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 2:25 AM To: CF-Talk Subject: VTML edit tag dialogs: attributes with no value? 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. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: VTML edit tag dialogs: attributes with no value?
On Mon, 21 May 2001 08:23:08 -0400, Raymond Camden [EMAIL PROTECTED] wrote: You can do a conditional output by using WIZIF So, your VTML portion of the TAGLAYOUT portion can do this: mytag WIZIF fieldname EQ 'true'TEXT_BOLD = 1/WIZIF This way it would only show up if true, not false or not selected at all. Thanks, but is there any way of doing this in the EDITORLAYOUT? __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: VTML edit tag dialogs: attributes with no value?
In CF Studio: Select the tag selector tab in the resources area. (Next to the help tab) Then select the little yellow gear with the hint Edit Tag Definition. (Half way up on the gray separation bar) Use this to edit all your VTMs, it's a breeze. Rob Rusher Flare Networks Inc. 233 Linden Street Fort Collins, CO 80524 (970) 498-9196 Office (303) 884-7044 Cell (970) 472-1775 Fax [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.flarenetworks.com This email and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is only for the use of the intended individual or entity to whom this electronically transmitted message is sent. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you receive this transmission in error, please call Flare Networks collect at 970-689-1294 and delete the message and any attachments. - Original Message - From: Kay Smoljak [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, May 21, 2001 9:48 PM Subject: Re: VTML edit tag dialogs: attributes with no value? On Mon, 21 May 2001 08:23:08 -0400, Raymond Camden [EMAIL PROTECTED] wrote: You can do a conditional output by using WIZIF So, your VTML portion of the TAGLAYOUT portion can do this: mytag WIZIF fieldname EQ 'true'TEXT_BOLD = 1/WIZIF This way it would only show up if true, not false or not selected at all. Thanks, but is there any way of doing this in the EDITORLAYOUT? ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists