Strange cffunction/cfsavecontent error

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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'
    ><MM_DYNAMIC_CONTENT
    SOURCE='displayRebateTeaser(make_vch=make_vch,mode l_vch=model_vch)'
    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

  2. Similar Questions and Discussions

    1. 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...
    2. 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">...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139