Hey Spike,

hows things?  heres a Q for ya.... have you ever worked or developed an
Instant Messenger style client with ColdFusion? Oh, pre-MX and FlashCom ;-p

N



-----Original Message-----
From: Spike [mailto:[EMAIL PROTECTED]]
Sent: 01 August 2002 11:28
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] CFMX Invoke


Do you have a coldfusion mapping calle '/' pointing to the webroot
directory.

If not then I'd guess that's what the problem is.

The component attribute of the cfinvoke tag works a bit like the
template attribute of the cfmodule tag.

i.e.

<cfmodule template="/extremeCF/employeemgr.cfm">

would look like

<cfinvoke component="extremeCF.employeemgr"...

You drop the first slash and replace the rest of them with '.'

This is just an example, trying to invoke employeemgr.cfm won't work,
because it's not a cfc, but hopefully you get the idea of how pathing
works for the cfcomponent tag.

Spike


> -----Original Message-----
> From: Douglas Humphris [mailto:[EMAIL PROTECTED]] 
> Sent: 01 August 2002 12:13
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] CFMX Invoke
> 
> 
> Okay folks, I don't understand this cfinvoke component carry on...
> 
> I've got one of the MM demo apps which calls:
> <cfinvoke 
>  component="extremeCF.employeemgr"
>  method="listEmployee"
>  returnvariable="listEmployeeRet">
> </cfinvoke>
> 
> the cfc sits in the same dir as the cfm template - just as it 
> came, and the whole app sits in wwwroot/extremeCF/ just like 
> it's supposed to... but when I run it, I get "Could not find 
> the template extremeCF.employeemgr". Does the reference to 
> the component require an absolute path from the webroot (in 
> which case, extremeCF.employeemgr is correct) or does it 
> require a relative path from the calling template (in which 
> case, I put employeemgr into a sub folder called extremeCF). 
> In both cases, the script fails, but if I change the cfinvoke to:
> 
> <cfinvoke 
>  component="employeemgr"
>  method="listEmployee"
>  returnvariable="listEmployeeRet">
> </cfinvoke>
> 
> then it all works! Why is this? Surely this implies that it's 
> a relative path that's required, but why does it not work 
> when employeemgr.cfc is in a sub folder called extremeCF from 
> the calling cfm template?
> 
> Confused? I am!
> Douglas
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to