Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
anclarke #1
Strange cffunction/cfsavecontent error
I have some code where I call a UDF and store the results in a variable using
cfsavecontent. Here's the code: <cfsavecontent
variable='rebateText'>#displayRebateTeaser(make_vc h=make_vch,model_vch=model_vch
)#</cfsaveContent> <cfif trim(rebateText) is not ''>#rebateText#<br /></cfif>
Then if that variable is not '', I display it. I know this is a roundabout way
of doing it and after repeatedly getting this problem I'll probably use a
different method, but I'd still like to figure out what's going on here. It
seems that once or twice a day, the
#displayRebateTeaser(make_vch=make_vch,model_vch=m odel_vch)# part of my file in
Dreamweaver gets replaced by: <MM:BeginLock translatorClass='MM_COLDFUSION'
type='DynExpr' depFiles=''
orig='%23displayRebateTeaser(make_vch=make_vch,mod el_vch=model_vch)%23'SOURCE='displayRebateTeaser(make_vch=make_vch,mode l_vch=model_vch)'><MM_DYNAMIC_CONTENT
DYNAMICDATA=1><MM:DECORATION HILITECOLOR='Dyn Untranslated
Color'>{text}</MM:DECORATION></MM_DYNAMIC_CONTENT><MM:EndLock> Does anybody
know what causes this or how to get around it? Thanks, - Andrew.
<cfsavecontent
variable="rebateText">#displayRebateTeaser(make_vc h=make_vch,model_vch=model_vch
)#</cfsaveContent>
<cfif trim(rebateText) is not "">#rebateText#<br /></cfif>
anclarke Guest
-
Contribute 3.1 and CFSaveContent
I have a website where all content is surrounded in a cfsavecontent. In contribute 3.0 and before a user was able to click on edit and modify the... -
Trouble using cffunction
Hi, I'm trying to use cffunction for the first time. My function looks like this: <cffunction name="getTitle"> <cfargument name="lineitem">... -
UDFs vs cffunction
Hi All, I'm very new to all this so sorry for the stupid questions and repeated topics etc. I find it easier to use UDFs than cffunctions... -
weird cfsavecontent problem
I have a page (mypage.cfm) which calls a CFC that outputs a query. mypage.cfm has cfsavecontent which saves a bunch of XML text to a variable. The... -
Calling a CFFUNCTION?
I am working on a form that has 3 drop down selection boxes. What I need to have happen is this: Once the first selection (Category) is made, the... -
Fug #2
Re: Strange cffunction/cfsavecontent error
Use Eclipse/CFEclipse instead :)
Seriously tho' - it's not a problem with your code, it's a problem with
Dreamweaver.
I recall having a similar problem some time ago, and the issue was something
like having configured DW to open CFM files in code view.
There is a good
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16511#sol2[/url] on
this...
Fug Guest



Reply With Quote

