A custom homepage only works in Google Chrome

Discussion in 'JavaScript' started by Martificiam, Jan 5, 2012.

  1. #1
    Hello!

    I am developing a javascript/html/css project - a custom homepage. It's just a single html file (+images and styles) which you run locally in your web browser.
    localStorage is what I'm using to store bookmarks.

    I developed it using Google Chrome and when I tried testing the script in other browsers, it was a bit disappointing. Mozilla Firefox, as far as I know, doesn't support offline localStorage. As for IE, I won't even bother wasting my time with it (I will add a notification/suggestion to update to a modern browser if a user tries to run it in IE). I haven't yet tested it in Opera.

    Is there a workaround which would make it work in Firefox? Furthermore, what could you suggest? What additional features should I add?

    View attachment homepage_en.zip
     
    Last edited: Jan 5, 2012
    Martificiam, Jan 5, 2012 IP
  2. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #2
    You give is NOTHING to work with. Further you throw a spanner into the works by providing lots of irrelevant information that is hard to sort through. Get to your point and show us some code. Before you do that, do yourself a favor and validate your code.
     
    mmerlinn, Jan 5, 2012 IP
  3. Martificiam

    Martificiam Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello to you too!

    If I were to give you "some code", I'd have to copy-paste the whole script here. Since it's just one file and the problem is about the usage of the localStorage element, I believe seeing how the script works as a whole would be a better way of asking how to solve this problem. I've checked for examples on the web and my code seems to do the trick on Google Chrome, but for whatever reason it doesn't on Firefox.

    As for the irrelevant information, thanks for telling me that, I'll fix it. I just never feel like jumping into a board, writing a few sentences about my problem without describing anything and leaving. Especially when it's my first post.
     
    Martificiam, Jan 5, 2012 IP
  4. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #4
    since your using localStorage, it is not fully supported by all browsers currently. there's an alternative with the use of flash, but you need to create a flash movie that enables you to store locally and a script that enables you to communicate with the flash movie..

    this link might help: http://www.shinedraw.com/data-handling/silverlight-vs-flash-local-storage/ (also shows a silverlight version)

    remember that the storage would be within flash's local storage and not in you browser's storage..
     
    JohnnySchultz, Jan 12, 2012 IP
  5. CafeDude

    CafeDude Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    My first rule when developing a web page is- Test in IE, Firefox and now Chrome. I often end up creating css exceptions for each browser to get the page to display correctly.
     
    CafeDude, Jan 21, 2012 IP