[thelist] Javascript Variables to Cold Fusion Variables

Plunkett, Matt MPlunkett at msa.com
Tue Jul 17 14:30:27 CDT 2001


I didn't test this, but I'd do something like this probably:

<cfif not IsDefined("form.bFlash")>
	<html>
	<head>
		<title>Untitled</title>
		<script language="JavaScript">
			function DetectFlash()
			{
				// do flash detection.
				frmFlash.bFlash.value = "Yes"; //or
no...whatever.
				frmFlash.submit();
			}
		</script>
	</head>
	
	<body OnLoad="DetectFlash()">
	
	
	<form name="frmFlash" method="post" action="flashtest.cfm">
		<input type="hidden" name="bFlash">
	</form>
	
	
	</body>
	</html>
<cfelseif form.bFlash>
	<!--- Do flash stuff. --->
<cfelse>
	<!--- Regular HTML. --->
</cfif>

	-----Original Message-----
	From:	Josh Spiegel [SMTP:joshsquared at yahoo.com]
	Sent:	Tuesday, July 17, 2001 3:14 PM
	To:	thelist at lists.evolt.org
	Subject:	RE: [thelist] Javascript Variables to Cold Fusion
Variables

	It would be nice to know how to do this if possible.  I am still
going to
	research it a bit more.  What I want to do right now is flash
detection.

	For example:

	--- javascript flash detection ---
	--- FlashOk set to yes or no

	<CFIF FlashOk>
		Put flash
	<CFELSE>
		put html equiv
	</CFIF>

	Thanks,
	Josh


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


	---------------------------------------
	For unsubscribe and other options, including
	the Tip Harvester and archive of TheList go to:
	http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list