I have a variable called current_slide
which contains a string called "default"
Now I have a object called document.referencemap
:
How can I attach the "default"
string from current_slide
to the object document.referencemap
so that I will get
document.referncemap.default
?
What is the best way to attach a string to the object?
At the moment I am calling the object property manually like:
document.referncemap.default
.
Can anybody give me a hint so I can solve this issue?
My code looks like this
Because the current slide is always changing i need to load the object from the value of current_slide.