hello
thanks for all the input on different issues i have presented in this list.
this is really THE place for CF stuff.
right now i am having a really particular issue with coldfusions whitespace.
i will try and explain as much as i can:
1- i have a few CFCs (calling each other, extending each other)
2- one CFC function is a wrapper to another (a shorthand version) and their
object is returning texts for dialog boxes and javascripts
3- more or less the cf:
<cffunction name="m" hint="shortcut for showMessage">
<cfargument name="message" type="string">
<cfargument name="block" type="string" default="">
<cfreturn this.showMessage(arguments.message, arguments.block)>
</cffunction>
<cffunction name="showMessage" hint="return message">
<cfargument name="message" type="string" default="">
<cfargument name="block" type="string" default="">
<cfscript>
// return message
return this.lang_data[_block][arguments.message];
</cfscript>
</cffunction>
theres more CFML (especially in showMessage) but just so you get an idea.
i am outputting texts using something like:
<cfoutput>#obj.m("special_string")#</cfoutput> where "special_string" is
some string i use in showMessage to detect stuff (it is a multi-language app
with a lot of parametrization)
the problem:
i am getting A LOT of whitespace. whenever i use those (and other) functions
it breaks all javascript (that is also dynamically created with CF and those
functions). tried using CFSETTING but i simply cannot put that many
cfoutputs all over the place (tried also combining m and showMessage in
one). one way i "solved" it was using <cfset myvar =
obj.m("special_string")> someplace before the javascript and then just
outputting #myvar# in the javascript. the problem is i have A LOT of CFC
invocations (a single page can have 60+ and i have a few dozen pages) and it
just would not make sense. i am looking for a way to minimize/eliminate
whitespace generated when invoking functions.
i really need this to work (will share the app as soon as i have it
finished... its actually finished but the javascript is breaking...
whitespace solved EQ app finished)
i will appreciate any help on this issue
thanks a lot
- mga
_________________________________________________________________
Help protect your PC: Get a free online virus scan at McAfee.com.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm