Pages Clicks

tomtom
Community Member Posts: 27 ♪ Opening Act ♪
I have created a material which is pretty large 120 pages and include test 10 question. When the client take the quiz the final score is saved into the database this part is working.
What I need is to be able to put the time into the database after clicking on the next button on each page. The reason for this Is the client can not take the quiz until spent 3 hours on the materials. Also if they close the material and then reopen again should only open . Unless somebody can tell me how to do this using the other way
What I need is to be able to put the time into the database after clicking on the next button on each page. The reason for this Is the client can not take the quiz until spent 3 hours on the materials. Also if they close the material and then reopen again should only open . Unless somebody can tell me how to do this using the other way
Comments
-
if you are using the time function in SCORM you can force Lectora to submit all variables to the database by executing an action on each page that is a go to web address and entering javascript:LMSCommit(). This will send all of the data to the LMS that is a persistent variable. I wouldn't put it on the NEXT button but rather the first action on the next page which accomplishes the same goal. However, this results in a lot of extra of hits on the database and can bog down performance. The total time variable can be inconsistent too. I've had issues using this as the best method.
My courses limit the total access time to the course which counts down the time instead of up. But it's the same thing as what you want just in reverse. I set a persistent variable called MasterTime and give it a value in seconds equivalent to the total time that they can access. Then on every page I put an action group that has one action that reduces the MasterTime variable by one. Finally, there is an action in the root of every page that runs that action group on an interval of 1 second. So every second, the MasterTime variable is reduced by one second which keeps time for what I want to accomplish.
One last thing. People can simply go to a page and let it sit for an hour which would count down the time without them doing anything. So I set an individual timer that counts down 10 minutes and resets on every page. If on any given page that timer reaches zero, I take them to a "timeout" page which has an action to reset the bookmark to the previous page visited, adds back the time that has been sapped by sitting on the previous page for 10 minutes and then closes the course after 60 seconds. Again, you can do the same thing in reverse.
Hope this helps. -
Well then it's a matter of how your data is being stored and retrieved. And it sounds like its a custom script so I'm afraid I may not be of much help. Without LMS variables and data storage/retrieval, its all about how you program the scripts to use the data. And that is a much larger question and solution than I will be able to provide.
-
I think the problem is clear, but I will try again. I have 100 + slides before the client can reach the final test and the there is a requirement 3 hours, So the client have spent at least 3 hours on the slides before going to the final test.
So i have decided to block on each page the next button for x number of minutes (determined by the material). When the button becomes available I want the client to move on to the next page as well saving to the database the page there were on and the amount of time spent. Because if the client comeback I do not want them to start all over again.
So the questions are:
1. How can i set the script to run on every button click.
2? How can I use the databse to setup the number of pages the client can already seen, so he/she do not have to go throught the timer again
3. How to set times on each page
Hope made it clear -
1. Why aren't you using an LMS? Moodle is FREE. It'll properly track where your user left off and has an Attendance Register plugin that will do what you want at no cost.
2. If you do not want to use an LMS then why are you using Lectora at all? This sounds like a job much better suited to building from scratch without a rapid delivery authoring tool. Interfacing all what you are trying to pull off with Lectora, while possible, will be difficult.
You seem to be endeavoring to build your own little LMS. I assume you've already taken care of how you are tracking who's actually taking the training (log-in system)?
If you were my client I would strongly advise the use of an LMS. Please do not take this the wrong way, I do not mean it to be disparaging in any way. The questions you ask lead me to believe that you are not an experienced programmer (front or back end) and therefore would need a lot of coding assistance. That means $$$. I'll bet you can download, install and get something working with Moodle in a day without spending an additional dime even as a novice.
Switching gears now. To answer one of the questions from your first post, if you are receiving the content as JSON data from your database you can set up a loop and assign the retrieved data to pre-designated Lectora variables.
To answer your three questions from the last post:
1. How can i set the script to run on every button click?
I doubt you meant EVERY button click, right? Did you mean the "next" button or literally every time a participant clicks any button at all in your content? In either case you can put a run javascript action on any button you wish that will call your custom function (script).
2. How can I use the databse to setup the number of pages the client can already seen, so he/she do not have to go throught the timer again
Well, you could set up fields in your database to track the current page and last page visited. Your custom script would have to use this data to determine if the page has been visited BEFORE running the timer and skip the timer if it has.
3. How to set times on each page
Because there are different methods, you would need to elaborate on how you are tracking time to begin with.
Again, all this would be avoided and a lot more built in functionality would be available for your use if you used an LMS. Sorry, but I do not think you'll find a simpler answer. -
Follow the 101-tutorials of Trivantis on Lectora, they show most basics. If you need extra functionality, then Javascript and external HTML are the most common practices. As with most tools, there are 100 ways to achieve something, since your skipping a LMS most of the common functionality is out of scope. If using a rapid elearning tool like Lectora its not wise to skip the most important features of the tool at hand, i do think you either should use a LMS or skip Lectora and build what you want/need in Bootstrap or any other framework.
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products