Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Passing Javascript value to Coldfusion

LEGEND ,
Jun 11, 2008 Jun 11, 2008
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


444
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 12, 2008 Jun 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2008 Jun 12, 2008
LATEST
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.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources