www.webdeveloper.com
Results 1 to 13 of 13

Thread: Href to Doc on Server not working in FF

  1. #1
    Join Date
    Jan 2006
    Posts
    40

    Question Href to Doc on Server not working in FF

    Hi

    I'm redesigning our intranet, which is not much more than pages of links to documents on a different, central, server.

    I'm having a problem wherby Firefox will not open the linked document.

    The links are standard <a href=""></a> flavour and not generated, the pages are html and not ASP or JS generated.

    E.g.
    <a class="url" href="file://srv00123/UUW/Lmd/Global/Standards/PTF%20Procedures.02.doc" title="Creating a PTF">Creating a PTF</a>

    The intranet is hosted on a different server from the document resource.

    The intranet is running on an Apache server.

    All of the links work in IE6 & 7. I have no other CSS/HTML cross-browser compatability issues and the site is CSS and XHTML 1.0 Trans valid.

    When I say the links don't work in FF, I mean that nothing happends when I click the link in the browser - no 403 or 404, or even a refresh of the current page.

    IE simply loads the document/spreadsheet/pdf in-window.

    What gives?!

    Thanks
    Simon

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    You've got spaces in the names:
    PTF%20Procedures.02.doc

    IE will replace these with the "%20" -- but Firefox isn't that forgiving. Try renaming your documents without spaces and see if that solves the problem.

    KDLA
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  3. #3
    Join Date
    Jan 2006
    Posts
    40
    I have indeed got spaces in the URL's... but as you can see from my example, I have already replaced any spaces with "%20" in the actual href.

    Thanks

  4. #4
    Join Date
    Jan 2006
    Posts
    40
    Hnag on... do you mean renaming the actual documents? or title/name? or just the URL?

  5. #5
    Join Date
    Jan 2006
    Posts
    40
    Furthermore...

    Typing this into FF address bar *will* open the document:
    "\\srv00123\UUW\Lmd\Global\Standards\IRIS-Release Procedures.01.doc"

    But this won't:
    "\\srv00123\UUW\Lmd\Global\Standards\IRIS-Release%20Procedures.01.doc"

    Contradicting the thought that FF doesn't like the spaces - it seems okay with them, but not when I use "%20"!!!!!!!!

    Any help much appreciated!

  6. #6
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,755

  7. #7
    Join Date
    Jan 2006
    Posts
    40
    I've tried that, but with no success.

    Could it be a security feature of Firefox not allowing access to mapped network drives so that 'local' files can not be read by a site?

  8. #8
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,755
    Not that I know of. It might be that a remote Web page cannot link to local files. You say that central server is an Apache server. You might need to set up an intranet web server on a private IP address to link the files to.
    HTML Code:
    <a href="http://192.168.100.123/UUW/Lmd/Global/Standards/PTF Procedures.02.doc">
    As a test, save a local HTML file with a link to that same document as a local file. If the local HTML page opens that local link fine, but the Web page from the server doesn't, it is a security feature in Firefox.

  9. #9
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    I use Fx to view local files all the time. Have you tried accessing a PDF or other "non-Microsoft" document type?
    It could be that the file type (.doc) isn't associated with the program. In Fx, go to Tools/Options/Content; at the bottom is a "File Types" section. See if .doc is associated with MS Word.

    KDLA
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  10. #10
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,755

  11. #11
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    Could be, unless the program listed is incorrect. I know that I've messed that up before, just by accident when one of those dialogue boxes did come up and I clicked the wrong thing before thinking about what I did.
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  12. #12
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,755
    Ah that's true. I've done the same thing, where it wouldn't even spawn the download dialog because I set Firefox to not download a certain file type. I wonder, SimonWray, if you can download .doc files from anywhere on the Internet? Or is it just this intranet that it fails? And how about Opera?

  13. #13
    Join Date
    Jan 2006
    Posts
    40
    I think its a mix of things...

    1. The local-file security appears to be a problem as I checked the error console and I am receiving an access denied error on these links. So, I've posted on the Mozilla forum and have been pointed at the LocalLink ad-on. This allows a right-click menu to open local files.

    This appears to have solved some symptoms of the problem.

    2. I have noted that my File Options contain only a few types- mainly audio, Flash/SW and adobe applications. Nothing is present from MS apps other than WMV. I have managed to get one Word document link to open and am given the dialogue, but even checking the 'do this from now on' box does not give me a File Option entry for .doc and am I prompted again on the next open attempt. XLS and PPT files still do nothing.

    Is there a way to add these File Options like you can do in Explorer? there are only Remove and Configure buttons in FF - not an Add button.

    Mods - this is not an HTML issue, so feel free to move it.

    Thanks
    Simon

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles