Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Calling CFM from Ajax Display

Explorer ,
Sep 20, 2010 Sep 20, 2010

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...

TOPICS
Advanced techniques
466
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Sep 20, 2010 Sep 20, 2010

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

...
Translate
Valorous Hero ,
Sep 20, 2010 Sep 20, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources