[thelist] Javascript Variables to Cold Fusion Variables

Josh Spiegel joshsquared at yahoo.com
Tue Jul 17 12:16:07 CDT 2001


Wrong way.  Javascript to Cold Fusion, Not Cold Fusion to Javascript
But thanks anyway. :)

>><cfquery datasource="aDatasource" name="myQ">
>>SELECT userName
>>FROM Users
>>WHERE userID = '#cookie.userID#'
>></cfquery>
>><cfoutput>
>><script language = "javascript">
>>alert('Hi there, #myQ.userName#');
>></script>
>></cfoutput>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the thelist mailing list