Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
link to local PDF does not work in Opera
Old 03-18-2009, 10:39 AM link to local PDF does not work in Opera
Skilled Talker

Posts: 83
Trades: 0
Hello,

I want to link to a local PDF file:

Code:
<a class="nota" href="D:\\business\\facturen\\2006001.pdf">2006001</a>
Works fine in IE.

In opera however, sometimes nothing at all happens when i click the link, and sometimes i get this error:

Quote:
Error!
The address type is unknown or unsupported

You tried to access the address d:%5Cbusiness%5Cfacturen%5C2006001.pdf, which is currently unavailable. Please make sure that the Web address (URL) is correctly spelt and punctuated, then try reloading the page.
Make sure your Internet connection is active and check whether other applications that rely on the same connection are working.
Strangely enough, when i rightclick the link and choose 'copy link address', then paste it in the address bar and hit enter, the PDF opens fine!

Online PDF's open fine in Opera.

What could be wrong?

thanks!

Matt
killerwhale65 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-18-2009, 10:47 AM Re: link to local PDF does not work in Opera
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Try using the file: protocol href="file:///d|path_to_file"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-18-2009, 10:51 AM Re: link to local PDF does not work in Opera
Skilled Talker

Posts: 83
Trades: 0
Code:
<a class="nota" href="file:///d|business\\facturen\\2006001.pdf">2006001</a>
Nothing happens when i click. When i copy the link and then paste it in the address bar, it opens.
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 03-18-2009, 10:53 AM Re: link to local PDF does not work in Opera
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
you do have too many "\"s in the path BTW
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-18-2009, 10:55 AM Re: link to local PDF does not work in Opera
Skilled Talker

Posts: 83
Trades: 0
a single backslash gives me php error.
A single forward slash also does not open.
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 03-18-2009, 11:29 AM Re: link to local PDF does not work in Opera
Skilled Talker

Posts: 83
Trades: 0
i've tested this a bit further and made a simple html file:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<a href="C:\Documents and Settings\Matt\Desktop\certificaat.jpg">test</a>
</body>
</html>
Clicking either does nothing or opens the same error. Entering the path directly in the address bar opens the file correctly.

Seems like an Opera bug?
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 03-18-2009, 02:52 PM Re: link to local PDF does not work in Opera
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Is this document on a network, or on a web site ? If it's on a network, you'll need the FULLY QUALIFIED path, not a path to YOUR hard drive. If it's from a web page, then you don't need the path, you just need a proper link to the pdf:
<a href="xxxxxxxx.pdf">pdf</a>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to link to local PDF does not work in Opera
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.88859 seconds with 12 queries