Don't know about Java, but this can't be done with JavaScript.  CF is server
side, and JavaScript is client side.  By the time the JavaScript executes,
CF has completed all of its execution.  There are tags that check to see if
JavaScript is enabled, check out CF_aBrowserInfo.  Haven't used it yet, but
just saw it in the tag gallery yesterday.

http://devex.allaire.com/developer/gallery/info.cfm?ID=5FE4539E-504A-11D4-AA
A000508B94F380&method=Full

Evan

> -----Original Message-----
> From: Gavin Myers [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 18, 2000 11:07 AM
> To: CF-Talk
> Subject: Variables in Java and Javascript
>
>
> Hey people,
>
> New thing:
> I need to check if a certing browser has java enabled, and javascript
>
> can you set a variable in java or javascript and let it be read in cold
> fusion?
>
> this is what i'm thinking:
>
> <Cfset javascript = 0>
> <cfset java = 0>
>
> javacode
> put 1 into java
> /javacode
>
> javascript code
> put 1 into javascript
> /javascript code
>
> <cfif javascript = 0>
> no javascript
> </cfif>
> <cfif java = 0>
> no java
> </cfif>
>
> any ideas on how to do this? better then this one? And, if you can cross
> variables through different peices of code, what is the syntax for writing
> this in javascript, java? Can you have Java on a cfm page?
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to