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

  • SEARCH
  • Home
  • 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 8387597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:15:23+00:00 2026-06-09T18:15:23+00:00

By every browser, I mean Safari, Firefox, Chrome, and IE9. Here is the error

  • 0

By every browser, I mean Safari, Firefox, Chrome, and IE9.

Here is the error I’m getting in IE8’s console:

'data.cities[...].country' is null or not an object

Line 374, which is below (var country = k.data.cities[i].country;):

downloadUrl(url, function(data) {
    var k = eval("(" + data.responseText + ")"); 
    var klength = k.data.cities.length;
    var countries = [];

    for(i=0; i < klength; i++) {
        var country = k.data.cities[i].country;
        countries.push(country);
    }

    countries = $.unique(countries);

    var countryLength = countries.length;

    for(i=0; i < countryLength; i++) {
        $('.ribbon').append('<a href="#" class="country '+ countries[i] +'">' + countries[i] + '</a>');
    }
});

Why would IE8 be the only browser having a problem with this line? I know the data being fed is not null, as the same data is used to place objects on a map and they display just fine.

  • 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-06-09T18:15:24+00:00Added an answer on June 9, 2026 at 6:15 pm

    I suspect that the eval() function doesn’t return what you expect.

    You might want to try using JSON.parse instead.

    You can find a parser there for browsers that don’t have native support for JSON.

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

Sidebar

Related Questions

In every browser I've used, except ie8, an absolutely positioned element can be positioned
Does including of unnecessary CSSs slow down a browser (Chromium, Mobile Safari)? I mean,
I think every browser has user-controllered full-page zoom nowadays. Is it in anyway accessible
I got following code in an XHTML-document and every browser saysit is malformed :(
This simple regex matching returns a string instead of an object on every browser
I am using the jquery datepicker with the timeplugin. This works on every browser
I'm stumped. I've created an upload image process that works in every browser except
I'm using a javascript function to submit my form. This works in every browser
I am using css3 for button, It is running well on every browser but
I am using <br> that work differently in every browser so I decide to

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.