The only other thing I can think to try is to create a mapping to your
cfc directory and call it cfc or whatever else you would like to call
it. Then you can reference it as cfc.products.

Ben

-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:34 PM
To: CF-Talk
Subject: RE: Simple CFC question

Yes, I did try your suggestion here, but it didn't work.

Thanks, Mark

  _____  

From: Ben Densmore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:21 PM
To: CF-Talk
Subject: RE: Simple CFC question

Have you tried mysite.admin.store.cf-inf.cfc.products? Maybe your
webroot is just c:\inetpub?

Ben

-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:17 PM
To: CF-Talk
Subject: RE: Simple CFC question

When I put the cfc in the same directory as the cfm page calling it, the
cfc
works correctly and the cfm page displays as it should.

I tried the ## around the component name as you suggest without success,
still throws that CF can't find the component.

I checked the cfc file location again, just to make sure:

C:\inetpub\mysite\admin\store\cf-inf\cfc\products.cfc

Thanks, Mark

  _____  

From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 5:00 PM
To: CF-Talk
Subject: RE: Simple CFC question

When you use cfinvoke on an instance, you need to pass the instance, not
the
name of it.

Change

cfinvoke component="object" ...

to

cfinvoke component="#object#" ...

-Raymond Camden

> -----Original Message-----
> From: Mark Leder [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 2:57 PM
> To: CF-Talk
> Subject: RE: Simple CFC question
>
> For some reason I still can't get it to work, error thrown
> says it can't find the component - i checked to make sure it
> was posted and correct spelling.
>  
> Here's what I've done:
>  
> <cfset object = createObject("component",
> "admin.store.cf-inf.cfc.products")
> />
> <cfinvoke component="object" method="ListProducts"
> returnvariable="qProducts">
>  
> Thanks, Mark
>  
>
>   _____  
>
> From: Ben Densmore [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 3:45 PM
> To: CF-Talk
> Subject: RE: Simple CFC question
>
>
> If C:\inetpub\mysite is your web root then you should be able to
> reference it like <cfset object = createObject("component",
> "admin.store.cf-inf.cfc.products") />
>
> Ben
>
> -----Original Message-----
> From: Mark Leder [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 3:31 PM
> To: CF-Talk
> Subject: Simple CFC question
>
> New to CFC's. Trying to use dot notation to point to a cfc in a
> directory.
> Been reading docs and trying different things.  The docs state it's
> relative
> to the webserver root.
>
> Can't it to work.  How do I write it?
>
> The cfc is in this absolute directory path:
>
> C:\inetpub\mysite\admin\store\cf-inf\cfc\products.cfc
>
> Thanks, Mark
>
> ________________________________
>   _____  
>
>
>
>
  _____

________________________________
  _____

________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to