Subject: Load a pdf when the URL is typed?
Posted By: morpheus Post Date: 11/13/2003 2:52:54 PM
When a user types my URL the main page loads, which is fine.  But what I want to do is type www.mysite.com/otherpage and load a PDF file into the browser(without actually type file.pdf after the URL) and by pass the page I have now with the link to the PDF on it.  So the secondary page never loads.  Also can the code do a check to see if the user has Acrobat reader and if not can it direct them to adobe.com.  Any help on this matter would be awesome.
Thanks a lot!!!!

Reply By: Yehuda Reply Date: 11/13/2003 2:59:12 PM
Try
<%
    Response.Redirect "http://www.something.com/some.pdf"
    'where http://www.something.com/some.pdf is the path to your pdf
%>
Reply By: morpheus Reply Date: 11/13/2003 3:11:04 PM
Thanks for the quick response, but when I use your code it comes up and says page cannot be displayed.  But it's looking for
http://www.something.com/some.pdfhttp://www.something.com/some.pdf
why is it adding the url to the url.  What page do I use the Redirect on?  maybe I am doing something wrong

Reply By: morpheus Reply Date: 11/13/2003 3:16:21 PM
Okay sorry it works fine, thanks a lot!!  :-)
Just one more thing what happens if the user dose not have acrobat reader???

Reply By: Yehuda Reply Date: 11/13/2003 3:19:51 PM
I would guess they either get gibberish or an error.  I am not sure.
Reply By: morpheus Reply Date: 11/13/2003 3:31:56 PM
Sorry the keep bothering you, but how do I make it load in another window, I tried the target="_blank" but that didn't seem to work.

Reply By: planoie Reply Date: 11/13/2003 3:32:02 PM
If they don't have an application to handle a file format, they will get the "Download file..." dialog box.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply By: Yehuda Reply Date: 11/13/2003 3:35:58 PM
Try

<SCRIPT>
     Window.open("http://www.something.com/some.pdf")
<SCRIPT>
Reply By: morpheus Reply Date: 11/13/2003 3:43:56 PM
Thanks for your help


Go to topic 6456

Return to index page 1006
Return to index page 1005
Return to index page 1004
Return to index page 1003
Return to index page 1002
Return to index page 1001
Return to index page 1000
Return to index page 999
Return to index page 998
Return to index page 997