Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #451410 Score: 0
    Profile photo of Heather Miller
    Heather Miller
    Member
    beginner
    intermediate
    friend finder
    curious george
    wise owl
    @hmiller3390

    We love the new external web link feature, but we have a specific project that requires some of our links to open in the same window instead of a new window. Is there a way we can edit the published package so that some of our links open in the same window?

    #451417 Score: 1
    Profile photo of John Blackmon
    John Blackmon
    Moderator
    beginner
    intermediate
    contributor
    friend finder
    advanced
    junior moderator
    wise owl
    LUC16
    LUC16 Attendee
    verified member
    58 pts
    @johnb

    If you want to change out the current windows contents, effectively exiting the scenario, you could use the JavaScript notifications that are detailed here:

    https://cenariovr.com/blog-posts/communicating-between-cenariovr-and-other-content.html

    Basically, you’ll need to “catch” the notifications in script in the outside frame that is hosting the content, and then change out the current window contents.

    This post has received 1 vote up.
    #451444 Score: 0
    Profile photo of CarlFink
    CarlFink
    Member
    beginner
    intermediate
    contributor
    LUC16 Attendee
    wise owl
    curious george
    advanced
    friend finder
    48 pts
    @CarlFink

    Have you considered adding a feature like what Second Life has, where a web page can be displayed in a frame within their VR environment? I suspect that’s what Heather is looking for.

    #451451 Score: 0
    Profile photo of Heather Miller
    Heather Miller
    Member
    beginner
    intermediate
    friend finder
    curious george
    wise owl
    @hmiller3390

    That would also be a cool feature that I’m sure we could use in other projects.

    For this project, we have created a virtual tour and to keep the published file size down, we built each tour location as a separate Cenario file. We uploaded the separate published files for each location to a web server (so each location is a separate external web link).

    We have hotspots in the tour that allow users to navigate to a specific tour location (the external web link to the published Cenario file). When it opens in a separate window, their previous location tab(s) remain open, so we really want to set it to open the new location in the same tab.

    #451498 Score: 0
    Profile photo of John Blackmon
    John Blackmon
    Moderator
    beginner
    intermediate
    contributor
    friend finder
    advanced
    junior moderator
    wise owl
    LUC16
    LUC16 Attendee
    verified member
    58 pts
    @johnb

    You definitely will be able to use the JavaScript notifications to do that then. Just catch the notification for a click on a hotspot that you want to change the URL, and set the URL in your script.

    #451511 Score: 0
    Profile photo of Heather Miller
    Heather Miller
    Member
    beginner
    intermediate
    friend finder
    curious george
    wise owl
    @hmiller3390

    Great – thank you so much for your help!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.