> When I can't connect to a PC using cfhttp an error is thrown. 
> Typically, the message reads "The request has exceeded the 
> allowable time limit Tag:
> cfhttp" and this message is caught in a cftry/cfcatch block 
> and then emailed to me. No problems there.
> 
> But what I cannot figure out is why the web site page that 
> makes the cfhttp call 'breaks' and only portions of the 
> original page are shown when the error occurs leaving the 
> user to hit their back button. Can anyone help me with this? 
> I am at a loss.

You didn't post enough code, but my presumption is that you simply have a
CFTRY around your CFHTTP, and within that, a CFCATCH that sends the email.
By default, your page will continue executing after CFCATCH, and if you
don't have anything below that that'll work without the CFHTTP succeeding,
you should probably abort the processing of the page:

<cftry>

        ... problem code here ...

        <cfcatch type="whatever">
                ... your response to the problem ...
        </cfcatch>

</cftry>

.... the rest of your page, which will execute after the tried code works, or
after the CFCATCH works ...

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289998
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to