You could try to go with cookies.
If you write a cookie named "MyPersonalCookie" with a parameter called "MyBookmarkedPage", you could read:
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
MyBookmarkedPage = 0;
var x = readCookie('MyPersonalCookie')
if (x) {
MyBookmarkedPage = x;
}
Then you have MyBookmarkedPage available inside the course.
Not sure its a good solution but I cant imagine any alternative yet.
You could try to go with cookies.
If you write a cookie named "MyPersonalCookie" with a parameter called "MyBookmarkedPage", you could read:
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
MyBookmarkedPage = 0;
var x = readCookie('MyPersonalCookie')
if (x) {
MyBookmarkedPage = x;
}
Then you have MyBookmarkedPage available inside the course.
Not sure its a good solution but I cant imagine any alternative yet.