HELP: why my website only works in chrome? not IE or Firefox?

5 replies
  • WEB DESIGN
  • |
i just created a website for my friend's company, but it only works in chrome, (i set chrome as my default browser), but does not work in IE or firefox, n other browsers.

the site is : yidengli-us . com, can someone help me out? I guess my code has some problems.

btw, i updated both my IE and firefox to the latest version.

MANY Thanks~~~
#chrome #firefox #website #works
  • Profile picture of the author slay2k
    Originally Posted by fridaychild View Post

    i just created a website for my friend's company, but it only works in chrome, (i set chrome as my default browser), but does not work in IE or firefox, n other browsers.

    the site is : yidengli-us . com, can someone help me out? I guess my code has some problems.

    btw, i updated both my IE and firefox to the latest version.

    MANY Thanks~~~
    Because your HTML is invalid.

    Change the </div> at the end of the line below to a </script>.

    Code:
    <script type="text/javascript" charset="utf-8"
     src="{BING-URL}/bootstrap.js?market=en-US&amp;ServId=SearchBox&amp;ServId=SearchBoxWeb&amp;Callback=WLSearchBoxScriptReady" /></div>
    Where {BING-URL} above is the link to bing.
    {{ DiscussionBoard.errors[2385339].message }}
    • Profile picture of the author fridaychild
      Originally Posted by slay2k View Post

      Because your HTML is invalid.

      Change the </div> at the end of the line below to a </script>.

      Code:
      <script type="text/javascript" charset="utf-8"
       src="{BING-URL}/bootstrap.js?market=en-US&amp;ServId=SearchBox&amp;ServId=SearchBoxWeb&amp;Callback=WLSearchBoxScriptReady" /></div>
      Where {BING-URL} above is the link to bing.



      Thanks a lot~! I added </script> before </div>.

      But it still doesn't work in IE or Firefox.
      {{ DiscussionBoard.errors[2385381].message }}
      • Profile picture of the author slay2k
        Originally Posted by fridaychild View Post

        Thanks a lot~! I added </script> before </div>.

        But it still doesn't work in IE or Firefox.
        Note that I said "change" not "add". Replace the </div> with </script>. If it still doesn't work, get rid of the entire <script> line and use Google's custom search instead.
        {{ DiscussionBoard.errors[2385393].message }}
        • Profile picture of the author fridaychild
          Originally Posted by slay2k View Post

          Note that I said "change" not "add". Replace the </div> with </script>. If it still doesn't work, get rid of the entire <script> line and use Google's custom search instead.

          yes, i gotta get rid of this bing box. when i back to template search box (default), my website works good in both browsers.
          Thank you very much~!
          {{ DiscussionBoard.errors[2385396].message }}
  • Profile picture of the author Itamar
    Always make sure you don't have unclosed tags
    These can mess up most browsers and always leads to mistake
    especially with some Javascript codes.
    {{ DiscussionBoard.errors[2385366].message }}

Trending Topics