Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: SCORM text functions
PostPosted: February 6th, 2014, 5:46 am 
Offline

Joined: June 24th, 2010, 9:22 am
Posts: 19
Opus: Pro 8.5 Version 9 preview
OS: Windows 7 Home premium, Windows Vista Business
System: Quad 6600, 3 gig RAM
Hi there

Relevance: Opus Pro 9, SCORM .zip, HTML5 or Flash format, text functions

Searched the forums and found:
1) Scripts execute immediately. Scripts work when added to actions as a script object.
2) "GetSelection" won't work

- I can successfully initiate comms with Moodle 2.5.
- Can retrieve user full name from Moodle and store in LMS_LEARNER_NAME. This yields "surname, firstname".

Then I want to isolate the first name and store it in publication variable LOGIN_FIRSTNAME by doing:
Code:
LOGIN_FIRSTNAME = String.right(LMS_LEARNER_NAME, LMS_LEARNER_NAME.length - LMS_LEARNER_NAME.indexOf(","))


This approach has always worked for me (in OPUS exe). However, this doesn't work. Is text functions not supported in HTML5 and Flash SCORM publications? The sample publication to test SCORM comms does not show manipulation of data so I can't discern anything there.

HELP, please.


For this message stefangas has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: SCORM text functions
PostPosted: February 6th, 2014, 9:28 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Code:
//LMS_LEARNER_NAME =  "Surname, Firstname";
LOGIN_FIRSTNAME = LMS_LEARNER_NAME.substring(LMS_LEARNER_NAME.indexOf(",")+2, LMS_LEARNER_NAME.length)
//window.console.log(LOGIN_FIRSTNAME)


Mack
https://twitter.com/imsmackavi

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: SCORM text functions
PostPosted: February 6th, 2014, 11:07 am 
Offline

Joined: June 24th, 2010, 9:22 am
Posts: 19
Opus: Pro 8.5 Version 9 preview
OS: Windows 7 Home premium, Windows Vista Business
System: Quad 6600, 3 gig RAM
Thank you Mack

Sincerely appreciated.


For this message stefangas has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group