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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:40:54+00:00 2026-05-26T05:40:54+00:00

I am trying to show a list of survey by javascript. Here is the

  • 0

I am trying to show a list of survey by javascript.
Here is the code:

function ParseSurveys(surveyList) {
        var sideBarSurveyList = document.getElementById('sliding-navigation');

        for (var m = 0; m < surveyList.length; m++) {
            var child = document.createElement("li");
            child.innerHTML += "<li class='sliding-element'><a href='javascript:sendSurvey(" + (m + 1) + ")'>Survey " + surveyList[m].Id + "</a></li>";
            sideBarSurveyList.insertBefore(child, sideBarSurveyList.lastChild);
        }
    }

It works perfectly on Chrome and Firefox, but it doesn’t on IE9.
On Chrome and Firefox, the survey list look like this:
• Survey 1
That’s what I want.

However, on IE9, it looks like:
•
• Survey 1

How come the IE9 shows two dots?
Can I have a easy solution for this? I don’t want to write two versions of Javascript for IE9 and any other browsers. 🙂

Thanks!
Ashley

  • 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-26T05:40:54+00:00Added an answer on May 26, 2026 at 5:40 am

    Perhaps you are not intending to nest two <li>s? Try omitting the <li> tags in your innerHTML assignment:

    function ParseSurveys(surveyList) {
        var sideBarSurveyList = document.getElementById('sliding-navigation');
    
        for (var m = 0; m < surveyList.length; m++) {
            var child = document.createElement("li");
            child.className = 'sliding-element';
            child.innerHTML += "<a href='javascript:sendSurvey(" + (m + 1) + ")'>Survey " + surveyList[m].Id + "</a>";
            sideBarSurveyList.insertBefore(child, sideBarSurveyList.lastChild);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to show a list of all users but am unsure how to
I'm trying to show a list of data in an android activity. Normally anyone
I am trying to show Grouped Products list based on attributes of its associated
Im a newbie ih php.Im trying to show drop down list values from database
I am trying to use UIMenuCnotroller to show a list of dynamically generated items,
Im trying to make the contents of a List thats a dependency property show
I am trying to list product variations with their quantities ordered, BUT ALSO show
I'm trying to show a list of all Tasks (including the associated project info
i am trying to show a list of users of my application school, when
I am trying every option to show List data on a web part and

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.