Skip to main content
anickb28622062
Participating Frequently
July 3, 2018
Answered

cfmessagebox

  • July 3, 2018
  • 1 reply
  • 3733 views

Hello, I would like to know if cfmessagebox works with version 5 of coldfusion, otherwise how to display a window with an error message in a modal window. several new browsers so Edge does not allow the display of a window without the address bar.

Thank you

    This topic has been closed for replies.
    Correct answer Charlie Arehart

    Charlie,

    Thank you for the clarification on the support dates.

    As to the onRequest() vs. onRequestStart(), you are correct that you must have a <cfinclude> in the onRequest() method to actually load the page requested like so:

    <cfinclude template="#ARGUMENTS.TargetPage#" />

     

    However, nothing prevents one from putting additional <cfinclude> tags either before or after the one that calls the TargetPage.  I have an application that has run for more than 10 years that had two or three additional <cfinclude> tags in it to load some common "chrome" to the site.  Should those have been in onRequestStart() instead?


    Ok, but I was neither saying nor implying the contrary.

    1 reply

    WolfShade
    Legend
    July 3, 2018

    Your best bet is to learn CSS, JavaScript, and use something like Bootstrap or W3 css for your modal needs.

    There is another thread in here about how the underlying JavaScript that ships with CF is old, outdated, not compliant with modern day browsers, and someone else pointed out that the latest version of CF removed the yui library (more JS).

    Seriously, using something like Bootstrap for modals is not as difficult to learn as you might think.  And, you'll learn something that can be used on any project.

    V/r,

    ^ _ ^

    anickb28622062
    Participating Frequently
    July 3, 2018

    Hello, first of all, thank you very much for your quick response. The problem with this solutuin is that my version of coldFusion is old and uses html4. As soon as I add something to the page the system does not run anymore.

    WolfShade
    Legend
    July 3, 2018

    CF5 does not use HTML4.  The programmer who developed the app/site used HTML4.  Browsers that have been out for the last year or so are HTML5 capable.  HTML doesn't have any affect on CF because CF is server-side and HTML is client-side.

    According to this Adobe page, CFMESSAGEBOX wasn't introduced until CF9.  So, your only route, now, is to use Bootstrap and JavaScript. 

    V/r,

    ^ _ ^