Cold fusion is pretty much a one-way relationship on the server-side.
Coldfusion can help create javascript, but once on the browser, only
javascript is available to the resulting code. Javascript CAN call a
coldfusion page on the server and return its results, but that isn't exactly
the same thing.
<script>
Function changeText() {
var idvalue = document.getElementById('idname').innerText;
var newtext = "The original text was " + idvalue + ", but now it has
changed";
document.getElementById('idname').innerText = newtext;
}
</script>
<span id="idname">First Text</span><br>
<a href="javascript:changeText()">Change Text</a>
Hope this helps,
William
--
William E. Seiter
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 05, 2007 7:36 AM
To: CF-Talk
Subject: Passing a variable from a Span ID to CF
All, I don't know if you can actually do this, but I've been reading that
you can.
You can pass a variable from say a JavaScript into a span id= and have it
parse
out on a page? Is this true? If it is, I didn't know that. My realy
question comes
where I want to take that variable and bring it into a CF variable, like
passinig it
into a form action parameter.
Has anyone worked with something like this?
Thanks
D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290337
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4