#441152 Score: 0
Profile photo of TomTom
TomTom
Member
beginner
intermediate
wise owl
friend finder
curious george
contributor
@TomTom

Thank you. I have followed the instruction and I got this far.

function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, ‘\\$&’);
var regex = new RegExp(‘[?&]’ + name + ‘(=([^&#]*)|&|#|$)’),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return ”;
return decodeURIComponent(results[2].replace(/\+/g, ‘ ‘));
}

var userkey1 = getParameterByName(‘userKey’);
var sessionUnitKey1 = getParameterByName(‘sessionUnitKey’);
alert(userkey1 );

I have created 2 variables in Lectora userkey and sessionunitkey

The problem is to set the variable for Lectora .

 

when I do this I get an error message

Varuserkey.set( userkey1 );

Varsessionunitkey.set( sessionunitkey1);