Thanks Ezra,

That's the first example I've seen.  Though its not a straight up bind, with
result handled by coldfusion, but thanks for the example.

I was going for a complete bind, just for curiosity sake.  In the end I
probably cannot avoid javascript.  My next curiosity is handling dynamic
cfdiv's.  ColdFusion docs suggest that they can do about anything via the
cfdiv's binds, but I haven't figured it out yet.

On Sat, Jan 16, 2010 at 2:12 PM, Ezra Parker <[email protected]> wrote:

> Hi Chuck,
>
> This may not be an approach you wish to take, but it is possible to
> achieve the same result without modifying the RemotingService by using
> a cfajaxproxy bind instead:
>
> <cfset translateEvent = event.GetValue('xe_translate')>
>
> <cfajaxproxy
> bind="url:RemotingService.cfc?method=executeEvent&returnformat=json&eventName=#translateEvent#&returnValues=translatedPhrase&phrase={txtphr...@keyup
> }"
> onsuccess="setResult" />
>
> <script type="text/javascript">
> <!--
> function setResult(returnValue) {
>        document.getElementById('result').value =
> returnValue.translatedPhrase;
> }
> //-->
> </script>
>
> <cfform name="frm">
> <p>
>  Enter text to translate: <cfinput type="text" name="txtPhrase" value="" />
>  Translation: <cfinput type="text" name="result" id="result" />
> </p>
> </cfform>
>
> --
> Ezra Parker
>
> --
Chuck Savage
http://SeaRisen.com
-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to