I've crawled inside and out of the documentation for how to
pass html form data to a cfc and display the result (see
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_15.html)
but -- possibly due to "If the CFC returns a result using the
cfreturn tag, ColdFusion converts the text to HTML edit format,
puts it in a WDDX packet, and includes the packet in the HTML that
it returns to the client." -- I cannot find any way to display the
results of passing info either by form or URL ( all that happens on
form submit is this url
http://70.XX.XX.XX:8500/olo/cfc/SearchOwners.cfc?method=getEmp
in the address bar and a completely empty screen).
My .CFM FIle:
<h2>Find People</h2>
<form action="../cfc/SearchOwners.cfc?method=getEmp"
method="post">
<p>Enter employee's last Name:</p>
<input type="Text" name="lastName">
<input type="Hidden" name="method" value="getEmp">
<input type="Submit" title="Submit Query"><br>
</form>
My .CFC File
<cfcomponent>
<cffunction name="getEmp" access="remote">
<cfargument name="lastName" required="true">
<cfset var empQuery="">
<cfquery name="empQuery" datasource="OLO">
SELECT *
FROM owners
WHERE family_name = '#arguments.lastName#'
</cfquery>
<cfoutput>Results filtered by
#arguments.lastName#:</cfoutput><br>
<cfdump var=#empQuery#>
</cffunction>
</cfcomponent>
Yet this invoke cfm works no problem returning results
<body>
<!--- Invoke Component. --->
<cfinvoke component="olo.cfc.SearchOwners"
method="getEmp" returnvariable="qResult">
<cfinvokeargument name="lastName" value="name"/>
</cfinvoke>
</body>
I SERIOUSLY will appreciate anyone who can help . . . . .
.