Re: CFset problem

2007-01-31 Thread Melissa Weber
Thanks everyone for your help.  I add the val() and it worked perfectly.  Now 
on to my next big coding project.  Thanks again and I'm sure that I'll be 
asking more questions as the time comes.

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268257
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFset problem

2007-01-31 Thread Patrick Farabee
Your select statement will always return 1 row, and it will either contain the 
max number, or ""

So, use:


  Select Max(ReqNum) as HighestNumber
  from PrintingReq



No need for a cfif, since val("") returns 0

--
Pat

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268232
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFset problem

2007-01-30 Thread Eric Roberts
You probably have a null value coming through...put in an or statement ...or
qryHighestNum.highestNumber is ""... So that if it is a null value or no
value...it is set to 1

If you want to see where your problem is do a cfdump ()  that will display your query results.
Eric 

-Original Message-
From: Melissa Weber [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 30 January 2007 14:30
To: CF-Talk
Subject: CFset problem

I've very new to ColdFusion and need some help.  I've written a page that
has six fields:  office, year, number, title, contact and phone number.  The
first two are hidden fields have a value attached to them and the third
changes.  The user enters the title, contact and phone number and then the
data is entered into a database.  The two hidden fields are populated with
no problems. For the third field, number, a query is ran to find the highest
number in that field and then add one to it to get the next number.  When an
initial record is in the database everything works perfect however, when the
table is empty I get an error message.

It says that it cannot convert " " to a number.  I even put a cfset
statement in there to set the field to 1 but it isn't working.  Any ideas?

Below is the query to find the highest number and the cfif statement to
handle the number.  

Select Max(ReqNum) as HighestNumber
from PrintingReq










~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268169
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFset problem

2007-01-30 Thread Scott Weikert
Melissa Weber wrote:
> 
>   
>   
>   
> 
>
>   
It's because the query HAS a recordcount every time, I think - and it's 
returning " " as the result.

So instead of



try
 or .

Also you don't need the pound signs in





~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268113
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFset problem

2007-01-30 Thread Charlie Griefer
wrap qryHighestNum.highestNumber in a val()

in the event that the argument is an empty string, val() will it as a zero.

so:



On 1/30/07, Melissa Weber <[EMAIL PROTECTED]> wrote:
> I've very new to ColdFusion and need some help.  I've written a page that has 
> six fields:  office, year, number, title, contact and phone number.  The 
> first two are hidden fields have a value attached to them and the third 
> changes.  The user enters the title, contact and phone number and then the 
> data is entered into a database.  The two hidden fields are populated with no 
> problems. For the third field, number, a query is ran to find the highest 
> number in that field and then add one to it to get the next number.  When an 
> initial record is in the database everything works perfect however, when the 
> table is empty I get an error message.
>
> It says that it cannot convert " " to a number.  I even put a cfset statement 
> in there to set the field to 1 but it isn't working.  Any ideas?
>
> Below is the query to find the highest number and the cfif statement to 
> handle the number.
> 
> Select Max(ReqNum) as HighestNumber
> from PrintingReq
> 
>
> 
> 
> 
> 
> 
>
> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268112
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfset hyperlink

2006-09-27 Thread Bobby Hartsfield
Use single quotes to surround the value of the variable so you can use
quotes all you want inside.

Eg: 


-Original Message-
From: Teddy Payne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 9:32 AM
To: CF-Talk
Subject: Re: cfset hyperlink

Use the force er function suite that CF can make easier for you.

http://www.site.com#chr(34)#>http://www.site.com">

Notice the chr(34), which evaluates the ascii 34 values which is your double
quote.

Teddy

On 9/26/06, James Holmes <[EMAIL PROTECTED]> wrote:
>
> The first option would end up with that as a result.
>
> http://www.site.com"";>http://www.site.com">
>
> Inside the CFSET the "" will resolve to " in the string.
>
> On 9/27/06, Sandra Clark <[EMAIL PROTECTED]> wrote:
> > If you are using a doctype of xHTML, you need to use double quotes in
> your
> > html (think of HTML in an xml format which is all xHTML really is.
>
> --
> CFAJAX docs and other useful articles:
> http://www.bifrost.com.au/blog/
>
> 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254370
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfset hyperlink

2006-09-27 Thread Teddy Payne
Use the force er function suite that CF can make easier for you.

http://www.site.com#chr(34)#>http://www.site.com">

Notice the chr(34), which evaluates the ascii 34 values which is your double
quote.

Teddy

On 9/26/06, James Holmes <[EMAIL PROTECTED]> wrote:
>
> The first option would end up with that as a result.
>
> http://www.site.com"";>http://www.site.com">
>
> Inside the CFSET the "" will resolve to " in the string.
>
> On 9/27/06, Sandra Clark <[EMAIL PROTECTED]> wrote:
> > If you are using a doctype of xHTML, you need to use double quotes in
> your
> > html (think of HTML in an xml format which is all xHTML really is.
>
> --
> CFAJAX docs and other useful articles:
> http://www.bifrost.com.au/blog/
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254363
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfset hyperlink

2006-09-26 Thread James Holmes
The first option would end up with that as a result.

http://www.site.com"";>http://www.site.com">

Inside the CFSET the "" will resolve to " in the string.

On 9/27/06, Sandra Clark <[EMAIL PROTECTED]> wrote:
> If you are using a doctype of xHTML, you need to use double quotes in your
> html (think of HTML in an xml format which is all xHTML really is.

-- 
CFAJAX docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254341
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfset hyperlink

2006-09-26 Thread Eric Roberts
Use single quotes around the variable text instead of double quotes...



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 26 September 2006 10:17
To: CF-Talk
Subject: cfset hyperlink

All,

I thought this would be simple, but it's not working.  I want to set a
varaible with a string that contains a hyperlink in it.

http://www.site.com";>http://www.site.com">

Thoughts?

D

D



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254339
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfset hyperlink

2006-09-26 Thread Peter Boughton
Look at the XmlFormat/XmlParse/ToString functions for converting from and to 
entities.

> Thanks everyone.  I used cfset as an example, but it's actualy going 
> through an admin tool.  It's being store in the database as ...
> 
> Click here to download your free couopn. http://www.site.
> com"">http://www.site.com
> 
> it's coming out on the web page as ...
> 
> Click here to download your free coupon.  <a 
> href="test">test</a>
> 
> ?
> 
> Thanks.
> 
> >Use single quotes for one of them... or escape the " quote. 
> >
> >http://www.site.com"";>http://www.site.com">
> >
> >Or
> >
> >http://www.site.com'>http://www.site.com">
> >
> >Or 
> >
> >http://www.site.com'>http://www.site.com'>
> >
> >Or 
> >
> >
> >Click here to download your free coupon.  >href="http://www.site.com";>http://www.site.com
> >
> >
> >Russ
>>

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254277
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfset hyperlink

2006-09-26 Thread Sandra Clark
If you are using a doctype of xHTML, you need to use double quotes in your
html (think of HTML in an xml format which is all xHTML really is.


Sandra Clark
==
http://www.shayna.com
Training in Cascading Style Sheets and Accessibility


-Original Message-
From: Russ [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 11:43 AM
To: CF-Talk
Subject: RE: cfset hyperlink

Actually my third was supposed to be 



But I'm not sure how it's different from all the others... What makes it
more valid then the other suggestions?

Russ


> -Original Message-
> From: Sandra Clark [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 11:26 AM
> To: CF-Talk
> Subject: RE: cfset hyperlink
> 
> Your third or fourth suggestions are the best in terms of generating 
> valid HTML
> 
> 
> Sandra Clark
> ==
> http://www.shayna.com
> Training in Cascading Style Sheets and Accessibility
> 
> 
> -Original Message-
> From: Russ [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 11:22 AM
> To: CF-Talk
> Subject: RE: cfset hyperlink
> 
> Use single quotes for one of them... or escape the " quote.
> 
> http://www.site.com"";>http://www.site.com">
> 
> Or
> 
> http://www.site.com'>http://www.site.com">
> 
> Or
> 
> http://www.site.com'>http://www.site.com'>
> 
> Or
> 
> 
> Click here to download your free coupon.  href="http://www.site.com";>http://www.site.com
> 
> 
> Russ
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 26, 2006 11:17 AM
> > To: CF-Talk
> > Subject: cfset hyperlink
> >
> > All,
> >
> > I thought this would be simple, but it's not working.  I want to set 
> > a varaible with a string that contains a hyperlink in it.
> >
> > http://www.site.com";>http://www.site.com">
> >
> > Thoughts?
> >
> > D
> >
> > D
> >
> >
> 
> 
> 
> 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254242
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfset hyperlink

2006-09-26 Thread coldfusion . developer
Thanks everyone.  I used cfset as an example, but it's actualy going through an 
admin tool.  It's being store in the database as ...

Click here to download your free couopn. http://www.site.com"";>http://www.site.com

it's coming out on the web page as ...

Click here to download your free coupon.  <a 
href="test">test</a>

?

Thanks.

>Use single quotes for one of them... or escape the " quote. 
>
>http://www.site.com"";>http://www.site.com">
>
>Or
>
>http://www.site.com'>http://www.site.com">
>
>Or 
>
>http://www.site.com'>http://www.site.com'>
>
>Or 
>
>
>Click here to download your free coupon. href="http://www.site.com";>http://www.site.com
>
>
>Russ
>>

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254238
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfset hyperlink

2006-09-26 Thread Sandra Clark
Your third or fourth suggestions are the best in terms of generating valid
HTML 


Sandra Clark
==
http://www.shayna.com
Training in Cascading Style Sheets and Accessibility


-Original Message-
From: Russ [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 11:22 AM
To: CF-Talk
Subject: RE: cfset hyperlink

Use single quotes for one of them... or escape the " quote. 

http://www.site.com"";>http://www.site.com">

Or

http://www.site.com'>http://www.site.com">

Or 

http://www.site.com'>http://www.site.com'>

Or 


Click here to download your free coupon. http://www.site.com";>http://www.site.com


Russ
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 11:17 AM
> To: CF-Talk
> Subject: cfset hyperlink
> 
> All,
> 
> I thought this would be simple, but it's not working.  I want to set a 
> varaible with a string that contains a hyperlink in it.
> 
> http://www.site.com";>http://www.site.com">
> 
> Thoughts?
> 
> D
> 
> D
> 
> 



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254228
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfset hyperlink

2006-09-26 Thread Russ
Use single quotes for one of them... or escape the " quote. 

http://www.site.com"";>http://www.site.com">

Or

http://www.site.com'>http://www.site.com">

Or 

http://www.site.com'>http://www.site.com'>

Or 


Click here to download your free coupon. http://www.site.com";>http://www.site.com


Russ
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 11:17 AM
> To: CF-Talk
> Subject: cfset hyperlink
> 
> All,
> 
> I thought this would be simple, but it's not working.  I want to
> set a varaible with a string that contains a hyperlink in it.
> 
> http://www.site.com";>http://www.site.com">
> 
> Thoughts?
> 
> D
> 
> D
> 
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254226
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfset hyperlink

2006-09-26 Thread David Low
You need to escape your quote marks - the  statement is
terminating too early.

> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> Sent: 26 September 2006 16:17
> To: CF-Talk
> Subject: cfset hyperlink
> 
> All,
> 
> I thought this would be simple, but it's not working.  I want to
> set a varaible with a string that contains a hyperlink in it.
> 
> http://www.site.com";>http://www.site.com">
> 
> Thoughts?
> 
> D
> 
> D
> 
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254225
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfset hyperlink

2006-09-26 Thread Russ
Actually my third was supposed to be 



But I'm not sure how it's different from all the others... What makes it
more valid then the other suggestions?

Russ


> -Original Message-
> From: Sandra Clark [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 11:26 AM
> To: CF-Talk
> Subject: RE: cfset hyperlink
> 
> Your third or fourth suggestions are the best in terms of generating valid
> HTML
> 
> 
> Sandra Clark
> ==
> http://www.shayna.com
> Training in Cascading Style Sheets and Accessibility
> 
> 
> -Original Message-
> From: Russ [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 26, 2006 11:22 AM
> To: CF-Talk
> Subject: RE: cfset hyperlink
> 
> Use single quotes for one of them... or escape the " quote.
> 
> http://www.site.com"";>http://www.site.com">
> 
> Or
> 
> http://www.site.com'>http://www.site.com">
> 
> Or
> 
> http://www.site.com'>http://www.site.com'>
> 
> Or
> 
> 
> Click here to download your free coupon.  href="http://www.site.com";>http://www.site.com
> 
> 
> Russ
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 26, 2006 11:17 AM
> > To: CF-Talk
> > Subject: cfset hyperlink
> >
> > All,
> >
> > I thought this would be simple, but it's not working.  I want to set a
> > varaible with a string that contains a hyperlink in it.
> >
> > http://www.site.com";>http://www.site.com">
> >
> > Thoughts?
> >
> > D
> >
> > D
> >
> >
> 
> 
> 
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254232
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfset dependent on javascript problem

2006-09-25 Thread Jake Churchill
It's Monday...It's a miracle that I thought of that :)

Jonathan Hicks wrote:
> Thanks Jake and Teddy for the help!  I'm just using the hidden fields on the 
> form method.  I should have known to do that, but it's just been a long day 
> and my brain's not working right today I guess!
>
>
>   
>> if it is a submit button, just put onClick="javascript:confirm('Are you 
>> sure...');" and it should handle it all correctly.
>>
>> Jonathan Hicks wrote:
>> 
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254101
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfset dependent on javascript problem

2006-09-25 Thread Jonathan Hicks
Thanks Jake and Teddy for the help!  I'm just using the hidden fields on the 
form method.  I should have known to do that, but it's just been a long day and 
my brain's not working right today I guess!


>if it is a submit button, just put onClick="javascript:confirm('Are you 
>sure...');" and it should handle it all correctly.
>
>Jonathan Hicks wrote:
>>

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254100
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfset dependent on javascript problem

2006-09-25 Thread Jake Churchill
if it is a submit button, just put onClick="javascript:confirm('Are you 
sure...');" and it should handle it all correctly.

Jonathan Hicks wrote:
> what i'm trying to do is a check from the user.  if the user clicks ok, then 
> a database update is completed, or if the user clicks cancel, nothing should 
> happen.  i was trying to set closeboxflag2 to true so that:
>
> 
> //perform database update
> 
> //do nothing
> 
>
> hope that makes sense, thanks for the help!
>
>
>   
>> I'm not sure where you are trying to reference closeboxflag2 from but 
>> 
> >from the looks of your code, you are mixing things that shouldn't be 
>   
>> mixed.  The following works:
>>
>> 
>>var closeboxflag = false;
>>var closeboxflag = "";
>>closeboxflag = confirm("Are you sure you want to close?")
>>if (closeboxflag == true) {
>>  closeboxflag2 = "true";
>>} else {
>>  closeboxflag2 = "false";
>>}
>>
>>
>> Jonathan Hicks wrote:
>> 
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254093
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfset dependent on javascript problem

2006-09-25 Thread Teddy Payne
Javascript cannot the ColdFusion  portion of your code based upon
your Javascript conditional logic.  Your example will not work and jake was
trying to show you a Javascript way.  If the closeboxflag is a form element,
it would be fire some sort of Javascript event to perform what you are
trying to do or perhaps update a hidden form field that will be processed by
a ColdFusion action page.

Teddy

On 9/25/06, Jonathan Hicks <[EMAIL PROTECTED]> wrote:
>
> what i'm trying to do is a check from the user.  if the user clicks ok,
> then a database update is completed, or if the user clicks cancel, nothing
> should happen.  i was trying to set closeboxflag2 to true so that:
>
> 
> //perform database update
> 
> //do nothing
> 
>
> hope that makes sense, thanks for the help!
>
>
> >I'm not sure where you are trying to reference closeboxflag2 from but
> >from the looks of your code, you are mixing things that shouldn't be
> >mixed.  The following works:
> >
> >
> >var closeboxflag = false;
> >var closeboxflag = "";
> >closeboxflag = confirm("Are you sure you want to close?")
> >if (closeboxflag == true) {
> >  closeboxflag2 = "true";
> >} else {
> >  closeboxflag2 = "false";
> >}
> >
> >
> >Jonathan Hicks wrote:
> >>
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254089
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfset dependent on javascript problem

2006-09-25 Thread Jonathan Hicks
what i'm trying to do is a check from the user.  if the user clicks ok, then a 
database update is completed, or if the user clicks cancel, nothing should 
happen.  i was trying to set closeboxflag2 to true so that:


//perform database update

//do nothing


hope that makes sense, thanks for the help!


>I'm not sure where you are trying to reference closeboxflag2 from but 
>from the looks of your code, you are mixing things that shouldn't be 
>mixed.  The following works:
>
>
>var closeboxflag = false;
>var closeboxflag = "";
>closeboxflag = confirm("Are you sure you want to close?")
>if (closeboxflag == true) {
>  closeboxflag2 = "true";
>} else {
>  closeboxflag2 = "false";
>}
>
>
>Jonathan Hicks wrote:
>>

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254066
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfset dependent on javascript problem

2006-09-25 Thread Jake Churchill
I'm not sure where you are trying to reference closeboxflag2 from but 
from the looks of your code, you are mixing things that shouldn't be 
mixed.  The following works:


var closeboxflag = false;
var closeboxflag = "";
closeboxflag = confirm("Are you sure you want to close?")
if (closeboxflag == true) {
  closeboxflag2 = "true";
} else {
  closeboxflag2 = "false";
}


Jonathan Hicks wrote:
> hi, i was wondering if you could help me with this problem.  I need to set 
> the variable "closeboxflag2" to "true" only if the user hits the OK button 
> from the javascript confirm box, or "false" if the user hits cancel.  
>
> 
>   
> var closeboxflag = false
> closeboxflag = confirm("Are you sure you want to close?")
> if (closeboxflag == true) {
>   
> } else {
>   
> }
>   
> 
>
> Thanks, Jon
>
> 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254065
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFSET construct

2005-05-25 Thread Stuart Kidd
Thanks to everyone with their help on that, it's all now solved. :)




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207642
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFSET construct

2005-05-25 Thread Dawson, Michael
Or use .

M!ke

-Original Message-
From: Steven Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 25, 2005 9:10 AM
To: CF-Talk
Subject: Re: CFSET construct

It's not ok to have other ColdFusion tags inside a CFSET.  You'll have
to put the condition outside.









~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207638
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSET construct

2005-05-25 Thread Steven Brownlee
It's not ok to have other ColdFusion tags inside a CFSET.  You'll have 
to put the condition outside.









Stuart Kidd wrote:
> Hi guys,
> 
> I¹m trying to put together a CFSET construct but am having probs:
> 
>  FindMatches.gender eq 'male'>'He''She' & 'may change this in
> the near future however.'>
> 
> Could somebody please point out what I am doing wrong, is it not okay to
> have ampersands in constructs?
> 
> Thanks,
> 
> Saturday
> 
> 
> 
> 
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207637
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFSET construct

2005-05-25 Thread Ian Skinner
NO, it's not ok to have nested tags inside a cfset tag, or any other tag for 
that matter.



You could use the IIF function here, but I'm sure there are better ways to do 
this all around.

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

-Original Message-
From: Stuart Kidd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 7:03 AM
To: CF-Talk
Subject: CFSET construct

Hi guys,

I¹m trying to put together a CFSET construct but am having probs:

'He''She' & 'may change this
in
the near future however.'>

Could somebody please point out what I am doing wrong, is it not okay to
have ampersands in constructs?

Thanks,

Saturday






~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207636
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFSET construct

2005-05-25 Thread Allan Cliff




-Original Message-
From: Stuart Kidd [mailto:[EMAIL PROTECTED] 
Sent: 25 May 2005 16:03
To: CF-Talk
Subject: CFSET construct


Hi guys,

I¹m trying to put together a CFSET construct but am having probs:

'He''She' & 'may change this in the near future however.'>

Could somebody please point out what I am doing wrong, is it not okay to have 
ampersands in constructs?

Thanks,

Saturday






~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207635
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset or cfparam in cfc?

2005-03-08 Thread Michael Dinowitz
Which is why I said you can do it with a function. :)
So can you ask someone at MM why the validation attributes were not added to
the CFARGUMENT tag and if they can be?

> On Tue, 8 Mar 2005 16:25:43 -0500, Michael Dinowitz
> <[EMAIL PROTECTED]> wrote:
> > I've told people in the past to use CFPARAM to validate the structure of
> > their data within a CFC method as a fast 'check'.
> 
> With CFMX 7 I'd be more inclined to use the isValid() function instead
> of  - a lot depends on what you want the CFC to do if the
> argument is invalid...



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197902
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset or cfparam in cfc?

2005-03-08 Thread Sean Corfield
On Tue, 8 Mar 2005 16:25:43 -0500, Michael Dinowitz
<[EMAIL PROTECTED]> wrote:
> I've told people in the past to use CFPARAM to validate the structure of
> their data within a CFC method as a fast 'check'.

With CFMX 7 I'd be more inclined to use the isValid() function instead
of  - a lot depends on what you want the CFC to do if the
argument is invalid...
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 49, yes 49, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197899
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset or cfparam in cfc?

2005-03-08 Thread Michael Dinowitz
CFARGUMENT can validate the data type being passed in and if it exists (as
well as give a default value). This copies most of the ability of the
CFPARAM tag. On the other hand, the new validation ability of CFPARAM does
not exist in CFARGUMENT (oversight?). 
Of course, you can write the same using functions, but

I've told people in the past to use CFPARAM to validate the structure of
their data within a CFC method as a fast 'check'.

> Really, I don't think that cfparam is as useful inside CFC methods as
> it is inside CFM files.I have mostly used  to "declare"
> attributes to a custom tag or input values to an included file.  It
> makes sure that required variables exist, and for those that aren't
> required it can set default values.  It also makes sure that the
> values for those variables are of the right type.  The 
> tag serves this purpose for parameters to function calls, removing the
> need to use .



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197896
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset or cfparam in cfc?

2005-03-08 Thread Paul Kenney
Really, I don't think that cfparam is as useful inside CFC methods as
it is inside CFM files.I have mostly used  to "declare"
attributes to a custom tag or input values to an included file.  It
makes sure that required variables exist, and for those that aren't
required it can set default values.  It also makes sure that the
values for those variables are of the right type.  The 
tag serves this purpose for parameters to function calls, removing the
need to use .


On Tue, 8 Mar 2005 15:22:34 -0500, Michael Dinowitz
<[EMAIL PROTECTED]> wrote:
> Yes. Any time a variable is set inside a CFC method, it should have the var
> keyword unless you WANT it to be available to other methods in the CFC (i.e.
> you want it to be in the CFC wide variables scope).
> This goes for CFPARAM, CFQUERY, and every (every) other location where a
> variable is set.
> My practice is to do:
> 
>  
> The question you have to ask yourself is how and why you're using the
> CFPARAM tag.
> 
> 
> > Hi,
> >
> > I know that when you declare a variable inside a method of cfc, you should
> > use the var keyword in front of it to prevent any conflict with variables
> > outside of it.  That is the case with cfset.  What about cfparam?  When
> > you declare a variable with cfparam, do you have to worry about that?
> >
> > Johnny
> >
> >
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197893
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset or cfparam in cfc?

2005-03-08 Thread Michael Dinowitz
Yes. Any time a variable is set inside a CFC method, it should have the var
keyword unless you WANT it to be available to other methods in the CFC (i.e.
you want it to be in the CFC wide variables scope). 
This goes for CFPARAM, CFQUERY, and every (every) other location where a
variable is set. 
My practice is to do:

 Hi,
> 
> I know that when you declare a variable inside a method of cfc, you should
> use the var keyword in front of it to prevent any conflict with variables
> outside of it.  That is the case with cfset.  What about cfparam?  When
> you declare a variable with cfparam, do you have to worry about that?
> 
> Johnny
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197884
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-09 Thread Micha Schopman
There is no need for XHTML currently, XHTML != Semantics. 

XHTML is fitted for the job of being extendible, which is currently not
possible in IE, also IE can't even handle XHTML (because it does not
recognize the required mimetype for XHTML). Better stick to XHTML syntax
in quirks, or HTML 4 with valid semantics.

Micha Schopman
Software Engineer

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



-
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl 


-


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193793
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-08 Thread Nathan Strutz
Pardon me as I catch up on my CF-Talk reading here...


Claude Schneegans wrote:
> 
>  >> single tags such as , , etc close themselves (a la ).
> 
> Completely useless, but anyway...

Useless looking, but making your pages fully standard XML is an awesome 
thing.


>>>2) all tag attributes must be lowercase.  
> 
> This I really hate. Since HTML is actually a mix of several languages like 
> Javascript, CSS, etc,

See, that's where you're wrong. HTML, especially XHTML, isn't a mix of 
any other languages. Just like you should practice MVC on the 
server-side, you split your structure (html) from your presentation 
(css) from your behavior (js) on the client side. They're separate and 
don't need to be mixed. Here's a couple recent references:

http://adactio.com/articles/display.php/this_year's_document_object_model
http://www.alistapart.com/articles/scripttriggers/


> and text, I find much clearer to have all tags in upper case, including CFML, 
> and the rest in lowercase.
> It is much easier to separate different parts, especially that text is mostly 
> lower case.

It can be easier to read, uppercased, but it's part of the basics of 
XML. When you get used to it, lowercase tags are much easier to read, 
but that's me.

-nathan strutz


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193703
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-06 Thread Taco Fleur
Creating code that is able to create code! And also validate it up to a
certain point.. I see a big value there. 


-- 
Taco Fleur
Senior Web Systems Engineer
http://www.webassociates.com


-Original Message-
From: Calvin Ward [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 February 2005 11:44 PM
To: CF-Talk
Subject: RE: cfset ?

Well, if it was valid XML then you could, in theory, actually parse a cf
document as an xml document

Not sure what value that would have though.

- Calvin

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 6:38 PM
To: CF-Talk
Subject: Re: cfset ?

if its parsed on the server, and it doesnt make it to the browser, anyway,
why or how does xhtml compliance matter?

--
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.com





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193249
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-05 Thread Massimo, Tiziana e Federica
> you need to create a DTD to encompass all these..
> W3C has a good example.. [XHTMLMOD]

Well, we were talking about mime-types not DTD/Schema.
BTW you don't need to create a DTD for mixing different XML languages inside
the same document, just use different namespaces (I guess we are really OT
now...)


Massimo Foti
DW tools: http://www.massimocorner.com
CF tools:  http://www.olimpo.ch/tmt/







~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193168
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread dave
yeah i know just given ya a hard time ;)
 actually i thought u meant xhtml, sorry i gots a hottie on my mind!


From: Will Tomlinson <[EMAIL PROTECTED]>
Sent: Friday, February 04, 2005 4:10 PM
To: CF-Talk 
Subject: Re: cfset ? 

No no no!!

I was a bit vague with my response there I guess. I AM coding everything xhtml, 
except those DAMN cfforms are still screwing me!! Friggin  in uppercase! Who's 
the idget that did that anyway??

In speaking of extra keystrokes, I'm talkin about 

That's useless to me! I'm used to looking at the regular way, which in my mind, 
keeps consistency. 

Sorry super dave! 

THE GAME!



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193147
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread Will Tomlinson
No no no!!

I was a bit vague with my response there I guess. I AM coding everything xhtml, 
except those DAMN cfforms are still screwing me!! Friggin  in uppercase! 
Who's the idget that did that anyway??

In speaking of extra keystrokes, I'm talkin about 

That's useless to me! I'm used to looking at the regular way, which in my mind, 
keeps consistency. 

Sorry super dave! 

THE GAME!

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193142
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread dave
actually .net will (haha) its really easy to do in dreamweaver!
 set the default document type to be xhtml compliant in the preferences and 
then when done with page under commands select fix xhtml.
 u have to do a few things like adding alt text to images but u should be doing 
that anyway.

 a few simple steps really helps cross browser support, if now we could only 
get m$ to do the right thing and build ie right, it would be awesome!
 kinda screwwy how msn is now building cssp sites but yet refuse to have their 
own browser support it properly. hopefully they will get sick of having to hack 
their code to get it to work in their own browser but not holding my breath.

 overall, u really should be coding in xhtml! it is really sweet:) so much 
cleaner, leaner  & faster!

 html is pretty forgiving on crappy, sloppy coding but xhtml is not, so if the 
browser isnt guessing what to do and can run straight through it, makes it much 
faster!
 kinda like calling a key in a structure or array instead of pulling it out of 
a list, in other words, it knows exactly whats its doing instead of searching, 
so speed is WHOO HOO!

 would be hilarious is the net switched to it today! can u see all them 
frontpage sites take a big ole dooky!

 on some other boards we were trying to help this guy make his code compliant 
but he refused to leave frontpage, its was totally amazing that u can not make 
that code compliant, no matter what u do! good stuff ms! keep up the good work 
haha


From: Will Tomlinson <[EMAIL PROTECTED]>
Sent: Friday, February 04, 2005 3:28 PM
To: CF-Talk 
Subject: Re: cfset ? 

This all translates to tens of thousands of extra keystrokes for me. And being 
the lazy coder that I am, I'll deem them unecessary! 

:)

Will



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193140
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread Will Tomlinson
This all translates to tens of thousands of extra keystrokes for me. And being 
the lazy coder that I am, I'll deem them unecessary! 

:)

Will

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193132
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-04 Thread Umer Farooq
you need to create a DTD to encompass all these..
W3C has a good example.. [XHTMLMOD]

http://www.w3.org/TR/2002/WD-XHTMLplusMathMLplusSVG-20020809/#ref-xhtmlmodschema

frankly I think.. until the XHTML MOD Schema is finalized(working draft 
now) stuff like this gonna be.. a pain.. unless you are a fan of DTD's


Massimo, Tiziana e Federica wrote:
> "Micha Schopman" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> 
>>XHTML in general has to be served as application/xhtml+xml,
>>application/xml or text/xml to be valid. So serving the files with a
>>mimetype other than the required results in invalid XHTML, although the
>>format looks XHTML valid.
> 
> 
> 
> I tend to agree (see my CF tools page with a Gekko based browser), but I
> feel there is more than that. With XHTML you can create compound documents,
> mixing different XML languages inside the same document, like a XHTML file
> that contains SVG, MathML or RSS. In such a scenario XHTML may simply act as
> a container. How about that? What's the "correct" mime-type for such a kind
> of beast?
> 
> I have the feeling a simple mime-type isn't able to express the real nature
> of a compound XML document...
> 
> 
> 
> Massimo Foti
> DW tools: http://www.massimocorner.com
> CF tools:  http://www.olimpo.ch/tmt/
> 
> 
> 
> 
> 
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193131
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-04 Thread Barney Boisvert
I believe that it's still the XHTML MIME type, because that's what the
document acutally, is regardless of what other stuff it might have
embedded in it.  But you're right, the MIME type is utterly
insufficient for describing a compound XML document.

cheers,
barneyb

On Fri, 4 Feb 2005 17:03:18 +0100, Massimo, Tiziana e Federica
<[EMAIL PROTECTED]> wrote:
> "Micha Schopman" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > XHTML in general has to be served as application/xhtml+xml,
> > application/xml or text/xml to be valid. So serving the files with a
> > mimetype other than the required results in invalid XHTML, although the
> > format looks XHTML valid.
> 
> I tend to agree (see my CF tools page with a Gekko based browser), but I
> feel there is more than that. With XHTML you can create compound documents,
> mixing different XML languages inside the same document, like a XHTML file
> that contains SVG, MathML or RSS. In such a scenario XHTML may simply act as
> a container. How about that? What's the "correct" mime-type for such a kind
> of beast?
> 
> I have the feeling a simple mime-type isn't able to express the real nature
> of a compound XML document...
> 
> 
> Massimo Foti
> DW tools: http://www.massimocorner.com
> CF tools:  http://www.olimpo.ch/tmt/
> 
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193126
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread Claude Schneegans
 >>Will send it right now with the subject RE_Extract.

Ah ah! Got it! And it is not marked as spam. ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193110
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread Dan O'Keefe
No, I used this address. Will send it right now with the subject RE_Extract.

Dan


On Thu, 03 Feb 2005 23:07:29 -0500, Claude Schneegans
<[EMAIL PROTECTED]> wrote:
>  >>Did your email address change? I sent a couple emails about
> RE_extract with no reply.
> 
> No, it didn't.
> I changed my message reading soft however, (Thunderbird), and it has a spam 
> filter.
> I check it every time it sends something to the thrash however, and I never 
> saw something
> about RE_extract of course.
> 
> I hope you did not use [EMAIL PROTECTED] it is only a spam trap ;-)
> 
> Can you try again ?
> 
> --
> ___
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193105
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-04 Thread Massimo, Tiziana e Federica
"Micha Schopman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> XHTML in general has to be served as application/xhtml+xml,
> application/xml or text/xml to be valid. So serving the files with a
> mimetype other than the required results in invalid XHTML, although the
> format looks XHTML valid.


I tend to agree (see my CF tools page with a Gekko based browser), but I
feel there is more than that. With XHTML you can create compound documents,
mixing different XML languages inside the same document, like a XHTML file
that contains SVG, MathML or RSS. In such a scenario XHTML may simply act as
a container. How about that? What's the "correct" mime-type for such a kind
of beast?

I have the feeling a simple mime-type isn't able to express the real nature
of a compound XML document...



Massimo Foti
DW tools: http://www.massimocorner.com
CF tools:  http://www.olimpo.ch/tmt/





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193096
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread Claude Schneegans
 >>Uhhh, the table tags are part of your content. They are the

>>structure.  The presentation are things like headings

Well, I was more thinking of the content (text) as opposed to the presentation 
in a larger sense,
including the container as well. For me, the fact that some text must be laid 
inside a cell inside a table
is part of the presentation scheme for the same reason as bold, italic or 
strong.

>>The perfect example is the  tag in HTML.  What does it mean?  It
>>means bold the contained text.  That's a presentation concern, not
>>part of the content.  

Exact, this is why I always write , not , in order to better separate it 
from the content
generally in lower case. And this is why I do not like XHTML.


>>In XHTML you have the  tag.  What does
>>it mean?  The contained text should be 'stronger' than other text. 
>>That's a semantic concern, not presentation.  The you use CSS to
>>supply the presentation info appropriate for the medium, based on the
>>semantic meaning.

I know, this is the philosopy behind SGML and DTDs.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193076
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-04 Thread Micha Schopman
XHTML in general has to be served as application/xhtml+xml,
application/xml or text/xml to be valid. So serving the files with a
mimetype other than the required results in invalid XHTML, although the
format looks XHTML valid.

More about this on the blog of Anne, who explains everything in detail
and written out.

www.annevankesteren.nl

Micha Schopman
Software Engineer

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



-
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl 


-

-Original Message-
From: Sandy Clark [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 4 februari 2005 14:06
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

Actually xHTML works fine in IE provided it is xHTML 1.0 served as text
through a mime type of text/html. It's the xhtml served as :
application/xhtml+xml, application/xml or text/xml that causes problems
in
IE.(That's why I can't go to xHTML 1.1 since it has to be served with
one of
those mime types.)

http://www.w3.org/International/articles/serving-xhtml/

Just remember to dump the prolog when serving xHTML ().  It throws IE into quirks mode. (Quirks mode = non
cross browser rendering compatibility and is not to be desired).


Hallelujah! They are listening!


Sandy

-Original Message-
From: Micha Schopman [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 04, 2005 2:48 AM
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

XHTML is still unsupported by IE, so if you need to develop for IE, use
quirks mode at least, or stick to 4.01 

Micha Schopman
Software Engineer

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort Tel 033-4535377, Fax
033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380



-
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de
interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl


-

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: vrijdag 4 februari 2005 3:53
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

TinyMCE outputs XHTML, so no problems there... 

-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent: Friday, 4 February 2005 10:37
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

 

> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> cleaning up the deprecated tags like  and the like will also 
> really clean up the code (and by putting all of the presentation code 
> into css, your pages will load that much faster)!
> 
> /me hears ms. clark shout an amen from up north :)

I wonder what will happen to all those nifty WYSIWYG editors... I have
never
been a fan of the HTML they output.











~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193065
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-04 Thread Calvin Ward
Dreamweaver also does XHMTL...

- Calvin

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 9:53 PM
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

TinyMCE outputs XHTML, so no problems there... 

-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 February 2005 10:37 
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

 

> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> cleaning up the deprecated tags like  and the like will also 
> really clean up the code (and by putting all of the presentation code 
> into css, your pages will load that much faster)!
> 
> /me hears ms. clark shout an amen from up north :)

I wonder what will happen to all those nifty WYSIWYG editors... I have never
been a fan of the HTML they output.







~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193061
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-04 Thread Calvin Ward
Well, if it was valid XML then you could, in theory, actually parse a cf
document as an xml document

Not sure what value that would have though.

- Calvin

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 03, 2005 6:38 PM
To: CF-Talk
Subject: Re: cfset ?

if its parsed on the server, and it doesnt make it to the browser,
anyway, why or how does xhtml compliance matter?

-- 
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.com



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193060
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-04 Thread Charlie Griefer
On Thu, 3 Feb 2005 21:39:07 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote:
 { snip }

> It's worth mentioning that you can do all this with HTML as well as
> XHTML.  The difference is that with HTML you can choose to do it this
> way, but with XHTML you _have_ to do it this way.

Which, IMO, is a good thing.  There's been so much crap HTML code
floating around the web for so long due to lack of standards (or lack
of consequences for deviation from what loose standards existed).

-- 
Charlie Griefer


Marta was watching the football game with me when she said, 
"You know, most of these sports are based on the idea of one group 
protecting its territory from invasion by another group." 
"Yeah," I said, trying not to laugh. Girls are funny.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193057
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-04 Thread Sandy Clark
Actually xHTML works fine in IE provided it is xHTML 1.0 served as text
through a mime type of text/html. It's the xhtml served as :
application/xhtml+xml, application/xml or text/xml that causes problems in
IE.(That's why I can't go to xHTML 1.1 since it has to be served with one of
those mime types.)

http://www.w3.org/International/articles/serving-xhtml/

Just remember to dump the prolog when serving xHTML ().  It throws IE into quirks mode. (Quirks mode = non
cross browser rendering compatibility and is not to be desired).


Hallelujah! They are listening!


Sandy

-Original Message-
From: Micha Schopman [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 04, 2005 2:48 AM
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

XHTML is still unsupported by IE, so if you need to develop for IE, use
quirks mode at least, or stick to 4.01 

Micha Schopman
Software Engineer

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort Tel 033-4535377, Fax
033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380



-
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de
interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl


-

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: vrijdag 4 februari 2005 3:53
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

TinyMCE outputs XHTML, so no problems there... 

-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent: Friday, 4 February 2005 10:37
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

 

> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> cleaning up the deprecated tags like  and the like will also 
> really clean up the code (and by putting all of the presentation code 
> into css, your pages will load that much faster)!
> 
> /me hears ms. clark shout an amen from up north :)

I wonder what will happen to all those nifty WYSIWYG editors... I have
never
been a fan of the HTML they output.









~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193056
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Micha Schopman
XHTML is still unsupported by IE, so if you need to develop for IE, use
quirks mode at least, or stick to 4.01 

Micha Schopman
Software Engineer

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



-
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl 


-

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 4 februari 2005 3:53
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

TinyMCE outputs XHTML, so no problems there... 

-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 February 2005 10:37 
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

 

> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> cleaning up the deprecated tags like  and the like will also 
> really clean up the code (and by putting all of the presentation code 
> into css, your pages will load that much faster)!
> 
> /me hears ms. clark shout an amen from up north :)

I wonder what will happen to all those nifty WYSIWYG editors... I have
never
been a fan of the HTML they output.







~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193049
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Umer Farooq
>> ..
>>3) all attribute values must be in quotes.
>>
>>that's XHTML in a nutshell.
> 
> 
> be lowercase, and there are some HTML tags which don't exist in XHTML if I
> recall correctly.

You are right.. but that's the  beauty of XHTML Modularization.. you can 
easily extend it.. to match whatever you need it to.. one of the most 
common attribute that is not in the XHTML DTD is "target" and you can 
add the following to your doctype dec and get ur self a valid XHTML 
document..



With the coming release of Blackstone (hopefully soon) XHTML and XForms 
combo is gonna be a killer.. I can't wait.. wishing right now I was on 
the beta test.. ;)

-- 
Umer Farooq
Octadyne Systems
+1 (519) 489-1119 voice
+1 (519) 635-2795 mobile
+1 (530) 326-3586 fax


WEB SOLUTIONS FOR NON-PROFIT ORGANIZATION:
http://www.Non-ProfitSites.biz


WARNING: --- The information contained in 
this document and attachments is confidential and intended only for the 
person(s) named above. If you are not the  intended recipient you are 
hereby notified that any disclosure, copying, distribution, or any other 
use of the information is strictly prohibited.  If you have received 
this document by mistake, please notify the sender immediately and 
destroy this document and attachments without making any copy of any kind.


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193048
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Barney Boisvert
Uhhh, the table tags are part of your content.  They are the
structure.  The presentation are things like headings should be bold
and red, cells should have a green background.  With HTML, you can
embed that stuff in the content (though you don't have to).  With
XHTML, on the other hand, you simply can't.  You have to use CSS to do
it.  That's the separation of content and presentation.

The perfect example is the  tag in HTML.  What does it mean?  It
means bold the contained text.  That's a presentation concern, not
part of the content.  In XHTML you have the  tag.  What does
it mean?  The contained text should be 'stronger' than other text. 
That's a semantic concern, not presentation.  The you use CSS to
supply the presentation info appropriate for the medium, based on the
semantic meaning.  For visual text, the default presentation of
 is to bold it.  But for aural presentation, you'd use a
stronger voice tone.  Or perhaps you want it to be both bold and a
different color.  All this is very simple to do, because you can use
the same content for multiple presentations, without having to change
the content at all.

It's worth mentioning that you can do all this with HTML as well as
XHTML.  The difference is that with HTML you can choose to do it this
way, but with XHTML you _have_ to do it this way.

cheers,
barneyb

On Thu, 03 Feb 2005 23:02:50 -0500, Claude Schneegans
<[EMAIL PROTECTED]> wrote:
>  >>except it forces you to separate content from presentation,
> 
> This is exactly what bothers me. I feel like it does exactly the
> contrary, by imposing tags in lower case.
> For me some text here makes much clearer whats part of the
> presentation and whats content
> than some text here
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 49 invites.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193047
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Claude Schneegans
 >>Did your email address change? I sent a couple emails about 
RE_extract with no reply.

No, it didn't.
I changed my message reading soft however, (Thunderbird), and it has a spam 
filter.
I check it every time it sends something to the thrash however, and I never saw 
something
about RE_extract of course.

I hope you did not use [EMAIL PROTECTED] it is only a spam trap ;-)

Can you try again ?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193045
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Claude Schneegans
 >>except it forces you to separate content from presentation,

This is exactly what bothers me. I feel like it does exactly the 
contrary, by imposing tags in lower case.
For me some text here makes much clearer whats part of the 
presentation and whats content
than some text here

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193043
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Claude Schneegans
 >>1) all tags must be closed. this includes , , and the like.

No problem with that.

 >> single tags such as , , etc close themselves (a la ).

Completely useless, but anyway...

>>2) all tag attributes must be lowercase.  

This I really hate. Since HTML is actually a mix of several languages like 
Javascript, CSS, etc,
and text, I find much clearer to have all tags in upper case, including CFML, 
and the rest in lowercase.
It is much easier to separate different parts, especially that text is mostly 
lower case.

>>3) all attribute values must be in quotes.

No problem with that, I use quotes most of the time, 

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193042
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Dan O'Keefe
Claude,

Did your email address change? I sent a couple emails about RE_extract
with no reply.

Dan


On Thu, 03 Feb 2005 20:43:01 -0500, Claude Schneegans
<[EMAIL PROTECTED]> wrote:
>  >>I like it, because it's consistent with the XHTML I create.
> 
> Ok, but whats the big deal of XHTML after all?
> 
> --
> ___
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193041
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread James Holmes
TinyMCE outputs XHTML, so no problems there... 

-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 February 2005 10:37 
To: CF-Talk
Subject: RE: Slightly OT: XHTML (was Re: cfset ?)

 

> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> cleaning up the deprecated tags like  and the like will also 
> really clean up the code (and by putting all of the presentation code 
> into css, your pages will load that much faster)!
> 
> /me hears ms. clark shout an amen from up north :)

I wonder what will happen to all those nifty WYSIWYG editors... I have never
been a fan of the HTML they output.





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193038
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Michael T. Tangorre
 

> From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
> cleaning up the deprecated tags like  and the like will also
> really clean up the code (and by putting all of the presentation code
> into css, your pages will load that much faster)!
> 
> /me hears ms. clark shout an amen from up north :)

I wonder what will happen to all those nifty WYSIWYG editors... I have never
been a fan of the HTML they output.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193037
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Charlie Griefer
cleaning up the deprecated tags like  and the like will also
really clean up the code (and by putting all of the presentation code
into css, your pages will load that much faster)!

/me hears ms. clark shout an amen from up north :)


On Thu, 3 Feb 2005 21:25:00 -0500, Michael T. Tangorre
<[EMAIL PROTECTED]> wrote:
> > From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> > I'm sure Jochem has an RFC or BLT or some such that he'll
> > share as well :)
> 
> I'll take two with extra bacon!
> 
> Seriously though... I look forward to when XHTML becomes the norm.
> Hopefuylly the results are MUCH BETTER coded pages...  I get really sick of
> looking at shitty HTML all the time. SOME ALL CAPS, some all lowercase, sOme
> MixedcASe organization and standards is where its at. :-)
> 
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193036
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Michael T. Tangorre
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]  
> I'm sure Jochem has an RFC or BLT or some such that he'll 
> share as well :)

I'll take two with extra bacon!

Seriously though... I look forward to when XHTML becomes the norm.
Hopefuylly the results are MUCH BETTER coded pages...  I get really sick of
looking at shitty HTML all the time. SOME ALL CAPS, some all lowercase, sOme
MixedcASe organization and standards is where its at. :-)



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193035
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Barney Boisvert
It's the modern HTML standard.  HTML 4.0 is still the most common, I'm
sure, but XHTML superceeded it.  It's not really any different, except
it forces you to separate content from presentation, and since it's
XML, allows you to do various nifty things in certain situations (such
as embedding other XML namespaces, or doing XSL transformations).

cheers,
barneyb


On Thu, 03 Feb 2005 20:43:01 -0500, Claude Schneegans
<[EMAIL PROTECTED]> wrote:
>  >>I like it, because it's consistent with the XHTML I create.
> 
> Ok, but whats the big deal of XHTML after all?
> 
> 
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193034
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Dave Watts
> XHTML itself is nothing more than 'well formed' HTML (so if 
> you wrote 'good HTML', you're in good shape).  Basically:
> 
> 1) all tags must be closed.  this includes , , 
> and the like.  single tags such as , , etc close 
> themselves (a la ).
> 2) all tag attributes must be lowercase.  this includes 
> events like onclick, onsubmit, etc.
> 3) all attribute values must be in quotes.
> 
> that's XHTML in a nutshell.

Well, there's a little more than will fit within that nutshell. XHTML isn't
HTML at all - it's an XML language that shares many common elements with
HTML and it is intended to replace HTML. However, you may have written
well-formed HTML that isn't at all XHTML-compliant.

Also, element names - what we'd typically call tag names in HTML - must also
be lowercase, and there are some HTML tags which don't exist in XHTML if I
recall correctly.

> I'm sure Jochem has an RFC or BLT or some such that he'll 
> share as well :)

You don't want to get a sandwich in the mail from Europe; trust me on that.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193030
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Slightly OT: XHTML (was Re: cfset ?)

2005-02-03 Thread Charlie Griefer
that's a whole 'nother discussion :)

the biggest deal is that HTML is going away.  There will be no HTML 5.
 The current (4.whatever) is the last.

XHTML is the next standard as defined by the W3C.  

XHTML itself is nothing more than 'well formed' HTML (so if you wrote
'good HTML', you're in good shape).  Basically:

1) all tags must be closed.  this includes , , and the
like.  single tags such as , , etc close themselves (a la ).
2) all tag attributes must be lowercase.  this includes events like
onclick, onsubmit, etc.
3) all attribute values must be in quotes.

that's XHTML in a nutshell.  

if adhering to standards matters to you, then XHTML should be a big deal.

I'm sure Jochem has an RFC or BLT or some such that he'll share as well :)


On Thu, 03 Feb 2005 20:43:01 -0500, Claude Schneegans
<[EMAIL PROTECTED]> wrote:
>  >>I like it, because it's consistent with the XHTML I create.
> 
> Ok, but whats the big deal of XHTML after all?
> 
> --
> ___
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193029
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Claude Schneegans
 >>I like it, because it's consistent with the XHTML I create.

Ok, but whats the big deal of XHTML after all?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193028
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Barney Boisvert
CFDUMP (along with 15 or so other tags) are still implemented as
custom tags.  Just in CFMX they fixed CFDUMP so that it checked
executionMode and only does something on the start mode.

The tags that are implemented in CFML (though they are encrypted) are
in /WEB-INF/cftags.  You can add additional templates here as you see
fit, and they'll be treated just like built-in tags.

cheers,
barneyb

On Thu, 3 Feb 2005 19:28:03 -0500, Charlie Griefer
<[EMAIL PROTECTED]> wrote:
> coming in late to the thread, but to answer the original (and a few
> other) questions:
> 
> 1) yes, it's to maintain consistency since I try to write my HTML
> markup in XHTML compliant style/standard.
> 
> 2) no, it doesn't do anything other than give me a warm snuggly
> feeling knowing that I've been consistent.  there's no harm in doing
> it...there's no harm in not doing it.
> 
> 3) in CF 5,  outputs twice (since, as I
> understand it,  in cf 5 was actually a built in custom tag
> (feel free to correct me if i understand that wrong)).  Other than
> that, I've never encountered any other issues with the syntax.
> 
> in a nutshell, i'm just very anal and prefer to maintain the
> consistency.  I'm one of those purists :)
> 
> Charlie
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193024
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Charlie Griefer
coming in late to the thread, but to answer the original (and a few
other) questions:

1) yes, it's to maintain consistency since I try to write my HTML
markup in XHTML compliant style/standard.

2) no, it doesn't do anything other than give me a warm snuggly
feeling knowing that I've been consistent.  there's no harm in doing
it...there's no harm in not doing it.

3) in CF 5,  outputs twice (since, as I
understand it,  in cf 5 was actually a built in custom tag
(feel free to correct me if i understand that wrong)).  Other than
that, I've never encountered any other issues with the syntax.

in a nutshell, i'm just very anal and prefer to maintain the
consistency.  I'm one of those purists :)

Charlie



On Thu, 3 Feb 2005 15:58:58 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> But if you do that, then you lose all the meaning of the CFIF tag,
> because both the true and false blocks are inside the tag.  If you
> look at the JSTL (JSP Standard Template Library), they have an if tag
> (with no option for else or else if) and a choose/when/otherwise tag.
> the latter is kind of interesting, it's equivalent to
> fi..elseif..else, but it's structured more like switch..case..default:
> 
> 
>   
> x is greater than 5
>   
>   
> x is equal to 5
>   
>   
> x is less than 5
>   
> 
> 
> One alternative (a less desirable one, IMHO) is exemplified in the
> Fusebox 4 grammar.  It has three tags, IF, TRUE and FALSE, which are
> used like this:
> 
> 
> 
>   It's bigger than 5
> 
> 
>   It's less than or equal to 5
> 
> 
> 
> For general-purpose coding, the JSTL's pair of conditional constructs
> is definitely superior.  For application structure descriptors (as
> FB4's XML files are) the need for conditional logic should be very
> little, so it's construct is suitable and simpler (since they're only
> one).
> 
> cheers,
> barneyb
> 
> On Fri, 4 Feb 2005 09:45:15 +1000, Taco Fleur <[EMAIL PROTECTED]> wrote:
> > I guess its all just one step towards being compliant with xml, all you
> > would have to do to make it really compliant is something like the following
> > to get around the issue with cfelse.
> >
> > 
> > test
> >
> > 
> >
> > 
> >
> > --
> > Taco Fleur
> > Senior Web Systems Engineer
> > http://www.webassociates.com
> >
> > -Original Message-
> > From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 4 February 2005 9:25 AM
> > To: CF-Talk
> > Subject: Re: cfset ?
> >
> > Except that CFML isn't XML compliant.  CFELSEIF and CFELSE, in particular,
> > are an issue.  If you use CFSWITCH for all conditionals with more than one
> > block, then it'd work (you can still use CFIF without a CFELSE).
> >
> > cheers,
> > barneyb
> >
> > On Fri, 4 Feb 2005 09:20:43 +1000, Taco Fleur <[EMAIL PROTECTED]>
> > wrote:
> > > Its just to make the code xml compliant, basically you could
> > > eventually parse a cfm page and work with it as XML..
> > >
> > > --
> > > Taco Fleur
> > > Senior Web Systems Engineer
> > > http://www.webassociates.com
> > >
> > >
> >
> > --
> > Barney Boisvert
> > [EMAIL PROTECTED]
> > 360.319.6145
> > http://www.barneyb.com/
> >
> > Got Gmail? I have 50 invites.
> >
> >
> 
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193022
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Barney Boisvert
But if you do that, then you lose all the meaning of the CFIF tag,
because both the true and false blocks are inside the tag.  If you
look at the JSTL (JSP Standard Template Library), they have an if tag
(with no option for else or else if) and a choose/when/otherwise tag. 
the latter is kind of interesting, it's equivalent to
fi..elseif..else, but it's structured more like switch..case..default:


  
x is greater than 5
  
  
x is equal to 5
  
  
x is less than 5
  


One alternative (a less desirable one, IMHO) is exemplified in the
Fusebox 4 grammar.  It has three tags, IF, TRUE and FALSE, which are
used like this:



  It's bigger than 5


  It's less than or equal to 5



For general-purpose coding, the JSTL's pair of conditional constructs
is definitely superior.  For application structure descriptors (as
FB4's XML files are) the need for conditional logic should be very
little, so it's construct is suitable and simpler (since they're only
one).

cheers,
barneyb

On Fri, 4 Feb 2005 09:45:15 +1000, Taco Fleur <[EMAIL PROTECTED]> wrote:
> I guess its all just one step towards being compliant with xml, all you
> would have to do to make it really compliant is something like the following
> to get around the issue with cfelse.
> 
> 
> test
> 
> 
> 
> 
> 
> --
> Taco Fleur
> Senior Web Systems Engineer
> http://www.webassociates.com
> 
> -Original Message-
> From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> Sent: Friday, 4 February 2005 9:25 AM
> To: CF-Talk
> Subject: Re: cfset ?
> 
> Except that CFML isn't XML compliant.  CFELSEIF and CFELSE, in particular,
> are an issue.  If you use CFSWITCH for all conditionals with more than one
> block, then it'd work (you can still use CFIF without a CFELSE).
> 
> cheers,
> barneyb
> 
> On Fri, 4 Feb 2005 09:20:43 +1000, Taco Fleur <[EMAIL PROTECTED]>
> wrote:
> > Its just to make the code xml compliant, basically you could
> > eventually parse a cfm page and work with it as XML..
> >
> > --
> > Taco Fleur
> > Senior Web Systems Engineer
> > http://www.webassociates.com
> >
> >
> 
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
> 
> Got Gmail? I have 50 invites.
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193019
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread dave
tHats wHy i was sayin, my first tHougHt was xHtml but it wouldnt matter 
anyways, tHats wKy i asKed.


From: Tony Weeg <[EMAIL PROTECTED]>
Sent: Thursday, February 03, 2005 6:42 PM
To: CF-Talk 
Subject: Re: cfset ? 

if its parsed on the server, and it doesnt make it to the browser,
anyway, why or how does xhtml compliance matter?

-- 
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.com



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193015
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-03 Thread Taco Fleur
I guess its all just one step towards being compliant with xml, all you
would have to do to make it really compliant is something like the following
to get around the issue with cfelse.


test






-- 
Taco Fleur
Senior Web Systems Engineer
http://www.webassociates.com


-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 February 2005 9:25 AM
To: CF-Talk
Subject: Re: cfset ?

Except that CFML isn't XML compliant.  CFELSEIF and CFELSE, in particular,
are an issue.  If you use CFSWITCH for all conditionals with more than one
block, then it'd work (you can still use CFIF without a CFELSE).

cheers,
barneyb

On Fri, 4 Feb 2005 09:20:43 +1000, Taco Fleur <[EMAIL PROTECTED]>
wrote:
> Its just to make the code xml compliant, basically you could 
> eventually parse a cfm page and work with it as XML..
> 
> --
> Taco Fleur
> Senior Web Systems Engineer
> http://www.webassociates.com
> 
> 

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193014
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread dave
lol
 friggin m$ always messin with my head!


From: Tony Weeg <[EMAIL PROTECTED]>
Sent: Thursday, February 03, 2005 6:43 PM
To: CF-Talk 
Subject: Re: cfset ? 

and dave, switch your *K* and *H* keys around, someone is effin' with ya!

:) tw

On Thu, 3 Feb 2005 18:37:40 -0500, Tony Weeg  wrote:
> if its parsed on the server, and it doesnt make it to the browser,
> anyway, why or how does xhtml compliance matter?
> 
> --
> tony
> 
> Tony Weeg
> 
> macromedia certified coldfusion mx developer
> email: tonyweeg [at] gmail [dot] com
> blog: http://www.revolutionwebdesign.com/blog/
> cool tool: http://www.antiwrap.com
> 

-- 
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.com



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193013
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Barney Boisvert
Yeah, there's no tangible benefit to closing them like that.  Pure
style.  Any CF tag can be closed like that, except, I believe, for
CFCOL (used inside CFTABLE).  I remember running into some tag that
complained, and I think that was it.  But other than that, they can
all be self-closed like that.

cheers,
barneyb


On Thu, 3 Feb 2005 18:31:38 -0500, dave <[EMAIL PROTECTED]> wrote:
> i can see it as being consistant with xhtml but as far as i know xhtml doesnt 
> parse cfm code yet. So it wouldnt actually make it compliant but certainly 
> consistant.
> 
>  which i guess would bring up the ? of  which tags can be closed like that? 
> can basically any of them? (except as was noted things such as custom tags).
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193012
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-03 Thread Michael T. Tangorre
> From: dave [mailto:[EMAIL PROTECTED] 
> i can see it as being consistant with xhtml but as far as i 
> know xhtml doesnt parse cfm code yet. So it wouldnt actually 
> make it compliant but certainly consistant.
> 
>  which i guess would bring up the ? of  which tags can be 
> closed like that? can basically any of them? (except as was 
> noted things such as custom tags).

Any tag that does not have an explicit end tag.




etc...




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193010
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Tony Weeg
and dave, switch your *K* and *H* keys around, someone is effin' with ya!

:) tw


On Thu, 3 Feb 2005 18:37:40 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> if its parsed on the server, and it doesnt make it to the browser,
> anyway, why or how does xhtml compliance matter?
> 
> --
> tony
> 
> Tony Weeg
> 
> macromedia certified coldfusion mx developer
> email: tonyweeg [at] gmail [dot] com
> blog: http://www.revolutionwebdesign.com/blog/
> cool tool: http://www.antiwrap.com
> 


-- 
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.com

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193009
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Tony Weeg
if its parsed on the server, and it doesnt make it to the browser,
anyway, why or how does xhtml compliance matter?

-- 
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.com

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193008
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread dave
i can see it as being consistant with xhtml but as far as i know xhtml doesnt 
parse cfm code yet. So it wouldnt actually make it compliant but certainly 
consistant.

 which i guess would bring up the ? of  which tags can be closed like that? can 
basically any of them? (except as was noted things such as custom tags).


From: Barney Boisvert <[EMAIL PROTECTED]>
Sent: Thursday, February 03, 2005 6:24 PM
To: CF-Talk 
Subject: Re: cfset ? 

It's a personal style thing. I like it, because it's consistent with
the XHTML I create. I don't have to think about whether I'm writing
CFML or XHTML, I just close every tag.

One thing to watch out for, however, is custom tags. The self-close
is treated a closing tag, so if your custom tag isn't expecting that,
weird problems can arise. In theory, every custom tag will properly
check it's executionMode, and react accordingly, possibly by ignoring
a close tag that it wasn't expecting, but that's not always the case.

The first line will call the custom tag once, with executionMode =
"start", while the second line will call the custom tag twice, once
with executionMode = "start", and then again with executionMode =
"end". This goes for CFMODULE calls as well.

cheers,
barneyb

On Thu, 3 Feb 2005 18:14:19 -0500, dave  wrote:
> 
> ok this is dumb but was just curious about something
> 
> i have always done cfsets like suck
> 
> 
> but i was just browsing through one of charlie griefers articles and i see he 
> closes the tag, like suck
> 
> 
> the docs dont mention using a closing tag and i have never seen it before so 
> just curious
> 
> :)
> 
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193005
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Barney Boisvert
Except that CFML isn't XML compliant.  CFELSEIF and CFELSE, in
particular, are an issue.  If you use CFSWITCH for all conditionals
with more than one block, then it'd work (you can still use CFIF
without a CFELSE).

cheers,
barneyb

On Fri, 4 Feb 2005 09:20:43 +1000, Taco Fleur <[EMAIL PROTECTED]> wrote:
> Its just to make the code xml compliant, basically you could eventually
> parse a cfm page and work with it as XML..
> 
> --
> Taco Fleur
> Senior Web Systems Engineer
> http://www.webassociates.com
> 
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193004
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-03 Thread Taco Fleur
Its just to make the code xml compliant, basically you could eventually
parse a cfm page and work with it as XML.. 


-- 
Taco Fleur
Senior Web Systems Engineer
http://www.webassociates.com


-Original Message-
From: dave [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 February 2005 9:14 AM
To: CF-Talk
Subject: cfset ?


ok this is dumb but was just curious about something

 i have always done cfsets like suck
 

 but i was just browsing through one of charlie griefers articles and i see
he closes the tag, like suck  

 the docs dont mention using a closing tag and i have never seen it before
so just curious

 :)
 





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193003
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Barney Boisvert
It's a personal style thing.  I like it, because it's consistent with
the XHTML I create.  I don't have to think about whether I'm writing
CFML or XHTML, I just close every tag.

One thing to watch out for, however, is custom tags.  The self-close
is treated a closing tag, so if your custom tag isn't expecting that,
weird problems can arise.  In theory, every custom tag will properly
check it's executionMode, and react accordingly, possibly by ignoring
a close tag that it wasn't expecting, but that's not always the case.




The first line will call the custom tag once, with executionMode =
"start", while the second line will call the custom tag twice, once
with executionMode = "start", and then again with executionMode =
"end".  This goes for CFMODULE calls as well.

cheers,
barneyb


On Thu, 3 Feb 2005 18:14:19 -0500, dave <[EMAIL PROTECTED]> wrote:
> 
> ok this is dumb but was just curious about something
> 
>  i have always done cfsets like suck
>  
> 
>  but i was just browsing through one of charlie griefers articles and i see 
> he closes the tag, like suck
>  
> 
>  the docs dont mention using a closing tag and i have never seen it before so 
> just curious
> 
>  :)
> 
> 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193002
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-03 Thread dave
actually that was my first thought but just making sure i wasnt missing 
anything 
 cause u know how im usually wrong


From: "Michael T. Tangorre" <[EMAIL PROTECTED]>
Sent: Thursday, February 03, 2005 6:19 PM
To: CF-Talk 
Subject: RE: cfset ? 

> From: dave [mailto:[EMAIL PROTECTED] 
> i have always done cfsets like suck
> 
> 
> but i was just browsing through one of charlie griefers 
> articles and i see he closes the tag, like suck
> 
> 
> the docs dont mention using a closing tag and i have never 
> seen it before so just curious

It is just XHTML style. It is just done for consistancy as the CF is
processed by the CF server then sent to the browser so the browser never
sees .

Mike



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193001
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfset ?

2005-02-03 Thread Dan O'Keefe
to be XHTML compliant I believe.

Dan


On Thu, 3 Feb 2005 18:14:19 -0500, dave <[EMAIL PROTECTED]> wrote:
> 
> ok this is dumb but was just curious about something
> 
>  i have always done cfsets like suck
>  
> 
>  but i was just browsing through one of charlie griefers articles and i see 
> he closes the tag, like suck
>  
> 
>  the docs dont mention using a closing tag and i have never seen it before so 
> just curious
> 
>  :)
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193000
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-03 Thread Michael Dinowitz
Totally not needed but some purists like to put them in. I don't.

> ok this is dumb but was just curious about something
> 
>  i have always done cfsets like suck
>  
> 
>  but i was just browsing through one of charlie griefers articles and i
> see he closes the tag, like suck
>  
> 
>  the docs dont mention using a closing tag and i have never seen it before
> so just curious
> 
>  :)
> 
> 
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192999
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset ?

2005-02-03 Thread Michael T. Tangorre
 

> From: dave [mailto:[EMAIL PROTECTED] 
>  i have always done cfsets like suck
>  
> 
>  but i was just browsing through one of charlie griefers 
> articles and i see he closes the tag, like suck
>  
> 
>  the docs dont mention using a closing tag and i have never 
> seen it before so just curious

It is just XHTML style. It is just done for consistancy as the CF is
processed by the CF server then sent to the browser so the browser never
sees .

Mike



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192998
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfset vs. cfsavecontent

2004-07-20 Thread Barney Boisvert
You're correct, it's not a bug, though it's not necessarily what you'd
expect.  Just think of CFSETTING as turning on a request-level flag (which
affects ALL templates in the request), indicating that nothing should be
output.

I'd recommend always putting generated content inside CFOUTPUT tags anyway.
And yes, that means that if you use CFOUTPUT query="" group="" that you'll
have to do some nasty tag nesting.  Of course, those loops don't happen a
lot (ungrouped loops with CFLOOP are the norm), so it's not a big deal.

Cheers,
barneyb

> -Original Message-
> From: Dave Carabetta [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 20, 2004 6:58 AM
> To: CF-Talk
> Subject: Re: cfset vs. cfsavecontent
> 
> On Tue, 20 Jul 2004 13:18:05 +0200, Hugo Ahlenius
> <[EMAIL PROTECTED]> wrote:
> > Personally I am never using CFSETTING ENABLECFOUTPUTONLY, 
> instead I am
> > using cfsilent (for plain templates) and output="no" for 
> cfc/cffunction.
> > 
> > Since the cfsetting/enabelcfoutputonly is set for the whole request,
> > until the cfsetting is changed, I feel that it breaks 
> encapsulation --
> > one loses control/overview over where it is set and not when using a
> > chain of includes. If it is used then I would use it 
> application-wide,
> > but for now I am happy with cfsilent!
> > 
> 
> I am not using cfsetting in the CFC -- I am using it in the calling
> code. In my CFC I have output="false" for the cfcomponent and all my
> cffunction tags. So I'm not breaking encapsulation, rather the CF
> engine is by applying the cfsetting in my calling code to my CFC as
> well. Perhaps this is a bug? That's not a rhetorical question -- I'm
> honestly not sure.
> 
> Regards,
> Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-20 Thread S . Isaac Dealey
> On Tue, 20 Jul 2004 13:18:05 +0200, Hugo Ahlenius
> <[EMAIL PROTECTED]> wrote:
>> Personally I am never using CFSETTING ENABLECFOUTPUTONLY,
>> instead I am
>> using cfsilent (for plain templates) and output="no" for
>> cfc/cffunction.
>>
>> Since the cfsetting/enabelcfoutputonly is set for the
>> whole request,
>> until the cfsetting is changed, I feel that it breaks
>> encapsulation --
>> one loses control/overview over where it is set and not
>> when using a
>> chain of includes. If it is used then I would use it
>> application-wide,
>> but for now I am happy with cfsilent!
>>

> I am not using cfsetting in the CFC -- I am using it in
> the calling
> code. In my CFC I have output="false" for the cfcomponent
> and all my
> cffunction tags. So I'm not breaking encapsulation, rather
> the CF
> engine is by applying the cfsetting in my calling code to
> my CFC as
> well. Perhaps this is a bug? That's not a rhetorical
> question -- I'm
> honestly not sure.

Well that's why he said it "breaks encapsulation" is because it
applies to the entire request -- if you happen to be using cfc's in
your request, then by golly, it applies to the CFC because it's part
of that request. You can of course choose to reset cfsetting within
your cfc methods if you feel you need to. I've been modifying a few of
my own templates recently and cosciously adding  around some
items I might normally not have because I realized that another
developer using the onTap framework might have enablecfoutputonly
active in their configuration, so I just output around anything I
think might get damaged by that. In my case it's not been terribly
difficult -- it's only a marginal handful of custom tags being used
for their end-tag syntax.

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-20 Thread Dave Carabetta
On Tue, 20 Jul 2004 13:18:05 +0200, Hugo Ahlenius
<[EMAIL PROTECTED]> wrote:
> Personally I am never using CFSETTING ENABLECFOUTPUTONLY, instead I am
> using cfsilent (for plain templates) and output="no" for cfc/cffunction.
> 
> Since the cfsetting/enabelcfoutputonly is set for the whole request,
> until the cfsetting is changed, I feel that it breaks encapsulation --
> one loses control/overview over where it is set and not when using a
> chain of includes. If it is used then I would use it application-wide,
> but for now I am happy with cfsilent!
> 

I am not using cfsetting in the CFC -- I am using it in the calling
code. In my CFC I have output="false" for the cfcomponent and all my
cffunction tags. So I'm not breaking encapsulation, rather the CF
engine is by applying the cfsetting in my calling code to my CFC as
well. Perhaps this is a bug? That's not a rhetorical question -- I'm
honestly not sure.

Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfset vs. cfsavecontent

2004-07-20 Thread Hugo Ahlenius
Personally I am never using CFSETTING ENABLECFOUTPUTONLY, instead I am
using cfsilent (for plain templates) and output="no" for cfc/cffunction.

Since the cfsetting/enabelcfoutputonly is set for the whole request,
until the cfsetting is changed, I feel that it breaks encapsulation --
one loses control/overview over where it is set and not when using a
chain of includes. If it is used then I would use it application-wide,
but for now I am happy with cfsilent!

--
Hugo Ahlenius

-
Hugo Ahlenius  E-Mail: [EMAIL PROTECTED]
Project Officer    Phone:+46 8 230460
UNEP GRID-Arendal  Fax:  +46 8 230441
Stockholm Office   Mobile: +46 733 467111
   WWW:   http://www.grida.no
- 



| -Original Message-
| From: Stephen Moretti (cfmaster) [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, July 20, 2004 12:30
| To: CF-Talk
| Subject: Re: cfset vs. cfsavecontent
|
| Dave Carabetta wrote:
|
| > >
| > > When I wrapped a CFSETTING ENABLECFOUTPUTONLY around it, though, I
| > got the
| > > same error you did.
| >
| > Interesting. On a hunch after looking through your sample above, I
| > switched back to cfxml and simply put cfoutput after the
| opening cfxml
| > and before the closing cfxml tag, and then did a cfreturn
| > toString(xmlObject) and it worked fine.
| >
| > At this point, I guess I need to settle on what's more
| intuitive for
| > the developer who comes after me, but that's a different matter.
| >
| I haven't tested this, but have you tried using cfsilent
| instead of "cfsetting enablecfoutputonly"?
|
| It may allow cfxml to work correctly without need to wrap it
| in cfoutput.
|
| Just a thought of something to try.
|
| Stephen
|
|
|
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-20 Thread Stephen Moretti (cfmaster)
Dave Carabetta wrote:

> >
> > When I wrapped a CFSETTING ENABLECFOUTPUTONLY around it, though, I 
> got the
> > same error you did.
>
> Interesting. On a hunch after looking through your sample above, I
> switched back to cfxml and simply put cfoutput after the opening cfxml
> and before the closing cfxml tag, and then did a cfreturn
> toString(xmlObject) and it worked fine.
>
> At this point, I guess I need to settle on what's more intuitive for
> the developer who comes after me, but that's a different matter.
>
I haven't tested this, but have you tried using cfsilent instead of 
"cfsetting enablecfoutputonly"?

It may allow cfxml to work correctly without need to wrap it in 
cfoutput.

Just a thought of something to try.

Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
On Mon, 19 Jul 2004 17:26:07 -0400, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> It does that because the features (cfsetting and cfsavecontent) are
> encapsulated from each other... cfsavecontent in particular doesn't do
> anything other than examine what's put into the output buffer and
> capture it out into a variable. So when you have cfsetting set to
> disable content to the buffer outside of cfoutput, no data reaches the
> buffer and therefore cfsavecontent doesn't "see" anything to capture.
> It is the same as if you were to put this in a custom tag:
> 
> 
> 
> 
> 
> 
> If nothing reaches the server's output buffer, then the
> thistag.generatedcontent variable would be empty, and cfsavecontent is
> the same way.
> 

Yeah, that's right in line with what Dave Watts said. I didn't realize
that these tags were implemented as custom tags (relative to other
tags like cfhttp). Knowing that makes all the difference.

Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
On Mon, 19 Jul 2004 17:32:35 -0400, Dave Watts <[EMAIL PROTECTED]> wrote:
> > I was trying to use that (that was my first attempt), but I
> > kept getting a "Document root element is missing" error using
> > the code below. If you happen to see anything wrong with the
> > below syntax, I'm all eyes, as that's the cleanest way to
> > write the code (mind you, I have no control over the XML
> > syntax, as it's the 3rd party's product).
> >
> >  
> >   
> >   
> > TOOL(PropertyCSV)/DATA_FILE
> >
> > #Variables.instance['CONSTANTS'].get('baseConfigFileMap
> > pedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.f
> > ileName#
> >   
> >   
> >   
> > TOOL(PropertyResults)/DATA_FILE
> >
> > #Variables.instance['CONSTANTS'].get('baseConfigFileMap
> > pedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.f
> > ileName#_Geocoded.csv
> >   
> > 
> > 
> 
> I was able to run this ok:
> 
> 
> 
> 
> 
> CFXML test
> 
> 
> 
> 
> 
> 
> 
>   
>   
> TOOL(PropertyCSV)/DATA_FILE
> test
>   
>   
>   
> TOOL(PropertyResults)/DATA_FILE
> test
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> When I wrapped a CFSETTING ENABLECFOUTPUTONLY around it, though, I got the
> same error you did.

Interesting. On a hunch after looking through your sample above, I
switched back to cfxml and simply put cfoutput after the opening cfxml
and before the closing cfxml tag, and then did a cfreturn
toString(xmlObject) and it worked fine.

At this point, I guess I need to settle on what's more intuitive for
the developer who comes after me, but that's a different matter.

Thanks for taking the time to help.

Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfset vs. cfsavecontent

2004-07-19 Thread Barney Boisvert
CFSETTING CFOUTPUTONLY="true" isn't stopping information from being sent to
the HTML stream, but rather it's stopping output from happening at all
(regardless if you'll catch the output before it hits the stream with your
application code).

I haven't checked a compiled template, but I'd imagine every time out output
something (static or dynamic), it ends up in a construct something like
this:

if (! request.isOutputSuppressed)
  out.write("my content");

In other words, before your compiled CF template will output anything, it'll
check to see if output is being suppressed, and if so, skip the outputting.
To get the behaviour you think is more intuitive, CF would have to output
everything, but somehow mark the sections that are within CFSETTING tags,
and then after your code is done generating the request, process the
generated content, and trim out all the bits that were marked as "to be
ignored".  

Cheers,
barneyb

> -Original Message-
> From: Dave Carabetta [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 19, 2004 2:14 PM
> To: CF-Talk
> Subject: Re: cfset vs. cfsavecontent
> 
> On Mon, 19 Jul 2004 14:02:33 -0700, Barney Boisvert
> <[EMAIL PROTECTED]> wrote:
> > You have output disabled with CFSETTING?  If so, you'll 
> need to wrap the
> > CFSAVECONTENT in a CFOUTPUT if you want the text to display.
> > 
> > Cheers,
> > barneyb
> > 
> 
> Thanks Barney, that was it. Out of curiosity, isn't that a bit
> counter-intuitive? I mean, the whole purpose (in this case, at least)
> is to write the contents to a variable to pass back from my CFC. If
> I'm not writing anything to the output stream in cfsavecontent call
> itself, why do I need the cfoutputs? Just curious.
> 
> Thanks again.
> 
> Regards,
> Dave.
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
On Mon, 19 Jul 2004 14:23:16 -0700, Ian Skinner
<[EMAIL PROTECTED]> wrote:
> Not 100% sure, but my first guess would be an arrant blank line.
> 
> 
> 
> 
> 
> encoding="UTF-8" standalone="no"?>
> 
> 
> 
seen/used with the cfxml tag cared if the root node was on the same
line as the opening cfxml tag, and they seem to work fine. However,
white space does indeed matter with cfsavecontent in my situation,
which is why I have the opening  declaration on the same line
as the opening cfsavecontent.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-19 Thread S . Isaac Dealey
> On Mon, 19 Jul 2004 14:02:33 -0700, Barney Boisvert
> <[EMAIL PROTECTED]> wrote:
>> You have output disabled with CFSETTING?  If so, you'll
>> need to wrap the
>> CFSAVECONTENT in a CFOUTPUT if you want the text to
>> display.
>>
>> Cheers,
>> barneyb
>>

> Thanks Barney, that was it. Out of curiosity, isn't that a
> bit
> counter-intuitive? I mean, the whole purpose (in this
> case, at least)
> is to write the contents to a variable to pass back from
> my CFC. If
> I'm not writing anything to the output stream in
> cfsavecontent call
> itself, why do I need the cfoutputs? Just curious.

It does that because the features (cfsetting and cfsavecontent) are
encapsulated from each other... cfsavecontent in particular doesn't do
anything other than examine what's put into the output buffer and
capture it out into a variable. So when you have cfsetting set to
disable content to the buffer outside of cfoutput, no data reaches the
buffer and therefore cfsavecontent doesn't "see" anything to capture.
It is the same as if you were to put this in a custom tag:


	
	


If nothing reaches the server's output buffer, then the
thistag.generatedcontent variable would be empty, and cfsavecontent is
the same way.

hth

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfset vs. cfsavecontent

2004-07-19 Thread Dave Watts
> I was trying to use that (that was my first attempt), but I 
> kept getting a "Document root element is missing" error using 
> the code below. If you happen to see anything wrong with the 
> below syntax, I'm all eyes, as that's the cleanest way to 
> write the code (mind you, I have no control over the XML 
> syntax, as it's the 3rd party's product).
> 
>  
>   
>   
> TOOL(PropertyCSV)/DATA_FILE
> 
> #Variables.instance['CONSTANTS'].get('baseConfigFileMap
> pedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.f
> ileName#
>   
>   
>   
> TOOL(PropertyResults)/DATA_FILE
> 
> #Variables.instance['CONSTANTS'].get('baseConfigFileMap
> pedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.f
> ileName#_Geocoded.csv
>   
> 
> 

I was able to run this ok:





CFXML test





 

  
  
    TOOL(PropertyCSV)/DATA_FILE
    test
  
  
  
    TOOL(PropertyResults)/DATA_FILE
    test
  











When I wrapped a CFSETTING ENABLECFOUTPUTONLY around it, though, I got the
same error you did.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfset vs. cfsavecontent

2004-07-19 Thread Ian Skinner
Not 100% sure, but my first guess would be an arrant blank line.

 



 

encoding="UTF-8" standalone="no"?>


 

standalone="no"?>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfset vs. cfsavecontent

2004-07-19 Thread Dave Watts
> Thanks Barney, that was it. Out of curiosity, isn't that a 
> bit counter-intuitive? I mean, the whole purpose (in this 
> case, at least) is to write the contents to a variable to 
> pass back from my CFC. If I'm not writing anything to the 
> output stream in cfsavecontent call itself, why do I need the 
> cfoutputs? Just curious.

The CFSAVECONTENT tag is implemented as a custom tag, I think - if you look
in WEB-INF\cftags, there's a file there called savecontent.cfm. I suspect it
has something to do with that. If you were writing your own custom tag to do
the same thing, you'd typically have some line like this:



I suspect the first part of that might not work in a CFSETTING block with
output disabled.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
On Mon, 19 Jul 2004 14:02:33 -0700, Barney Boisvert
<[EMAIL PROTECTED]> wrote:
> You have output disabled with CFSETTING?  If so, you'll need to wrap the
> CFSAVECONTENT in a CFOUTPUT if you want the text to display.
> 
> Cheers,
> barneyb
> 

Thanks Barney, that was it. Out of curiosity, isn't that a bit
counter-intuitive? I mean, the whole purpose (in this case, at least)
is to write the contents to a variable to pass back from my CFC. If
I'm not writing anything to the output stream in cfsavecontent call
itself, why do I need the cfoutputs? Just curious.

Thanks again.

Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: cfset vs. cfsavecontent

2004-07-19 Thread Dave Carabetta
On Mon, 19 Jul 2004 17:11:27 -0400, Dave Watts <[EMAIL PROTECTED]> wrote:
> > I have a CFC where I'm writing the contents of a config file
> > for a 3rd party engine. However, if I use cfsavecontent (my
> > preferred approach), the XML string never gets written.
> 
> Why not just use the CFXML tag? That's exactly what it's for, I think.
> 

I was trying to use that (that was my first attempt), but I kept
getting a "Document root element is missing" error using the code
below. If you happen to see anything wrong with the below syntax, I'm
all eyes, as that's the cleanest way to write the code (mind you, I
have no control over the XML syntax, as it's the 3rd party's product).



  
  
    TOOL(PropertyCSV)/DATA_FILE
    #Variables.instance['CONSTANTS'].get('baseConfigFileMappedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.fileName#
  
  
  
    TOOL(PropertyResults)/DATA_FILE
    #Variables.instance['CONSTANTS'].get('baseConfigFileMappedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.fileName#_Geocoded.csv
  



Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfset vs. cfsavecontent

2004-07-19 Thread Dave Watts
> I have a CFC where I'm writing the contents of a config file 
> for a 3rd party engine. However, if I use cfsavecontent (my 
> preferred approach), the XML string never gets written.

Why not just use the CFXML tag? That's exactly what it's for, I think.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




  1   2   >