Skip to main content
Inspiring
June 11, 2008
Question

Passing Javascript value to Coldfusion

  • June 11, 2008
  • 2 replies
  • 469 views
Hi,
This may be a too simple question, but how can I pass the Javascript value
to Coldfusion?

Within a Coldfusion page I tried something like below, and it's not working.

<script language="javascript">
function afunction(javascript_id) {
<cfset URL.coldfusion_id = javascript_id>
}
</script>

I would really appreciate for a way to fix this.

YC


    This topic has been closed for replies.

    2 replies

    Inspiring
    June 12, 2008
    OK, thanks!

    YC

    "AirJar" <jr.wilson@satfive.com> wrote in message
    news:g2rrp4$qnh$1@forums.macromedia.com...
    > JS is processed on the client side and CF is processed on the server side.
    > You can try using the writeoutput command in js to see if it accomplishes
    > what you are looking to do.


    Inspiring
    June 12, 2008
    JS is processed on the client side and CF is processed on the server side. You can try using the writeoutput command in js to see if it accomplishes what you are looking to do.