Display all of the outcomes in a list from one mod at at time Ask Question

Course Queries Syllabus Queries 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago


This is the xml followed by the code I'm using to call it. I would like all of the learning outcomes for a single jen_mod to display in a list. You can see from my naming conventions, that a.) I am making sure that I can separate my code from the blackboard system, b.) I am old.

 xml version='1.0' encoding='UTF-8'?>
     id = '1'>
         Introduction to the Course 
                Student will be able to  navigate the course, and contact the instructor.
                Student will be able to  explain the course requirements.
                Student will be able to complete a MyLab Demonstration.
                Student will be able to compile a basic lab report.
                Read page: Start Here! 
                Read page: About your Professor 
                Discussion: Introduce yourself to the class. 
                Survey: Introduce yourself to me!
                Read the Syllabus 
                QUIZ: You will have 30 minutes to complete this quiz
                Try out a MYLAB to see how they work! 
                Assignment: The b.com/tag/basics">basics of a MyLab Report
    
     id = '2'>
         Evolution of Cognitive Psychology 
                Student will be able to describe the history of b.com/tag/events">events related to cogntive psychology.
                Student will be able to explain the relationship between behavioral and cognitive psychology.
                Student will be able to name the  fields of cognitive study.
                Student will be able to 
                Reading: Introduction to Cognitive Psychology 
                Video: The Wierdest Video about the History of Cognitive Psychology You'll See Today
                Quiz: Evolution of Cognitive Psychology
    
     id = '3'>

...

//This is the last version of my working code. I have tried several ways to iterate the learning outcomes but can't quite get the knack.

 id="mod">
type="text/javascript">/*

//The blackboard b.com/tag/system">system enters a zero here. When I enter a value thinking I could call a particular mod it crashes

function loadmod(i) {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function() {
        if (this.readyState == 4 && this.status == 200) {
            myFunction(this, i);
        }
    };
    xmlhttp.open("GET", "https://blackboard.sc.edu/bbcswebdav/courses/DL-PSYC405-SANDBOX/HTMLOBJECTS/jen_modules_460.xml", true);
    xmlhttp.send();
}

function myFunction(xml, i) {
    var xmlDoc = xml.responseXML; 
    x = xmlDoc.getElementsByTagName("jen_mod");
    document.getElementById("mod").innerHTML =
    "Module: " +
    x[i].getElementsByTagName("jen_title")[0].childNodes[0].nodeValue +
    "<br>Learning Outcome: " +
    x[i].getElementsByTagName("jen_learning_outcome")[0].childNodes[0].nodeValue +
}
/*]]>*/
profilepic.png
manpreet 2 years ago


First-off, with XML you need one element as the root element of the entire document.

How you have it structured, there are multiple elements serving as the root element:

xml version='1.0' encoding='UTF-8'?>
 id = '1'>...
 id = '2'>...

You'll need to restructure so that there's one element in the root:

xml version='1.0' encoding='UTF-8'?>

     id = '1'>...
     id = '2'>...

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.