First make sure you understand the difference between scripting on
server-side (ColdFusion) and client-side (JavaScript).
Briefly, all CFML code is executed first on the server, which generates
HTML+JS+etc that is sent to the client and then executed by the browser
(client).

So, you can do this:
<cfoutput>
<script type="text/javascript">
var myJsVar = '#JsStringFormat(Url.myCfVar)#';
</script>
</cfoutput>

And that'll create a JS variable called myJsVar that contains whatever the
myCfVar variable had in it.

Make sense?

On 5/31/07, Dan Munez <[EMAIL PROTECTED]> wrote:
>
> Hey guys i need to put the VALUE of a URL variable into a javascript
> variable.  can anyone show me how to access that variable?  Thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:4176
Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33

Reply via email to