My Page Only Works In Chrome - Javascript Problem?

7 replies
  • WEB DESIGN
  • |
Hey guys,

A while ago I bought a $6 template for a "under construction" site. When opened in Chrome, I can see it perfectly, however, when I open it in Firefox, it's just a white blank page.

The site is - PatJackson.net - Coming Soon!

When I look at the source code in Firefox I see this;

Code:
<div id="flashcontent"> <strong>You
need to upgrade your Flash Player</strong>
This is replaced by the Flash content. Place your alternate content
here and users without the Flash plugin or with Javascript turned off
will see this. Content here allows you to leave out <code>noscript</code>
tags. Include a link to <a
 href="_deploy/fullpage.html?detectflash=false">bypass
the detection</a> if you wish. </div>
Although, I don't know what that means.

Can you see it in Chrome and not in Firefox also? Any idea what's going on?

Thanks in advance.

Pat.
#chrome #javascript #page #problem #works
  • Profile picture of the author Bruce Hearder
    Hi Pat,

    when I visit www.Patjackson.com it returns a blank page.

    I found the problem..

    The script is looking for a file called under construction.swf, that doesn't it exist. It should be called under%20construction.swf

    Filenames for webpages can't have spaces in it..

    Open the script with say notepad (NOT MS WORD), and do a search and replace and find

    under construction.swf

    and replace it with

    under%20construction.swf

    I'm sure it will work for you now..

    Hope this helps you

    Bruce
    {{ DiscussionBoard.errors[1814017].message }}
    • Profile picture of the author halfpoint
      Hi Bruce,

      Thanks for the response.

      Which file am I supposed to edit?

      I opened the swfobject.js in notepad but when using the find/replace feature there was no trace of under construction.swf

      There was, however, a trace of that in index.html file and I edited that to make it say under%20construction.swf

      Is that what I was supposed to do? I just re-uploaded it and it doesn't seem to be working in Firefox, still. Works fine in Chrome, though.
      {{ DiscussionBoard.errors[1814047].message }}
  • Profile picture of the author Bruce Hearder
    Hi Pat,

    This is my suggestions (2 cents worth) for making this work better.

    1. Remove the following line from the header of the file :

    [script type="text/javascript" src="swfobject.js" /]
    You will need to replace the square brackets with "angle brackets"

    2. In the main section of the page, insert

    [script type="text/javascript" src="swfobject.js"][/script]

    just before the line that says :

    [script type="text/javascript"]

    It should work better now..

    Hope this helps

    Bruce
    {{ DiscussionBoard.errors[1814104].message }}
    • Profile picture of the author halfpoint
      Perfect.

      It appears to be working in both Chrome and Firefox now.

      Thank's a lot for your help, Bruce!
      {{ DiscussionBoard.errors[1814124].message }}
      • Profile picture of the author Bruce Hearder
        No problems..

        Leave your money on the fridge on the way out

        Take care

        Bruce
        {{ DiscussionBoard.errors[1814157].message }}
  • Profile picture of the author articlemaddness
    It looks ok in all browsers. If you ever want to test your pages in multiple browsers and screen sizes check out Check Browser Compatibility, Cross Platform Browser Test - Browsershots note: it can take about 30 minutes dependent on how many different browsers you choose.
    ~Mike
    Signature

    cheatsheet & reports
    visit: http://cheatsheetreports.com

    {{ DiscussionBoard.errors[1817061].message }}
  • Profile picture of the author tunnu
    IE has some other format.. so CSS needs to be updated.. check it out with professionals
    {{ DiscussionBoard.errors[1819548].message }}

Trending Topics