Hello Lakshmi
I am using Mac OS X 10.3.9, so I thought that I would document the
problem. I'm not a JavaScript/EcmaScript bunny, so I'm afraid I can't
do more than that. Hopefully someone else on the list can point you to
a fix.
The problem is real. When you use
javascript:OpenAttachmentWithFullPath, Safari tries to point to
localhost, rather than the base path.
As a test page, I used:
http://www.agd.nsw.gov.au/lawlink/Corporate/ll_corporate.nsf/
vwPreviewActivePages/attorney_generals_department_court_recording
I tried to download something that uses javascript:OpenAttachment:
Same_Day_Transcript_Newcastle_Order_Form_text.doc
And something that uses javascript:OpenAttachmentWithFullPath:
/Lawlink/Corporate/ll_corporate.nsf/vwFiles/
Transcript_fees_RSB2005.doc/$file/Transcript_fees_RSB2005.doc
First, I check that the page was valid:
http://validator.w3.org/
It wasn't. You can see the results at:
http://validator.w3.org/check?
uri=http%3A%2F%2Fwww.agd.nsw.gov.au%2Flawlink%2FCorporate%2Fll_corporate
.nsf%2FvwPreviewActivePages%2Fattorney_generals_department_court_recordi
ng
Then I tried to replicate the problem with various browsers:
javascript:OpenAttachment
Firefox 1.0.6: OK
Safari 1.3.1: OK
Opera 8.5: OK
Internet Explorer 5.2.3: OK
javascript:OpenAttachmentWithFullPath
Firefox 1.0.6: OK
Safari 1.3.1: Fail!
Opera 8.5: OK
Internet Explorer 5.2.3: OK
Sure enough, when I tried to download using
javascript:OpenAttachmentWithFullPath on Safari 1.3.1, I received the
error message:
Safari can’t open the page
“http://localhost/Lawlink/Corporate/ll_corporate.nsf/vwFiles…
anscript_fees_RSB2005.doc/$file/Transcript_fees_RSB2005.doc” because it
could not connect to the server “localhost”.
--
Jonathan O'Donnell
mailto:[EMAIL PROTECTED]
http://purl.nla.gov.au/net/jod
+61 4 2575 5829
On 17/11/2005, at 10:50 AM, [EMAIL PROTECTED] wrote:
Hi! All
I am the web production officer at Attorny General's . I have received
feedback from Mac users using Safari to browse are unable to download
attachments. The errors message that they get is " Safari can't find
the server, can't find the Domain name?". We are using relative links
in Javascript to open the attachments.
Could please anyone shed light on what might be causing this. Our
website is built on Lotus Notes.
Thanks!
Lakshmi Satyanarayana
Web Production Officer
Web Services
Information Technology Services
Attorney General's Department
Tel: +612 9228 8417
Mo: 0403111907
Fax: +612 9228 8269
Ex: 88417
Email : [EMAIL PROTECTED]
[EMAIL PROTECTED]
This message is intended for the addressee named and may contain privil
eged
or confidential information. If you are not the intended recipient you
must
not use, disclose, copy or distribute this communication. If you have
received this message in error please delete the email and notify the s
ender.
Web Site
http://www.lawlink.nsw.gov.au
**
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**