以下は、エラーをスローしていない作業コードですが、jQuery を使用して SCORM パッケージを再生しているプレーヤーから LMS にデータを送信したいと考えています。
コード -
<html>
<head>
<title>SCORM Player - <?php echo $_GET['name'] ?></title>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
$(document).ready(function(){
})
</script>
</head>
<frameset frameborder="0" framespacing="0" border="0" rows="0,*" cols="*">
<frame src="SCORM_2004_APIWrapper.js" name="API_1484_11" noresize>
<frame src="course/ThomasJefferson_sco2004/index.html" name="course" id="couse">
</frameset>
</html>
その間、ready()
これらのコードを試しましたが、クラックできません:(
$(document).ready(function(){
var stat = API_1484_11.GetValue("cmi.location");
// tried with objAPI as show here http://scorm.com/scorm-explained/technical-scorm/scorm-2004-overview-for-developers/
console.log(stat);
})
マイフォルダ構造 -
-index.php
-player.php
-course/SCORM-course (directory)
-wrap.js
-SCORM_2004_APIWrapper.js
すべてのコード -
私の index.php コード - http://pastebin.com/e8fcvxep
私の Player.php コード - http://pastebin.com/R0zRaVXJ
私の wrap.js コード - http://pastebin.com/Lte4eTKu
私のSCORM_2004_APIWrapper.jsコード - http://pastebin.com/kdQ0JR04
プレーヤーから LMS へのデータ転送をどのように処理すればよいか教えてください。