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 499723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:00:53+00:00 2026-05-13T06:00:53+00:00

I have a page that contains an element, <displayedimage> , that is not getting

  • 0

I have a page that contains an element, <displayedimage>, that is not getting updated using jquery’s document.ready/$.getJSON funcitonality in IE 6 and IE 8 (probably IE 7 too even though I haven’t tested). This same piece of funcitonality works fine on XP Safari and OS X Safari, OS X Chrome, OS X Opera, etc. So, here’s what happens:

I have an element, , that is empty on first load, but gets populated by a javascript method executed by document.ready:

<div id="imagecontrol">
   <displayedimage></displayedimage>
</div>

gets updated by:

function loadFirstImage() {
        $.getJSON("/servlet/access/image/" + id,
            function(json) {
                $("displayedimage").html("<a href=\"/servlet/images/" + json.images[0].filename + "\"><img src=\"/servlet/images/s_" + json.images[0].filename + "\"></img></a>");
                $("imagelabel").html(json.images[0].label);
            });
}

As stated, this system works fine in OS X Safari, OS X Chrome, OS X Opera, XP Safari, but doesn’t seem to do anything in XP IE. I’ve performed simple debugging (alert(“loadFirstImage called”) in the loadFirstImage method and it gives me an alert, so it seems that it might be some .getJSON issue? Any suggestions on where to start with something like this? Thanks.

  • 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-13T06:00:53+00:00Added an answer on May 13, 2026 at 6:00 am

    Using arbitrary DOM element names can give you this kind of problems and inconsistencies.

    Why don’t you just simply use a standard element, like a div or a span perhaps?:

    <div id="imagecontrol">
       <div id="displayedimage"></div>
    </div>
    

    And in your $.getJSON callback you set the contents of it:

    $("#displayedimage").html(/*...*/);
    

    Browsers will accept any markup, even if it’s not legal HTML. By this, it means that the browser will try to guess about what you probably meant. That can lead to having browser compatibility issues as the one you are now, for that I would recommend you to validate your markup.

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

Sidebar

Related Questions

I have a view using a master page that contains some javascript that needs
I have a page that contains an iframe element. I want to have some
I have a web page that contains a div element. On the page, there
I have a page that contains an iframe that gets loaded using Javascript: index.html
I have a page that contains an element (a TextBox) that has two CSS
I have a web page that contains a div element called #order_details that is
I have a page that contains a user control that is just a personalized
In a web application, I have a page that contains a DIV that has
I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu)
I would like to have an aspx page that contains something like.... <form id=form1

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.