How to load exteral html file using variable as filename?

  • Hi, How to load external html file using variable as filename?

    Example:
    For load external html named "pano1.html" without using variable the code is: onclick="openurl (pano1.html, -self);"

    then for load from the variable with current-loaded scene name value, (for example "pano1" scene name) the code would be:

    onclick="openurl ((xm.scene)&.html, -self);" o maybe using ... get((xml.scene)....


    or wich is the other and correct expression?

    Thank in advanced!!!

    Greets,

    Fernando.

  • Hi,

    this would be the correct way:

    Code
    onclick="txtadd(htmlname, get(xml.scene), '.html'); openurl(get(htmlname), self);"

    First build the name and store it in a custom variable (htmlname) and then use openurl() with that variable.

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!