Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jpesolutions #1
CFCs & Dot Notation
Here is what I have. A CFC with filename amCurPatientCount.cfc which is
located in the "components" folder under the webroot. I have been able to
successfully call this component from the index.cfm page located just under the
root using the following tag:
<cfinvoke component="components.amCurPatientCount" method="countPatients"
returnvariable="curPatients">
How would I change this so that I could use it on a page that is located in a
folder titled "patients" that is under the root folder? I thought that I could
just use the same code as above but got an error message that it could not find
the component amCurPatientCount.cfc in the components folder. I don't know how
to do a "../" to go up one directory in dot notation.
Thanks,
Jason
jpesolutions Guest
-
E4X dot notation
I just got the Adobe Flex 3 "Training from the Source". I am trying to get the E4X dot notation working and the book has an excellent example for... -
Using Literal Object notation instead of XML
I am writing an application for pocket pc that heavily exchanges data with server. I tried using XML, but XML object crashes Flash too often. My... -
component dot notation
I have a component in a subdirectory of my website, lets say widget.cfc, the full path on my linux (SuSE 8.2) box is... -
php and number notation
Hi, I have written my first PHP script, albeit one thats only about 10 lines long. It is one of a number of small procedures that I'd written... -
ActionScipt notation.
Hi, From old habbit I have always used to write function like this: function(){ //some code } But i see in tutorials and other places the... -
PaulH #2
Re: CFCs & Dot Notation
that should work. double check your file/dir names.
javaRB.cfc in /blackstone dir can be called via
<cfinvoke component="blackstone.javaRB" method="isOK" returnvariable="t">
from a cf page in dir /testCF/test/
it also might be simpler to move your CFC dir off the webroot and create a
mapping for it in cfadmin.
PaulH Guest



Reply With Quote

