1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Path issue in FireFox

Discussion in 'Firefox, Thunderbird & SeaMonkey' started by alanrf, 2010/07/10.

  1. 2010/07/10
    alanrf

    alanrf Well-Known Member Thread Starter

    Joined:
    2004/03/05
    Messages:
    282
    Likes Received:
    8
    If I use something like

    [FONT= "Microsoft Sans Serif"]<script src= "c:/folder1/filename.js" type= "text/javascript "></script>[/FONT]

    in an HTML file, it works correctly in IE and Chrome, but fails in FireFox, (and Opera).


    If I use the equivalent relative path it still fails. As far as I can deduce at present the only workaround is to place the file in question in the same folder as the calling file. Not the end of the world, but certainly inconvenient.

    Any ideas?

    Is it some form of security issue?
    Is it a FireFox bug?
     
  2. 2010/07/10
    scout321x Contributing Member

    scout321x Inactive

    Joined:
    2002/02/23
    Messages:
    237
    Likes Received:
    3
    Alan,

    I cannot help in answering your question but the folks that might be able to help are likely to want more information. Like what version of FF you are using.

    You might consider posting your System Specs in your profile. Click on the "User CP" button near the upper left of the BBS web page then clicking on "Edit System Specs ". Filling out this info helps all of us too.
     
    Last edited: 2010/07/10

  3. to hide this advert.

  4. 2010/07/17
    alanrf

    alanrf Well-Known Member Thread Starter

    Joined:
    2004/03/05
    Messages:
    282
    Likes Received:
    8
    For the record, I have now resolved this issue.

    Works only in Chrome and Explorer

    <script type= "text/javascript" src=" C:\folder1\folder2\folder3\filename.js "></script>

    Works in Chrome, Explorer, FireFox and Opera

    <script type= "text/javascript" src=" file:///C:\folder1\folder2\folder3\filename.js "></script>

    The use of either the forward, (/) or back slash (\) seems to be tolerated well.

    The crucial additon is highlighted. Clearly, FireFox and Opera are stricter in the rendering process, although it could be argued that Chrome and Explorer are more tolerant.

    Still, it does highlight an important principle. Be syntactically correct at all times for 'guaranteed' functionality.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.