Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Throwing cfoutput variables into javascript
From: Eric Dunham
Date: Fri, 12 May 2000 04:43:28 +0100

If you could post an example of your code, I could try and help you with
it...
But IMO, one of the easiest ways to get CF variables into JS is to do
something like this...
------------------
<script>
<!--
<cfoutput>
my_js_var = "#my_cf_var#";
</cfoutput>
//-->
</script>
------------------
Email me offlist if you want me to help you with more specific items.

HTH,
Eric Dunham


-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Daniel H
Sent: Thursday, May 11, 2000 12:38 PM
To: flasheratchinwag [dot] com
Subject: FLASH: Throwing cfoutput variables into javascript


IM having a challange here.

I am not the best javascript programmer but in a nutshell here is what I
want to do.

I am trying to output data about flash attributes located in a database into
javascript via coldfusion.

My question is: How can I pass information from a cfoutput to javascript or
how do can I encode the javascript to accomodate coldfusion tags within
it...


I tried nesting cold fusion tags with in javascript.. That doesnt work. I
have also tried the cfset tag to create a variable before the javascript
starts. This does not work either.

Does anyone have any experience in manipulating a cfoutput to properly store
a variable so javascript can read it?

If anyone has any questions or wishes to see some of the code I have done. I
could post it.

TIA

Dan


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Throwing cfoutput variables into , Daniel H

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]