Ask a Question related to Coldfusion Database Access, Design and Development.
-
msergel #1
Calling CodeFusion Code From a Data Source
:confused; Right now, I'm storing HTML code in a field, calling the field into
my page with <cfoutput>. This works like a charm. I would like to do the same
with my ColdFusion code, (if user clicks Home, the stored code executes in the
content section of the page) but it doesn't seem to work.
I want to set up 1 page for most of our content. I want to call the code from
my table, and have it run. Is there a way to do this? My hosting company is
using ColdFusion 7.
msergel Guest
-
Why doesn't the Code Completion occur in FlexBuilder IDEwhen source code is in an external file?
I am seperating my .as from the MXML by using the following in my file.mxml: <mx:Script source="file.as"> When I edit file.as, the code... -
ASP Source Code
Dear Friends We have Developed an Web Application by ASP. We are looking for a Technical Company for Our Source Code Testing... -
SCO, Open Source and the Un*x source code
On Sat, Jul 19, 2003 at 04:51:08PM +0000, tony@aplawrence.com wrote: .... Isn't SCO claiming that they own all the Unix IP in the world :-). ... -
Get source code
Hi. I'd like to get the source code from a web site (I mean the code we can watch once we click on the "view source" option in the IE). Is it... -
Security problem with Managed Code calling Unmanaged Code in a Web Page
Hello, I have a web page which contains an ActiveX control (unmanaged) and a Windows Forms User Control (managed). Both reside on a web page and... -
s0mus #2
Re: Calling CodeFusion Code From a Data Source
This is a bad idea. Why are you trying to build your website like this?
s0mus Guest
-
msergel #3
Calling CodeFusion Code from a Data Source
:confused; I can store plain HTML in my table, call it and have it display. I
would like to do the same thing with my ColdFusion coding, but it seems to get
confused. Is there something I can do to have the CF code in my table execute?
This would make my website much simpler. If the Home link is clicked, this code
runs in the content section. If links is clicked, this code runs.... A one page
website instead of over 100 pages.
msergel Guest
-
Simon Dallmair #4
Re: Calling CodeFusion Code from a Data Source
"msergel" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
news:d2m9bm$8vp$1@forums.macromedia.com...display. I> :confused; I can store plain HTML in my table, call it and have itget> would like to do the same thing with my ColdFusion coding, but it seems toexecute?> confused. Is there something I can do to have the CF code in my tablecode> This would make my website much simpler. If the Home link is clicked, thispage> runs in the content section. If links is clicked, this code runs.... A oneHi,> website instead of over 100 pages.
have a look at the evaluate() function. This will execute a String
containing a ColdFusion Statement. Your DB-Content is only a String - you
can execute it. But: Your App will get much slower cause the Templates you
store in the Database cannot really be cached. (Java Files, MX6 and above).
:-)
cu
Simon Dallmair Guest
-
msergel #5
Re: Calling CodeFusion Code From a Data Source
Thank you. That was my initial plan, but that will still involve having a 100
little cfcs or cfms. Whereas if I could store the code in a datafile, I have 1
table to update/reference. I was hoping there was a funtion or tag out there
would have the code run when it's called.
msergel Guest
-
gregsohl #6
Re: Calling CodeFusion Code From a Data Source
See the 'evaluate' function
gregsohl Guest
-
jdeline #7
Re: Calling CodeFusion Code from a Data Source
If I understand you correctly, the following is the sequence of steps that
occur:
1. Your browser requests go.cfm from the Web server.
2. The Web server sees the .cfm file extension and invokes the ColdFusion
server.
3. The ColdFusion server processes go.cfm, retrieving a ColdFusion page from
the database.
Are you expecting ColdFusion to then execute the data it just retrieved?
Don't think so.
jdeline Guest
-
OldCFer #8
Re: Calling CodeFusion Code from a Data Source
The reason you can do it in HTML is because your browser knows how to handle
HTML. In Coldfusion the CF server executes the CF code and sends a page that
displays
properly in your browser. What you would have to do is read the CF code from
the database,
write it to a .cfm template, then cfinclude that template is the template that
is currently
executing.
OldCFer Guest



Reply With Quote

