>- see footer for list info -<
You're right in that I don't want to change the original page, and so 
far - using cfmodule. The scope of the variables in some of the 
underlying queries needs attention, though. Which can't be bad for the 
application in general.

Thanks
Terry

----- Original Message -----

> *From:* "Snake" <[EMAIL PROTECTED]>
> *To:* <[EMAIL PROTECTED]>, "'Coldfusion Development'" 
> <[email protected]>
> *Date:* Tue, 21 Oct 2008 22:29:58 +0100
> 
> Well I had assumed you wouldn't want to modify the original page as 
> it might
> break another part of the site. But I guess you can make a copy of 
> the CFM
> page and modify it for your requirements, or even turn it into a CFC, 
> thus
> leaving the original file intact, then you can migrate the rest of 
> the site
> to use the new CFC over time.
> 
> Russ
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Terry Riley
> Sent: 21 October 2008 17:43
> To: [email protected]
> Subject: RE: [CF-Dev] Executing basic .cfm pages from within a CFC
> 
> >- see footer for list info -<
> Thanks, Russ.
> 
> I've ended up using <cfmodule> with attributecollection, which seems 
> > to encapsulate most of what people have been suggesting, one way or 
> another.
> 
> It doesn't help that some of the queires called from the action page  
> code are going to have to be updated - some of the variable scopes 
> are non-existent (they work with the current code, but not when 
> approached from 'outside').
> 
> Cheers
> Terry
> 
> ----- Original Message -----
> 
> > *From:* "Snake" <[EMAIL PROTECTED]>
> > *To:* <[EMAIL PROTECTED]>, "'Coldfusion Development'" 
> > <[email protected]>
> > *Date:* Tue, 21 Oct 2008 14:29:27 +0100
> > 
> > In the cfc just declare whatever attributes the CFM page needs then 
> > simply
> > cfinclude it
> > 
> > So presuming the cfc will be passed the required arguments if it 
> > will be
> > called as a web service, you would do something like
> > 
> > <cfset url.whatever = arguments.whatever>
> > <cfinclude template="mycfmpage.cfm">
> > 
> > The next question would of course be, does the cfm page generate 
> > what you
> > need to return from the CFC?
> > If it is generating content, then you can just wrap the cfinclude 
> > in a
> > cfsavecontent.
> > 
> > 
> > --
> > Russ Michaels
> > Certified ColdFusion Professional
> > My Blog: www.russ.michaels.me.uk
> > Tel: 0845 8620034
> > Fax: 07092 300330
> > Skype: russmichaels
> > 
> > Commerical ColdFusion & BlueDragon Hosting: www.cfmxhosting.co.uk
> > FREE CFML Developer hosting : www.cfdeveloper.co.uk
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Terry Riley
> > Sent: 21 October 2008 12:22
> > To: [email protected]
> > Subject: [CF-Dev] Executing basic .cfm pages from within a CFC
> > 
> > >- see footer for list info -<
> > OK, total ignorance time again...
> > 
> > Client has standard (but relatively complex) CF application running 
> > on 6.1, which uses NO cfcs and very little in the way of OO stuff 
> > at all - it is all procedural top-to-bottom stuff.
> > 
> > An external organisation has been granted access to the site and 
> > wants to utilise some of the functionality built into at least one 
> > of the current .cfm pages (where a set of data update functions 
> > will be carried out) through a webservice, expecting a returned 
> > success/fail. 
> > (The updated data will be later available also via a webservice - 
> > but that is a relatively simple query and query result return - 
> > I've already done this).
> > 
> > My problem is, I see no way of executing a .cfm page (it is an 
> > action page that is called by many processes, lots of cfswitches) 
> > with or without parameters, without having to rewrite the page as a 
> > cfc.
> > 
> > Is that a correct assumption, or is my brain simply failing me 
> > today?
> > 
> > Cheers
> > Terry
> > http://www.confexdb.co.uk/
> > 
> > 
> > -- 
> > No virus found in this outgoing message.
> > Checked by AVG. 
> > Version: 7.5.549 / Virus Database: 270.8.2/1735 - Release Date: 
> > 20/10/2008
> > 14:52
> > 
> > 
> > 
> > _______________________________________________
> > 
> > For details on ALL mailing lists and for joining or leaving lists, 
> > go to
> > http://list.cfdeveloper.co.uk/mailman/listinfo
> > 
> > --
> > CFDeveloper Sponsors:-
> > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
> > >- Lists hosted by www.Gradwell.com -<
> > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
> > help -<
> > 
> > 
> > 
> > 
> > 
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG. 
> > Version: 7.5.549 / Virus Database: 270.8.2/1735 - Release Date: 
> > 20/10/2008 14:52
> > 
> > 
> 
> 
> Terry
> http://www.confexdb.co.uk/
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG. 
> Version: 7.5.549 / Virus Database: 270.8.2/1735 - Release Date: 
> 20/10/2008
> 14:52
> 
> 
> 
> _______________________________________________
> 
> For details on ALL mailing lists and for joining or leaving lists, go 
> to
> http://list.cfdeveloper.co.uk/mailman/listinfo
> 
> --
> CFDeveloper Sponsors:-
> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
> help -<
> 
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 7.5.549 / Virus Database: 270.8.2/1738 - Release Date: 
> 21/10/2008 14:10
> 
> 


Terry
http://www.confexdb.co.uk/


-- 
No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.549 / Virus Database: 270.8.2/1738 - Release Date: 21/10/2008 14:10



_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to