You are not logged in.

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 330

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

1

Friday, February 20th 2015, 8:06am

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.

2

Friday, February 20th 2015, 10:14am

Hi,

this would be the correct way:

Source code

1
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

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 330

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

3

Friday, February 20th 2015, 2:32pm

Thanks very much Klaus!!!!,

Greets,

Fernando.