Pass JavaScript Variable to Lectora

adod
adod Community Member Posts: 29
So I'm just trying to get a variable from a web-site, my code may be way off as I don't do this often but it has been a trouble topic for quite some time.



Any advice, guidance or help of any sort would be GREATLY appreciated





var locate = "address"

var id = locate.getElementByID("empid");

VarID.set(id)

[/CODE][CODE]



var locate = "address"



var id = locate.getElementByID("empid");



VarID.set(id)



[/CODE]

Comments

  • adod
    adod Community Member Posts: 29
    Well another solution just dawned on me.



    The LMS reports the student name in AICC_Student_Name, so couldn't it just report the location as well.



    Is there any documentation explaining how AICC_Student_Name works, so I could do the same for location?
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!