Beiträge von Adelphos

    It was just an example which I wrote for this topic. Well, your first example just shows the name of the variable, not the value. I've tried that one and that's where is my problem. I can't figure out the value of the variable through another variable. But thanks for the second code, didn't realize there's a description itself. But still, how to get a variable through another variable? Any other programming language I know can do that.

    Hi.

    I'm having problems with variables. I have a variable name in a variable, and I just can't find any way to get the original value through the two variables. Confusing? Well, here's a simplified example.

    Code
    <hotspot name="hs-1934" onloaded="set(desc-hs-1934, 'Description of the hs')"  style="style_hs" onhover="showtext();" />


    Next, I would like to have only one action, like this.

    Code
    <action name="showtext">showtext(get(desc-get(name)));</action>


    But it doesn't work and it seems to me that I cannot have get inside get? Is there another way to resolve the original content of the variable? I don't want to write thousand actions just for the showtext-action.