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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:16:47+00:00 2026-05-27T16:16:47+00:00

I have $(‘#structure’).html(html); This works fine in FireFox. IE 8 doesn’t display the html.

  • 0

I have

$('#structure').html(html);

This works fine in FireFox. IE 8 doesn’t display the html. I also tried it with simple text eg.

$('#structure').html("Test");

or

$('#structure').html("<h3>Test</h3>");

All does nto work with IE 8 but in firefox. So I don’t think it is a problem with invalid html.

if I replace this with

document.write(html);

IE correctly displays the content.

I’m lost. I also tried getElementById and setting innerHTML property or .empty and append. Basically everything i tried worked in FF, nothing in IE 8.

Code runs in a .change() event which is correctly executed also in IE.

Any Ideas?

EDIT:

html is returned by a 3rd party commercial plugin. It returns browser specific code for displaying an ActiveX component (IE) or a plugin (FF). The returned html works. This is not the only place I use this.

Maybe you can’t asyonchronously load ActiveX? that would explain everything.

$(document).ready(function() {

    $('#ID').change(function() {            
        var value = $(this).val();
        getStructure(value);
    });
});


function getStructure(id){          
    $.get(
        'getStructure.php?id=' + id,
        function(data){     
            // 3rd party function call:
            var html = getObjectTag(182, 172, data.Structure); // data["Structure"] does not work too in IE, it does in FF
            // alert(html); // is displayed also in IE when uncommented
            $('#structure').html(html); 
            // alert(html); // is displayed also in IE when uncommented             
    }, 
    "json"
    );          
}
<div class="cssform">
    <div><label>ID</label><input id="ID" type="text"/></div>
</div
<div id="structure"></div>

Note that in another application i use:

var html = getObjectTag(182, 172, aData[0]);
$('td:eq(0)', nRow).html(html);

where aData is an array parameter of the calling function. This is used to display the object in the jquery plugin datatables and here ti works for IE 8 and FF without any issues.

EDIT2:

Further “analysis” makes me believe that the div with id=structure is not found in IE correctly for whatever reasons.

document.getElementById("structure").innerHTML = html;

results in the error “document.getElementById(…)” is null or not an object. using jquery the selector probably returns nothing and hence nothing further is done and no error occurs. Question is, why the element is not found? Makes no sense to me.

  • 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-27T16:16:48+00:00Added an answer on May 27, 2026 at 4:16 pm

    Ok. Found the answer:

    <div class="cssform">
        <div><label>ID</label><input id="ID" type="text"/></div>
    </div <!-- Missing closing > which somehow was accepted by FF -->
    <div id="structure"></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have you managed to get Aptana Studio debugging to work? I tried following this,
I have just tried to save a simple *.rtf file with some websites and
Have an app that can use tts to read text messages. It can also
Have a fun issue with sharepoint calendar view filtering. That code works fine: SPSecurity.RunWithElevatedPrivileges(delegate()
Have been scatching my head about this - and I reckon it's simple but
Have created simple Ajax enabled contact forms before that have around 12 fields -
Have a simple console app where user is asked for several values to input.
Have converted devise new session from erb to Haml but doens't work, this is
have anyone can tell me what syntax error on this actionscript (actionscript3.0)? var rotY:
Have a look at this url: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#column_chooser I have got the Column Chooser dialog

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.