English 中文(简体)
动态约束产出的java制成面值变化
原标题:Changing cfform values with javascript for dynamic bind output

CFM

<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:Test氟氯化碳.func({coolfrm:blah})"></cfdiv>

</body>
</html>

氟氯化碳

<cfcomponent>
    <cfscript>
        remote function func(simpleString){
            return simpleString;
        }
    </cfscript>
</cfcomponent>

我期望这部法典能做的是,将雕刻中的文字从“过失”改为“其他价值”。

我不认为应该这样做,我想知道为什么。

最佳回答

http://www.w3.org/TR/html4/interact/scripts.html” rel=“nofollow” http://www.w3.org/TR/html4/interact/scripts.html。

The onchange event occurs when a control loses the input focus and its value has been modified since gaining focus.

当你对实地进行方案性修改时,改变事件就是正确的。

略微改变 Java本功能:

function toggleV(value){
    document.getElementById( blah ).value = value;
    ColdFusion.Event.callBindHandlers( blah ,null, change );
}
问题回答

暂无回答




相关问题
JQuery AJAX .load - flash chart doesnt load in IE

An IE issue has me completely stumped. I have a coldfusion page that uses JQuery s AJAX .load function to load in a new flash file that is generated by coldFusion s cfchart tag. This works completely ...

Best Coldfusion Library for OpenID [closed]

I am getting ready to start a project that requires using OpenID within Coldfusion 8. I have found a number of different options and was wondering what has worked the best, get s the most support, ...

Find ColdFusion Generated ID

Is there a way to find the elements generated by ColdFusion s <CFLayout> and <CFLayoutArea> tags? These tags: <cflayout type="tab" name="MyAccount"> <cflayoutarea name="...

ColdFusion COM error

I am upgrading from CF4.5 to CF8. Calls to COM dll s that used to work in version 4.5 now throw a "Complex object types cannot be converted to simple values.." error. The COM object has a few arrays ...

What s the best way to write engine-specific CFML code?

Sometimes it is necessary to write different code for Adobe ColdFusion vs Railo vs OpenBD, due to differences in implementation. Do people have a specific method that they use for this? For example, ...

热门标签