cf variables can go into Javascript just as easily as they go into HTML.

CF is server side and "writes" client side code (JS/HTML).

You said you hoped you could find an example that showed CF
incorporated into javascript.  that function you pasted has CF
incorporated into javascript (just make sure that block is wrapped in
<cfoutput></cfoutput> tags).



On 6/26/06, Rick King <[EMAIL PROTECTED]> wrote:
> I think I've seen that...it is pretty cool. I might look into it.
>
> But what about if the images are dynamic...would I just place the CF image 
> variable in the javascript itself. For example (I found this somewhere),
>
> function imageChange(imgName){
> if (document.images){
> document['#imagequery.imagename#'].src=whichImage(imgName)
> }}
>
> Can I simply place a CF variable inside javascript? I guess I was hoping I 
> could find an example that showed CF incorporated into javascript somehow.
>
> Thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244837
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to