Skip to main content
Inspiring
December 16, 2011
질문

using AJAX to show master-details results on same page

  • December 16, 2011
  • 1 답변
  • 726 조회

I have a registration page that gives a user a drop-down list of staff names, where the user chooses his/her name,

and then chooses and event and a date and then clicks "Submit." This action takes the user to an action page where several

responses are possible. We check to see if the user has already registered, and we check to see if the event is already full.

We also check to validate if the user selected the necessary fields. Appropriate messages appear, depending on the

database results. If the user needs to take an additional step, he/she is directed to hit the "Back" button and

choose another date, for example.

It seems that AJAX could do all this and show it on the single registration page. And when the user has completed

the registration successfully, then an appropriate message would appear right below the Submit button he/she

just clicked.

The action page connects to several different databases in order to process the registration. One connects to the staff list and verifies

the employee ID. A second checks the count of the event and whether this empID is already there.

Can ColdFusion, and perhaps JQuery, perform all this so that the user doesn't have to go to another page and then click

"Back"?

Json has something to do with this database call, and from the Google hits I've tried, I can't get data to flow back into the

AJAX container DIV. There's no error message(a Good Thing), but there's no data, either.

이 주제는 답변이 닫혔습니다.

1 답변

Inspiring
December 18, 2011

I finally got some error messages when I tried some simple Adobe Ajax examples. The problem is with ColdFusion Server v.9, and there is a hot fix available. On another network, I have a the most recent version of CF Server Developer edition, which has no problem displaying Ajax callbacks. Mystery solved.