dhodges47 / SCORM-LearningManagementSystem

Open Source SCORM Learning Management System demo
MIT License
145 stars 72 forks source link

How to find user actual complete course or user close the window? #24

Closed jasminrsolanki closed 2 years ago

jasminrsolanki commented 2 years ago

Hello

I have integrate this solution with my own project but when user complete course it is calling LMSFinish but the same method call for closing iframe so how i can identify user complete actual course or terminate?

dhodges47 commented 2 years ago

It's hard to answer this without knowing about your project. If you need realtime notifications you can add javascript to your page that hosts the iFrame to react to the closing of the iFrame. Or you can modify the LMSFinish code to send an event to your application, or to award a completion certificate if they passed, or any other purpose.

In my production application, the user's course listing shows whether the course is finished or in process or not started by reading from the SCORM database (cmi_core.exit and cmi_core.lesson_status).

On Fri, Feb 18, 2022 at 10:02 AM Jasmin Solanki @.***> wrote:

Hello

I have integrate this solution with my own project but when user complete course it is calling LMSFinish but the same method call for closing iframe so how i can identify user complete actual course or terminate?

— Reply to this email directly, view it on GitHub https://github.com/dhodges47/SCORM-LearningManagementSystem/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5OFTZT4XBPGXD2YCHBQLU3ZNRPANCNFSM5OYFTBQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

jasminrsolanki commented 2 years ago

I have done using call stack of LMSFinish method in javascript

Thanks