Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
We are trying to use Javascript to detect if the Flash plugin is installed on the client browser. If the plugin is installed we show a flash animation, if not we display a .gif image.
We can't figure out what is wrong with our code, here is part of the code and the error message that we get from the server:
Thanks in advance for your help.
Francis
code:
and the error message:
Error Occurred While Processing Request
Error Diagnostic Information
Just in time compilation error
Invalid parser construct found on line 228 at position 78. ColdFusion was looking at the following text:
=
Invalid expression format. The usual cause is an error in the expression structure.
The last successfully parsed CFML construct was static text occupying document position (226:29) to (228:69).
The specific sequence of files included or processed is:
/data/webdata/docs-443/logout.cfm
/data/webdata/docs-443/global_includes/visual_header.cfmCFInclude
The error occurred while processing an element with a general identifier of (CFINCLUDE), occupying document position (6:1) to (6:55) in the template file
/data/webdata/docs-443/logout.cfm.
Date/Time: Tue Dec 05 15:11:08 2000
Browser: Mozilla/4.7 [en]C-CCK-MCD (WinNT; U)
Remote Address: 192.75.88.40
HTTP Referer: Query String: message=logout
Execution Time
133 milliseconds
1 ms
/DATA/WEBDATA/DOCS-443/APPLICATION.CFM
130 ms
/DATA/WEBDATA/DOCS-443/LOGOUT.CFM
3 ms
STARTUP, PARSING, & SHUTDOWN
Parameters
URL Parameters:
MESSAGE=logout
CGI Variables:
AUTH_GROUP=
AUTH_TYPE=
AUTH_USER=
CF_TEMPLATE_PATH=/data/webdata/docs-443/logout.cfm
CLIENT_CERT=
CLIENT_CERT_ISSUER_DN=no certificate
CLIENT_CERT_SSL_ID=
CLIENT_CERT_USER_DN=no certificate
CONTENT_LENGTH=
CONTENT_TYPE=
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET=iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING=gzip
HTTP_ACCEPT_LANGUAGE=en
HTTP_CONNECTION=Keep-Alive
HTTP_COOKIE=CFID=56046; CFTOKEN=68180615; EDESK_USER=lmcfrob%40lmc%2Eericsson%2Ese
HTTP_HOST=edesk.ericsson.ca
HTTP_REFERER=HTTP_USER_AGENT=Mozilla/4.7 [en]C-CCK-MCD(WinNT; U)
PATH_INFO=
PATH_TRANSLATED=/data/webdata/docs-443/logout.cfm
QUERY_STRING=message=logout
REMOTE_ADDR=192.75.88.40
REMOTE_HOST=
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/logout.cfm
SERVER_NAME=edesk.ericsson.ca
SERVER_PORT=443
SERVER_PROTOCOL=HTTP/1.0
SERVER_SOFTWARE=Netscape-Enterprise/3.6 SP3
We are trying to use Javascript to detect if the Flash plugin is installed on the client browser. If the plugin is installed we show a flash animation, if not we display a .gif image.
We can't figure out what is wrong with our code, here is part of the code and the error message that we get from the server:
Thanks in advance for your help.
Francis
code:
Code:
<!--- Condition to manage the display of the proper banner, the season banner will
only appear on the welcome page after the user has logged on. --->
<cfif session.showSeasonGreetingsBanner IS true>
<SCRIPT LANGUAGE="Javascript">
var flashinstalled = 0;
MSDetect = "false";
if (navigator.mimeTypes && navigator.mimeTypes.length)
{
x = navigator.mimeTypes['application/x-shockwave-flash'];
if (x && x.enabledPlugin) flashinstalled = 2;
else flashinstalled = 1;
}
else
{
MSDetect = "true";
}
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
on error resume next
If MSDetect = "true" Then
If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash"))) Then
flashinstalled = 1
Else
flashinstalled = 2
End If
End If
</SCRIPT>
<cfif IsDefined("flashinstalled") AND flashinstalled IS 2>
<cfset banner = "flash">
<cfset session.showSeasonGreetingsBanner = false>
<cfelseif>
<cfset banner = "christmas_banner.gif">
<cfset session.showSeasonGreetingsBanner = false>
</cfif>
<cfelse>
<cfset banner = "top_banner.gif">
</cfif>
<cfif banner IS "flash">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
<!-- this is line 228 --> codebase="[URL unfurl="true"]http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"[/URL]
ID=christmas_banner WIDTH=434 HEIGHT=30>
<PARAM NAME=movie VALUE="christmas_banner.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="/morceaux/christmas_banner.swf" loop=false quality=high bgcolor=#FFFFFFWIDTH=434 HEIGHT=30 TYPE="application/x-shockwave-flash" PLUGINSPAGE="[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>[/URL]
</OBJECT>
<cfelse>
<td align="right" valign="bottom" width="#Int(pageWidth - 216)#"><h3>#PageTitle#</h3><img src="/morceaux/#banner#" width="#Int(pageWidth - 216)#" height="30" vspace="0" hspace="0"></td>
</cfif>
and the error message:
Error Occurred While Processing Request
Error Diagnostic Information
Just in time compilation error
Invalid parser construct found on line 228 at position 78. ColdFusion was looking at the following text:
=
Invalid expression format. The usual cause is an error in the expression structure.
The last successfully parsed CFML construct was static text occupying document position (226:29) to (228:69).
The specific sequence of files included or processed is:
/data/webdata/docs-443/logout.cfm
/data/webdata/docs-443/global_includes/visual_header.cfmCFInclude
The error occurred while processing an element with a general identifier of (CFINCLUDE), occupying document position (6:1) to (6:55) in the template file
/data/webdata/docs-443/logout.cfm.
Date/Time: Tue Dec 05 15:11:08 2000
Browser: Mozilla/4.7 [en]C-CCK-MCD (WinNT; U)
Remote Address: 192.75.88.40
HTTP Referer: Query String: message=logout
Execution Time
133 milliseconds
1 ms
/DATA/WEBDATA/DOCS-443/APPLICATION.CFM
130 ms
/DATA/WEBDATA/DOCS-443/LOGOUT.CFM
3 ms
STARTUP, PARSING, & SHUTDOWN
Parameters
URL Parameters:
MESSAGE=logout
CGI Variables:
AUTH_GROUP=
AUTH_TYPE=
AUTH_USER=
CF_TEMPLATE_PATH=/data/webdata/docs-443/logout.cfm
CLIENT_CERT=
CLIENT_CERT_ISSUER_DN=no certificate
CLIENT_CERT_SSL_ID=
CLIENT_CERT_USER_DN=no certificate
CONTENT_LENGTH=
CONTENT_TYPE=
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET=iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING=gzip
HTTP_ACCEPT_LANGUAGE=en
HTTP_CONNECTION=Keep-Alive
HTTP_COOKIE=CFID=56046; CFTOKEN=68180615; EDESK_USER=lmcfrob%40lmc%2Eericsson%2Ese
HTTP_HOST=edesk.ericsson.ca
HTTP_REFERER=HTTP_USER_AGENT=Mozilla/4.7 [en]C-CCK-MCD(WinNT; U)
PATH_INFO=
PATH_TRANSLATED=/data/webdata/docs-443/logout.cfm
QUERY_STRING=message=logout
REMOTE_ADDR=192.75.88.40
REMOTE_HOST=
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/logout.cfm
SERVER_NAME=edesk.ericsson.ca
SERVER_PORT=443
SERVER_PROTOCOL=HTTP/1.0
SERVER_SOFTWARE=Netscape-Enterprise/3.6 SP3