Solved

Coldfusion (CFC's, Autosuggest, binding and Ajax)

Posted on 2009-05-10
1
776 Views
Last Modified: 2012-05-06
Hi,

I am fairly new to using CFC's and Ajax in Coldfusion and really enjoying the potential.

I found an autosuggest tutorial that works great for me.  It is here:

http://tutorial7.learncf.com/

I have a list of customers that I choose from our database using this method.  I start typing their name and I get a suggested list to choose from.  Upon choosing the name, it populates the form field with the value I setup in the CFC.  As expected.  

How can I have more than one field in the form I am working on auto populate?  Let's say that I choose the customer from the "auto suggest" field and when I click on them....it not only fills in that field, but 4 more fields(cfinput type="text") under it (account number, email address, shipping address, etc,..etc..)?

Thank You for any insight or info you can provide!

Tom
0
Comment
Question by:tomhwtt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
Jonah11 earned 500 total points
ID: 24359185
Hey Tom,

I'm not sure if the CFC autosuggest has built-in support for something like this, but one thing you could always do is simply create an onChange javascript function, and it would be called when the autosuggestion was selected and populated.  That function could then do an AJAX query to your database and select the other client information based on the name key, and then use the info to populate the other fields.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question