1
CFM과는 cfform 값을 변경동적 바인딩 출력을위한 자바 스크립트
<html>
<head>
<title>Test Page</title>
<script type="text/javascript">
function toggleV(value){
document.getElementById('blah').value = value;
}
</script>
</head>
<body>
<cfform name="coolfrm">
<cfinput type="hidden" name="blah" id="blah" value="default">
<a onclick="toggleV('anothervalue')" style="cursor:pointer;">click Me</a>
</cfform>
<cfdiv bind="cfc:TestCFC.func({coolfrm:blah})"></cfdiv>
</body>
</html>
CFC
<cfcomponent>
<cfscript>
remote function func(simpleString){
return simpleString;
}
</cfscript>
</cfcomponent>
내가 할 수있는이 코드는 "기본"에서 cfdiv의 텍스트를 변경할 수 있습니다 기대에 "anotherValue라는" .
이것은 내가 생각하는대로 작동하지 않으며, 왜 그런지 알고 싶습니다. 의 정의에 의해
이 최고, 그게 내가 찾고 있었던 것입니다. 감사. – John
신용은 CFJediMaster에게 다음과 같이 전달됩니다 : http://www.coldfusionjedi.com/index.cfm/2009/7/8/Forcing-ColdFusion-to-recognize-changes-made-to-data-used-for-Ajax - 바인딩 –