bluedragon

Calling a variable with a variable in its name - coldfusion?

烂漫一生 提交于 2019-12-20 03:10:35
问题 Attempting to use squarebracket notation to reference a dynamic variable. (I'm looping through a set of product created by a query, creating fields for each tied to their unique SKU, if you're wondering about application) I've narrowed it down to this chunk of code, which throws an "Invalid Expression" error when I try and run it. <cfif FORM["QTY_" & SKU] NEQ ''> <div class="sopQty"><input type="number" min="0" name="QTY_#SKU#" value = "#FORM['QTY_' & SKU]#" /></div> <cfelse> <div class=

Blue Dragon Coldfusion server cache issue

爱⌒轻易说出口 提交于 2019-12-10 17:45:11
问题 I have an application build in ColdFusion MVC framework "Mach-II" and hosted on blue dragon ColdFusion server. It causes caching issue. When i added a new page with some contents and load the page than it's working fine. But when i made some changes in the same file and hit it again its not update my changes. Its always showing me the content that i have made in the very first time. Its seems like that the server is caching my page and did not consider further changes. I have tried many

Calling a variable with a variable in its name - coldfusion?

大兔子大兔子 提交于 2019-12-01 22:48:29
Attempting to use squarebracket notation to reference a dynamic variable. (I'm looping through a set of product created by a query, creating fields for each tied to their unique SKU, if you're wondering about application) I've narrowed it down to this chunk of code, which throws an "Invalid Expression" error when I try and run it. <cfif FORM["QTY_" & SKU] NEQ ''> <div class="sopQty"><input type="number" min="0" name="QTY_#SKU#" value = "#FORM['QTY_' & SKU]#" /></div> <cfelse> <div class="sopQty"><input type="number" name="QTY_#SKU#" /></div> </cfif> The goal is to pass the value on from the