Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

specified CFC could not be found

Status
Not open for further replies.

LyndonOHRC

Programmer
Sep 8, 2005
603
US
Googled this for several hours, hope I'm missing the obvious as usual...

I'm using CF9 and IIS7. Followed/tailored simple autosuggest code from Ben Forta.

Came up with HTML:

Code:
<cfinput type="text" name="Employer" size="50" autosuggest="cfc:employer.lookupEmployer({cfautosuggestvalue})">

and a CFC named employer.cfc in the current template folder:

Code:
<cfcomponent output="false">
	<cffunction name="lookupEmployer" access="remote" returntype="array">
		<cfargument name="search" type="any" required="false" default="">
		<cfset var data="">
		<cfset var result=ArrayNew(1)>
		<cfquery name="data" datasource="Binkley">
			Select lname
			From tdLicense
			Order By lname
		</cfquery>
		<cfloop query="data">
			<cfset ArrayAppend(result, lname)>
		</cfloop>
		<cfreturn result>
	</cffunction>
</cfcomponent>

The query runs fine in a test cfm file.
Any help appreciated.

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
i created a test file to include the cfinput within a cfform. copy+pasted your cfc, changed your query, and everything run fine. can you create a test page and hit this cfc directly?

ColdFusion Ninja for hire.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top