传递 Captivate 参数

发布于 2024-07-25 21:38:59 字数 195 浏览 4 评论 0原文

我想跟踪用户何时观看 Captivate (Flash 10.0) 视频教程。 为了做到这一点,我需要传递两个参数(员工 ID 和哪个教程),并在完成后让视频调用带有传递值的 url。 我认为我可以在视频开始时将参数传递给视频,但我不知道如何在视频完成后将它们取回。 视频的末尾将有一个“已完成”按钮,用户可以单击该按钮,但我不确定如何处理参数及其值。

I want to track when users have viewed a Captivate (Flash 10.0) video tutorial. In order to do this I need to pass two parameters (employee ID and which tutorial) and have the video call a url with the passed values when it's done. I think I can pass the parameters to the turorial when it starts but I'm not sure how to get them back out when the video is done. The end of the video would have a "Completed" button the user would click but I'm not sure how to address the parameters and their values.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

貪欢 2024-08-01 21:38:59

最简单的方法是将参数放在 HTML 文件的 JavaScript 中,而不是放在 Captivate 文件中。 实际上没有理由将参数传递到 Captivate 文件,除非您在其他地方使用它们。

如果您有 JavaScript 参数,则在 Captivate 视频幻灯片末尾,您可以简单地调用 JavaScript 函数来处理将数据发送到您的 LMS。

var employeeID = "abc123";
var tutorialID = "tutorial_01";

function setTutorialToComplete(){
   var url = "http://www.yoururl.org/index.html?emp=" + employeeID + "&tut=" + tutorialID;
   //use the URL somehow. maybe use ajax to do a post/get using your vars
}

在您的 Captivate 文件中,只需在视频结束时调用 setTutorialToComplete() 即可。

the simplest way to do it is to place the parameters in the HTML file's JavaScript and NOT in the Captivate file. There's really no reason to pass the params to the Captivate file unless you're using them elsewhere.

If you have the params in JavaScript, at the end of the Captivate video slide you can simply invoke a JavaScript function that handles sending the data to your LMS.

var employeeID = "abc123";
var tutorialID = "tutorial_01";

function setTutorialToComplete(){
   var url = "http://www.yoururl.org/index.html?emp=" + employeeID + "&tut=" + tutorialID;
   //use the URL somehow. maybe use ajax to do a post/get using your vars
}

In your Captivate file, just invoke setTutorialToComplete() when the video has finished.

吃兔兔 2024-08-01 21:38:59

Adobe Labs 的“Course Companion for Adob​​e Captivate 5.5”旨在解决诸如此类的报告问题:http: //labs.adobe.com/technologies/captivate_course/

"Course Companion for Adobe Captivate 5.5" from Adobe Labs is designed to address reporting issues such as this one: http://labs.adobe.com/technologies/captivate_course/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文