Try CFTry and CFCatch

<cftry>
        <cfcatch type="MissingInclude">
                <cfinclude template="yoohoo.cfm">
        </cfcatch>
</cftry>

Duane Boudreau
CFExperts.Com


> -----Original Message-----
> From: Jim Priest [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 27, 2000 8:32 AM
> To: [EMAIL PROTECTED]
> Subject: grabbing an error from cfinclude
>
>
> I've got our intranet homepage grabbing headlines from
> Moreover.com.  Basically I'm pulling those down and using cfschedule to
> create a static page which I cfinclude into my homepage.
>
> Unfortunately every once in awhile either moreover or cfschedule
> hangs and
> my cfinclude bombs...
>
> Is there a way I can wrap that cfinclude to first see if it exists and if
> not then display some alternate code - otherwise the whole page bombs and
> that doesn't go over well with the users... :)
>
> Thanks
> Jim
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with
> 'unsubscribe' in the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to