Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6355885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:51:26+00:00 2026-05-24T22:51:26+00:00

So I am working on a project where I have a massive array that

  • 0

So I am working on a project where I have a massive array that corresponds to the colors in a picture that the user can click on in order to select a color. I have the array in a seperate .js file and after that file loads I have an onload handler begin the rest of my script. It works in Chrome / FF but in IE it does not work unless I open the debugger. If I open the debugger it reloads the page and the array works fine. I don’t have any ideas. Here is the link to my page which has the project on it its the top post on the page currently: http://sauron.hostoi.com/log/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:51:28+00:00Added an answer on May 24, 2026 at 10:51 pm

    It works in Chrome / FF but in IE it does not work unless I open the
    debugger. If I open the debugger it reloads the page and the array
    works fine.

    You’re using console.log().

    When you open the Developer Tools, the console object is defined. Until you do that, there is no console object in Internet Explorer: Does IE9 support console.log, and is it a real function?

    To fix the problem, you can either remove/comment out the console.log() calls, or add something like this at the start of your JavaScript:

    // make it safe to use console.log always
    (function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});
    

    (snippet taken from http://html5boilerplate.com/)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project. This project have a user interface that we
I'm working on a project, this project must have many users, each user can
I'm working on a project and have a problem that I believe can be
I’m working on a project and have developed the high level user requirements for
I have project that I'm working on that is going to require a webserver.
I have a fully working Setup project within Visual Studio 2008 that takes inputs
I'm working on a project where I have 2 web services that need the
I am working a project that does not have a trunk / branches /
I working on the project now which will have massive multilevel menu - to
Hi i'm working on project that have a table view with 10 controllers every

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.