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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:02:24+00:00 2026-06-07T18:02:24+00:00

I am learning jQuery so please bear with me. I am attempting to populate

  • 0

I am learning jQuery so please bear with me. I am attempting to populate an HTML unordered list using the following code. The error I am encountering is:
HTMLfile: No such interface. The code breaks on the following jQuery library statement:
fragment.appendchild(script)

Here’s the code (a fragment of a successful jQuery Ajax call).

Json contains ID and Name.

          success: function(data) {
        var $defs = $('<ul id="mylist"></ul>').insertBefore('#lst');
          $.each(data.d, function (index, list) {
            $(this).appendTo($defs).wrap("<li>" + list.Name + "</li>");
          })
        },

Thank you

  • 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-07T18:02:25+00:00Added an answer on June 7, 2026 at 6:02 pm

    I can’t be sure, because there is not enough of your script here, but it may be that your this statement isn’t pointing to an HTML element. Console log your this statement to see what it is. I don’t know what data.d is, but jQuery likes to replace this statements when you might not expect it to.

    Maybe show more of your code?

    Learning to understand what this is in JavaScript can be hard enough for people new to the language, so I generally advise people to learn JavaScript, before learning jQuery. Otherwise I think it will take longer to learn JavaScript, and be harder, more error-filled learning experience.

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

Sidebar

Related Questions

Learning jquery, so please be kind :) Using PHP, I have a table with
I'm still learning jquery and javascript so please bear with me. I've used a
Please refer code below i m learning jquery and i want to display tag
For learning jQuery UI dialog, I have the code defined below. I need to
I am using the Quicksand jquery scripts on an HTML page and using simple
I am just learning server-side JavaScript so please bear with any glaring mistakes I've
Hi everyone I am a new to jQuery. While learning I am following this
I am learning jQuery. Could someone please explain what the difference between the window.onload
In the process of learning Ajax requests using jQuery, I tried to load google
I am given a developing CMS site in wordpress.I am learning now html,css,php,jquery,ajax 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.