Skip to main content
September 28, 2009
Question

Customize Ajax Loading Message

  • September 28, 2009
  • 3 replies
  • 769 views

I have multiple CFDIVs on my page that load various elements and I'd like to customize the Loading message for each CFDIV.  Is there a way to do this?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    BKBK
    Community Expert
    Community Expert
    September 28, 2009

    Sure. You can embed the  tag on a page in the form:

    <cfdiv style="etc" bind="url:example.cfm">

    You can then either use the style attribute to customize the DIV's content, or customize the style of the page example.cfm. Unless, of course, you mean something else when you say customize.

    September 28, 2009

    No, actually what I'm trying to customize is the "Loading..." message that appears before the div completes loading.  I'd like to say "XXModule Loading" with the busy animated gif instead of just "Loading..." which appears for every cfdiv until it's loaded.

    BKBK
    Community Expert
    Community Expert
    September 29, 2009

    I think it has to do with the line

    m['loading']='Loading...'

    in the script /CFIDE/scripts/ajax/messages/cfmessage.js. Be aware that this is a generic system script for the entire application server. Changing it would likely affect the message displayed in other tags or functions.