'com.image' implies that the image.cfc component is in a directory named
'com'.
To do the simplest test, put the image.cfc in the same directory as the .cfm
file you are using.
Then to invoke the object:
<cfset imageCFC = createObject("component","image") />
If you have image.cfc in a directory called 'CFC' that is in the same
directory as your .cfm file, then do...
<cfset imageCFC = createObject("component","cfc.image") />
If you want to put components in another directory, you can add a mapping in
the CF Administrator.
On 7/1/06, B V <[EMAIL PROTECTED]> wrote:
>
> Ok, this really clears thigns up, however I just have two questions:
> 1). Is some special installation required to access the methods of the
> component liek shown
> 2). Do you have to call the component (cfinvoke), or can you just call it
> by
> <cfset imageCFC = createObject("component","com.image") />, and also is
> com.image predefined?
>
> On 7/1/06, James Holmes <[EMAIL PROTECTED]> wrote:
> >
> > OK, so what (doesn't) happen(s)?
> >
> > On 7/1/06, B V <[EMAIL PROTECTED]> wrote:
> > > That's partly the problem; There is NO error message.... I thought
> maybe
> > it
> > > could be paths, but I checked paths and set the dir to 777 file
> > permissions
> > > (I'm on LNX)
> > >
> > > On 7/1/06, James Holmes <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Can you post the specific error message?
> > > >
> > > > On 7/1/06, B V <[EMAIL PROTECTED]> wrote:
> > > > > Ok, I have followed the example, and this is my new code:
> > > > > <cfset imagecfc = createObject("component","image")>
> > > > > <cfset results2 = imageCFC.scaleX("",
> > "/vservers/dir/htdocs/img/ph.jpg",
> > > > > "/vservers/interech/htdocs/img/ph.jpg", 400)>
> > > > > However, that hasn't worked either. Am I supposed to invoke a CFC
> or
> > > > install
> > > > > something on the server also? (I have already put image.cfc in my
> > cfc
> > > > dir)
> > > >
> > > > --
> > > > CFAJAX docs and other useful articles:
> > > > http://jr-holmes.coldfusionjournal.com/
> > > >
> > > >
> > >
> > >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245215
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54