FAQ
Products Showcase Download Extras Support
 
Home :: Support :: Community :: CourseLab Issues

passing variables to javascript

passing variables to javascript 
Author:  david mullock    
Date: 15.02.2010 12:22:54
Hi Folks,

Sorry to keep asking questions but, does anyone know of a way to pass variables to javascript.

What I have to do is pass the users name into javascript to be saved into a database.

I'm not allowed to use a freebie LMS such as moodle or docebo, my preferred choice.

Thanks,

Dave  
...
Re: (1) passing variables to javascript 
Author:  Slav Shchinov    
Date: 24.02.2010 13:05:39
Hi, David,

CourseLab variables are actually stored in JavaScript collections: g_arVars and g_arSlideVars (first - for global vars, second - for slide scope vars). I.e. for variable named "myvar" and scope "global" in JavaScript it can be found as: g_arVars["myvar"].  
...

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: