Variable Attributes in Lectora with Javascript

ecuevas1195
Community Member Posts: 5
Hi all!...
I've worked on Lectora for the last few days and gathering info about how javascript works with Lectora. Due there isn't a developer site I wondering what is the structure of a variable definition. I found a js script and I want to know how the variable attributes defines the following example.
var VarBookmarkTitle = new Variable( 'VarBookmarkTitle', '0', 0, 0, null, null, 'page1.html', f );
Thanks in advance for all your comments.
I've worked on Lectora for the last few days and gathering info about how javascript works with Lectora. Due there isn't a developer site I wondering what is the structure of a variable definition. I found a js script and I want to know how the variable attributes defines the following example.
var VarBookmarkTitle = new Variable( 'VarBookmarkTitle', '0', 0, 0, null, null, 'page1.html', f );
Thanks in advance for all your comments.
Comments
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamYou can find that "class" defined in trivantis-cookie.js
function Variable(name,defval,f,cm,frame,days,title)
name - the variable name
defval - default value
f - flag for time (0 - not time related, >0 - time related)
cm - CourseMill variable (set to zero if not CourseMill related)
frame - indicates course type (null, 'scorm', 'scorm2004', 'tincan')
days - how many days the value is valid for or null
title - the name of the title
varName.getValue() to get the current value
varName.set('something') to set the value
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