0
我有2个文件:test.cfc和test.cfm。当我点击test.cfm
提交按钮,我收到以下错误:将一个javascript表单对象传递给远程CFC
"error: Object doesn't support this property of method".
我知道它有什么做的passForm
函数内部形式的参考。但经过数小时的Google搜索后,我仍然无法解决错误。有什么建议?
test.cfc
<cfcomponent>
<cffunction name="getForm" returntype="String" access="remote">
<cfargument name="theForm" type="struct">
</cffunction>
</cfcomponent>
test.cfm
<cfajaxproxy cfc="ajaxFunc.test" jsclassname="testCFC">
<script>
function passForm(theForm)
{
try
{
var e = new testCFC();
message = e.getForm(theForm);
ColdFusion.navigate('', 'myDiv');
}
}
</script>