• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfexit

Explorer ,
Apr 11, 2012 Apr 11, 2012

Copy link to clipboard

Copied

This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fdd.html

Views

529

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 11, 2012 Apr 11, 2012

Copy link to clipboard

Copied

This note in the example is false: "If cfexit is used outside a custom tag, it functions like a cfabort." If cfexit is called from an included template, that particular template halts execution, but the parent template will continue execution (unless you use cfabort instead).

So, clearly cfexit and cfabort do not always function the same when used outside a custom tag.

I'd also imagine there's a good chance that Application.cfc:onRequestEnd() might still fire after a cfexit call, but not cfabort.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 07, 2012 Sep 07, 2012

Copy link to clipboard

Copied

LATEST

hi jamie,

I wondered if you new anything about popping a confirmation message when the user closes the browser.  I've found the window.onbeforeunload, but this applies to the links within the page.  thanks much.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation