1 Reply Latest reply on Sep 20, 2010 3:54 PM by ilssac

    Calling CFM from Ajax Display

    sockerdad Level 1

      I am using a demonstration of a CF Organization Chart (downloaded from http://www.cfdan.com/index.cfm?tag=CFOrgChart).

       

      There has been some customization (increasing the number of fields on the database from 2 to 7, for example) and overall, it works great.

       

      I have built a ColdFusion front end that allows the user to view the chart, add, change and delete the various nodes.  Dan's example includes teh capability to perform the same functions from the org chart itself by clicking on two icons that appear on mouse over, and teh edit by double-clicking the node box.  Again it works.

       

      Now the problem:

       

      When I perform any of the add/change/delete functions from the org chart display screen, it doesn't jump to the CFM Form page for the data entry, but kind of incorporates it into the org chart.  See my screen shot for an example:

       

      Org Chart Screen Print.jpg

       

      The stuff in the center (blue banners) should be a new page...

        • 1. Re: Calling CFM from Ajax Display
          ilssac Level 5

          sockerdad wrote:

           

          When I perform any of the add/change/delete functions from the org chart display screen, it doesn't jump to the CFM Form page for the data entry, but kind of incorporates it into the org chart.

          ...

          The stuff in the center (blue banners) should be a new page...

           

          That is the usual intention of using AJAX.  The purpose for the creation of the xmlHttpRequest() was to be able to make HTTP requests in JavaScript and handle it behind the scenes, so that the entire web pages does not need to be refreshed.

           

          If you do NOT want this, then I would probably not bother with AJAX functionality.