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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:17:44+00:00 2026-05-13T18:17:44+00:00

I just inherited a project where the main navigation menu is currently Flash. They

  • 0

I just inherited a project where the main navigation menu is currently Flash. They asked if I could switch it to javascript, so I agreed to give it a shot. The navigation structure itself is dynamically generated on the server and new nodes are picked via an ajax call. The return is all XML.

To prevent delays on initial load, the server sends down the xml from a first call for the current page into a textarea.

Firefox and Chrome can pull that xml and manipulate it in jQuery just fine. IE, however, chokes out. I know that IE doesn’t play well if the MIME type isn’t set, but as the server is essentially off limits, I need to find a way around this.

An example of the xml stored in the textarea would be something like:


<nav>
<item name='Link 1' url='http://www.somesite.com' img='/path/to/image.png' />
<item name='Link 2' url='http://www.somesite.com' img='/path/to/image.png' />
</nav>

I am grabbing the contents using the .val() method, which works in everything other than IE. I have banged my head for awhile on this. Any help?

  • 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-13T18:17:45+00:00Added an answer on May 13, 2026 at 6:17 pm

    This issue has been resolved here

    <script type="text/javascript">
    
    $(parseXml($("#xml").val())).find('item').each(function(){
     ...
    
    });
    
    function parseXml(xml)
    {
        if (jQuery.browser.msie)
        {
            var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
            xmlDoc.loadXML(xml);
            xml = xmlDoc;
        }
        return xml;
    }
    
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just inherited a project, and been told that an entire folder, includes/ needs
So I'm pretty new to Qt, and I've just inherited a project from someone
I've just inherited a large project previously coded by about 4-5 people. The documentation
I just inherited a project with LinQ to SQL Database file. I need about
I just inherited a project that has code similar to the following (rather simple)
I just inherited a project because the last developer left. The project is built
I've just inherited (ahem) a QNX realtime project which uses a void*/downcasting/case statement mechanism
I just inherited a large web project using SVN for VCS. There are no
I have the following code in the VB6 project I just inherited. Case Is
I just inherited a project implemented in JSF. I have the following code which

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.