Is there a simple way to make cfwddx tag a CF variable as Boolean? If the
value of a variable is simply "TRUE" or "FALSE", cfwddx just creates a
string value out of it. However, if you use an isSomething() function, the
XML in the WDDX packet will show that the value is Boolean.

Example:

This:

Plain Text:
HTML: <cfset bMyVar = TRUE>

Will give me:

Plain Text: <cfset bMyVar = TRUE>
HTML: &lt;var name='BMYVAR'&gt;&lt;string&gt;TRUE&lt;/string&gt;&lt;/var&gt;

But:

Plain Text: <cfset iif(TRUE,"bMyVar = isBoolean(TRUE)","bMyVar =
isBoolean('non-boolean')")>
HTML: &lt;cfset iif(TRUE,&quot;bMyVar = isBoolean(TRUE)&quot;,&quot;bMyVar =
isBoolean('non-boolean')&quot;)&gt;

Gives me:

Plain Text: <var name='BMYVAR'><boolean value='true'/></var>
HTML: &lt;var name='BMYVAR'&gt;&lt;boolean value='true'/&gt;&lt;/var&gt;

Any ideas on an easier way to make cfwddx recognize Boolean variables would
be appreciated.

Thanks!

Jason Aden
webworld studios, Inc.
[EMAIL PROTECTED]

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to