Hi there,
First I want to mention that I've been coding with Fusebox for many
years and now trying our Coldbox. That said, I'm stumped with a simple
loading of a view in another handler. When I load the view in the
"general.cfc" it works fine, but loading it in my own test.cfc fails
with an error message of "N/A"
Here is the code:
WORKING:
<a href="##" onclick="$('##thisdiv').load('#event.buildlink('general.mylink')#');">Test
link with jQuery</a>
<!--- ************************************************************* --->
<cffunction name="mylink" access="public" output="false">
<cfargument name="event">
<cfset event.setView("test",nolayout=true)>
</cffunction>
FAILING:
<a href="##" onclick="$('##thisdiv').load('#event.buildlink('test.mylink')#');">Test
link with jQuery</a>
test.cfc:
<cfcomponent name="test" extends="coldbox.system.EventHandler">
<!--- ************************************************************* --->
<cffunction name="mylink" access="public" output="false">
<cfargument name="event">
<cfset event.setView("test",nolayout=true)>
</cffunction>
</cfcomponent>
Di I have to tell Coldbox that I have an additional handler called
"test" (I thought it works by convention?). Or how do I get this
simple example working?
Thanks.
Kind Regards,
Nitai