You can create functions to modify the message before calling the ajax load, which can set the message and image to a new value.
function loadingOrder(){ _cf_loadingtexthtml="Loading Order Form <image src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'>"; } function loadingNavigation(){ _cf_loadingtexthtml="Loading Menu <image src='/CFIDE/scripts/ajax/resources/cf/images/loading_nav.gif'>"; }
(in the end, they will be translated into one function, which will take both the text_value parameter and the image_path parameter)
In some of my processes that load both the main and left nav cfdiv, I use this function:
function locateCreateOrder(){ loadingOrder(); ColdFusion.navigate('/functional_areas/orders/orders_actions/cf9_act_orders_index.cfm','main_content'); loadingNavigation(); ColdFusion.navigate('/functional_areas/products/products_actions/cf9_products_menu.cfm','left_menu'); }
source share