Results 1 to 3 of 3

Thread: Help: Firefox Won't Display Dynamic Content

  1. #1
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Help: Firefox Won't Display Dynamic Content

    Here's one. Please visit the following link...

    http://www.southtechinc.com/test.htm

    This page has a file input, an iframe, and a div layer.

    Using MSIE, if you choose an image using the file input, then click the Div Preview and Iframe Preview links, you'll see them both load on the page as they "should."

    Try that with Firefox, and you get...

    "Security Error: Content at http://www.southtechinc.com/test.htm may not load or link to file:///your_image_path."

    Firefox apparently considers this dynamic content writing a security risk. Is there any way around it?

    Please have a look at the source code,too. Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Firefox apparently considers this dynamic content writing a security risk.
    No, it considers reading local files a security risk, and rightly so. I'm (mildly) surprised if IE doesn't. There is no way around this, except to upload the content to your server first before displaying it.

    Oh, and your code adds one too many slashes:
    Code:
    file:////home/twey/Images/25%2003.jpg
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi jromeo,
    This is infact a security measure that firefox adopts in order to stop malicious JS code to be employed. But there is a work around. In versions prior to Firefox 1.5, you can type in about:config in your address box of the browser and make a global change so that this check is disabled. This work around as you would guess is a like declaring a "global variable" ;-).

    But from Firefox 1.5 onwards, this can be restricted to a site that you think is a trusted site.
    The following 2 links will provide all the information that you will need to address the issue.
    http://home.att.net/~cherokee67/ns7profloc.html ( gives you information on where to find the Profiles folder addressed in the second link below).
    http://kb.mozillazine.org/Links_to_local_pages_don't_work

    Good luck!

Bookmarks

Posting Permissions

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