-----Original Message-----
From: Michael O Reilly
Sent: Wednesday, August 30, 2000 9:24 AM
To: 'Dana Larose'
Subject: RE: Yet Another IE5.5 BUG
Hi All,
IE5.5 seems to have a problem with display application/pdf if you use any
form variables on the same page as CFContent.
Regarding above problem.
Can some of the group test test some pages to confirm my suspicions that
there is a conflict between IE5.5 and CFContent.
First I'm using the following software.
Acrobat Reader 4.05a (1215 10:46).
IE5.50.4134.0600IC
Win98 SP1/ Personal Web Server. The problem also exists on NT4-SP6a.
Following feedback from Dana Larose, who was able to use CFContent to serve
PDF's with CFContent I went back to my code and stripped it down line by
line until I discovered the following.
Set up a directory e.g C:\PDFTest and put 2 pages form.cfm and test.cfm into
it.
Create a subdir called PDF_Files. In C:\PDFTest\PDF_Files place a PDF. I'm
sure you'll have one somewhere on your system.
Heres form.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Form.cfm</title>
</head>
<body>
<Form Action='test.cfm' method='post'>
<input type='hidden' name='PDFName' value='fun.pdf'>
<input type='submit' name='submit' value='submit'
</form>
</body>
</html>
Change the PDF name to match your file.
Here's test.cfm
<Cfset PDFPath = LCase(GetDirectoryFromPath(GetTemplatePath()) &
"PDF_Files\" & #Form.PDFName#)>
<!--- <Cfset PDFPath = LCase(GetDirectoryFromPath(GetTemplatePath()) &
"PDF_Files\fun.pdf")> --->
<CFCONTENT Reset="No" TYPE="application/pdf" FILE="#PDFPath#"
DELETEFILE="No">
<!---<Cfoutput>#PDFPath#</cfoutput>--->
Now with the line which uses the Form.PDFName var to build up the path to
PDF enabled, I get an error displaying the doc in IE5.5, whereas it will
display fine in IE5.
If I comment out the first line and uncomment the hard-coded path, the PDF
appears in both versions of IE.
If I comment out the CFContent line and use CFOutput to display the path, in
both cases, I get
c:\pdftest\pdf_files\fun.pdf so I'm pretty sure the problem is down to the
form var.
BTW, the error I've got in IE is "Error Locating Object Handler". I get a
small box in the top left of the page and clicking on it shows a message
saying.
"There is no viewer available for the type of object you are trying to open.
The following information is available about this object:
Address of Object: http://localhost/pdftest/test.cfm
Content Type: text/html
Possible location of viewer: Microsoft AciveX Gallery
Sometimes the content of the PDF file appears as text in the page.
Can some volunteers test this so I know I haven't made a mistake somewhere
and that this behaviour is in fact a bug.
Regards
Michael O'Reilly
TransAer
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.