HomefieldOfView | SPi-V dev

Legend

  • required
  • not yet implemented

Navigation

user

getURL

Description

Opens the specified url in the specified browser window target.

If no target is specified, and the url looks like a file the SPi-V engine can open, the url will be passed to openURL.

Syntax

Action:

<action event="ready" type="getURL" url="path/file.htm" target="frame"/>

API call:

getURL("path/file.htm","frame")

Arguments

  • url
    URL to the file to open (relative to the engine, or full path including protocal and server).
  • target
    Target browser window/frame to open the file in. If no target is specified, the current window is used, unless the file is an image or xml file in which case the file will be opened in the current SPi-V instance. See openURL for details.

History

  • 13-Jan-06: Initial version

xml not loaded in SPi-V instance

Hi Aldo,
The API calls from Java script are working now. Thanks a lot.
Nevertheless, the getURL call is not working as described.

quote: "... unless the file is an image or xml file in which case the file will be opened in the current SPi-V instance."

The xml is shown in the current browser window instaed.
My understanding of that desciption is, that I can change the XML file (scene, tour, ...) of the running SPi-V instance. correct? (which is exactly what I need)
Hope this can be fixed easily...
Thanks in advance

I'll investigate

Probably a bug. A link would help me to reproduce the bug.

Note that if you want to change to another scene (from multiple scenes inside a tour), you're supposed to use 'setview' instead.

PS: kind-of impressed you got it going with so little information ;-)

test file here ...

Hi Aldo,
here a small test html:
http://panoquest.net/api_call_test.html
(low res image file only, for speed reasons...)
(yes, I know I can changes the scene within a xml file with 'setview', but I need to change the xml file too)

a bit of a bug indeed...

For now, use 'openurl' instead of 'geturl'

openURL works great. Thanks

openURL works great. Thanks a lot.