Re: Viewing PDFs

2001-04-12 Thread Bruce Holm

Did this work well for you in all situations?
Can you share that piece of code?
We resorted to using javascript to open a window and redirect that way.  It
is not too satisfactory since it performs differently.  I'd like to have it
open in the same window as the page they link from.

Bruce

- Original Message -
From: "Adrian Cesana" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 6:46 PM
Subject: RE: Viewing PDFs


 I just went thru the same thing, I had to change my CFLOCATION's to a meta
 redirect.

 -Adrian

 -Original Message-
 From: Bruce Holm [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 6:27 PM
 To: CF-Talk
 Subject: Viewing PDFs


 I'm new to this list so if this has been beat to death already, please
 forgive...

 For viewing a .pdf file, we store the URL in a db table.  When someone
 clicks on the document url to view the file, it hits the db table,
retrieves
 the PDF's real URL and then CFLOCATIONs to that path.  It works most of
the
 time but for some strange reason, on IE5.0 it's flakey.  Sometimes it just
 launches Acrobat Reader (of the full version) and just displays an empty
 Acrobat Reader window.

 It obviously recognizes that it is a PDF but not sure why the content is
not
 displayed.  It also typically fails to display after the following
sequence
 pretty consistently...

 Click on PDF link to view doc
 Read Db table to get access permission and URL to PDF
 Permission requires user login...display login page
 Login successful...cflocate to the URL
 Acrobat launches (if not already) but displays empty contents in window

 If I now go back around (view the list of PDFs, click on the same one, no
 login required this time because I'm already logged in, cflocate to the
PDF)
 it works fine this time.
 But if I log out, then go through the above sequence, it fails every
 time...only on IE5.0.  IE5.5 works.  Netscape 4.7 works.

 Any ideas on this one

 -
 Bruce Holm - Web Programmer
 Lattice Semiconductor Corp.
 [EMAIL PROTECTED]
 -

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Viewing PDFs

2001-04-12 Thread Adrian Cesana

It seems to have cured ALL instances of this problem for me

Basically I use this to redirect instead of the CFLOCATION now:
meta http-equiv="refresh"
content="0;url=https://blah.com/reports/#PdfReport#"


HTH,Adrian




-Original Message-
From: Bruce Holm [mailto:[EMAIL PROTECTED]]

Did this work well for you in all situations?
Can you share that piece of code?
We resorted to using javascript to open a window and redirect that way.  It
is not too satisfactory since it performs differently.  I'd like to have it
open in the same window as the page they link from.

Bruce



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Viewing PDFs

2001-04-12 Thread Bruce Holm

Thanks, Adrian!
How do you allow users to use the Back button to get "out" of the PDF doc?
It seems to just redirect you back into the PDF.  How did you get around
that?

Bruce

- Original Message -
From: "Adrian Cesana" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 11:38 AM
Subject: RE: Viewing PDFs


 It seems to have cured ALL instances of this problem for me

 Basically I use this to redirect instead of the CFLOCATION now:
 meta http-equiv="refresh"
 content="0;url=https://blah.com/reports/#PdfReport#"


 HTH,Adrian



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Viewing PDFs

2001-04-12 Thread Adrian Cesana

In my app using the back button in the PDF takes them back to the requesting
page (im using 2 templates), so this works ok for me.  Just guessing but it
sounds like you have the template calling itself which normally should be
fine...but perhaps this is the cause of what your describingMaybe
another workaround is a link from within the PDF, Im pretty sure you can do
that...

Adrian


-Original Message-
From: Bruce Holm [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 2:09 PM
To: CF-Talk
Subject: Re: Viewing PDFs


Thanks, Adrian!
How do you allow users to use the Back button to get "out" of the PDF doc?
It seems to just redirect you back into the PDF.  How did you get around
that?

Bruce

- Original Message -
From: "Adrian Cesana" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 11:38 AM
Subject: RE: Viewing PDFs


 It seems to have cured ALL instances of this problem for me

 Basically I use this to redirect instead of the CFLOCATION now:
 meta http-equiv="refresh"
 content="0;url=https://blah.com/reports/#PdfReport#"


 HTH,Adrian
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Viewing PDFs

2001-04-11 Thread Bruce Holm

I'm new to this list so if this has been beat to death already, please forgive...

For viewing a .pdf file, we store the URL in a db table.  When someone clicks on the 
document url to view the file, it hits the db table, retrieves the PDF's real URL and 
then CFLOCATIONs to that path.  It works most of the time but for some strange reason, 
on IE5.0 it's flakey.  Sometimes it just launches Acrobat Reader (of the full version) 
and just displays an empty Acrobat Reader window.

It obviously recognizes that it is a PDF but not sure why the content is not 
displayed.  It also typically fails to display after the following sequence pretty 
consistently...

Click on PDF link to view doc
Read Db table to get access permission and URL to PDF
Permission requires user login...display login page
Login successful...cflocate to the URL
Acrobat launches (if not already) but displays empty contents in window

If I now go back around (view the list of PDFs, click on the same one, no login 
required this time because I'm already logged in, cflocate to the PDF) it works fine 
this time.
But if I log out, then go through the above sequence, it fails every time...only on 
IE5.0.  IE5.5 works.  Netscape 4.7 works.

Any ideas on this one

-
Bruce Holm - Web Programmer
Lattice Semiconductor Corp.
[EMAIL PROTECTED]
-



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Viewing PDFs

2001-04-11 Thread Adrian Cesana

I just went thru the same thing, I had to change my CFLOCATION's to a meta
redirect.

-Adrian

-Original Message-
From: Bruce Holm [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 6:27 PM
To: CF-Talk
Subject: Viewing PDFs


I'm new to this list so if this has been beat to death already, please
forgive...

For viewing a .pdf file, we store the URL in a db table.  When someone
clicks on the document url to view the file, it hits the db table, retrieves
the PDF's real URL and then CFLOCATIONs to that path.  It works most of the
time but for some strange reason, on IE5.0 it's flakey.  Sometimes it just
launches Acrobat Reader (of the full version) and just displays an empty
Acrobat Reader window.

It obviously recognizes that it is a PDF but not sure why the content is not
displayed.  It also typically fails to display after the following sequence
pretty consistently...

Click on PDF link to view doc
Read Db table to get access permission and URL to PDF
Permission requires user login...display login page
Login successful...cflocate to the URL
Acrobat launches (if not already) but displays empty contents in window

If I now go back around (view the list of PDFs, click on the same one, no
login required this time because I'm already logged in, cflocate to the PDF)
it works fine this time.
But if I log out, then go through the above sequence, it fails every
time...only on IE5.0.  IE5.5 works.  Netscape 4.7 works.

Any ideas on this one

-
Bruce Holm - Web Programmer
Lattice Semiconductor Corp.
[EMAIL PROTECTED]
-
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists