0 Replies Latest reply: May 31, 2012 8:02 PM by Phinehas1234 RSS

    ColdFusion.navigate call JS function

    Phinehas1234 Community Member

      Hi,

       

      I use ColdFusion.navigate to call a cfc method. In this function, it loads a list from database and set the div innerhtml to the list content.

       

      Then, get the list and it can do the confirmation function.

       

      However, I find that it always call the confirmation function before loading the list complete.

       

      What I use is the following:

      ColdFusion.navigate('cfc/control.cfc?method=findSimilarName&new_name='+encodeURIComponent( document.getElementById('name').value),'tempMessage', confirmUpdate(i));

       

      findSimilarName method will set the similar name list to a div named similarName. And I will use it to do the confirmation.

       

      Is there any method to force ColdFusion.navigate calling my confirmation function after the findSimilarName method completed?