The javascript would work, yes.
The java wouldn't work as you have it because you can only process one
server side language per application page. Java and ColdFusion cannot be
called on the same page.
I do not know if or how you could tell that a broweser is java-enabled. I'd
wait and see if
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
browserhawk can catch enabled/disabled Java.
http://www.browserhawk.com/products/bhawk/features.asp
AJ
-Original Message-
From: Patricia Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 11:33 AM
To: CF-Talk
Subject: RE: Variables in Java and Javascript
The javascript
essage-
From: Evan Lavidor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 12:02 PM
To: CF-Talk
Subject: RE: Variables in Java and Javascript
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
D]]
Sent: Wednesday, October 18, 2000 12:22 PM
To: CF-Talk
Subject: RE: Variables in Java and Javascript
What i've been looking into is cfwddx, i think its my only hope:
cfset javascript_verify = 0
cfwddx action="CFML2WDDX" input="#javascript_verify#" out
I do not know if or how you could tell that a broweser is
java-enabled. I'd wait and see if Watts responds to this...
one can always hope.
You can use JavaScript, if it's on, to see if the browser supports Java:
script language="JavaScript"
if (navigator.javaEnabled()) {
:22 AM
To: CF-Talk
Subject: RE: Variables in Java and Javascript
What i've been looking into is cfwddx, i think its my only hope:
cfset javascript_verify = 0
cfwddx action="CFML2WDDX" input="#javascript_verify#" output =
"javascript_verify_wddx"
Thanks for all of your inputs. I actually wound up doing this:
demo_verify_javascript.cfm
noscript
cfoutput
meta http-equiv="refresh" content="0; URL=error_javascript.cfm"
/cfoutput
/noscript
demo_verify_java.cfm
script
8 matches
Mail list logo