Announcement

Collapse
No announcement yet.

back to original url in a webbrowser object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • back to original url in a webbrowser object

    I have a webbrowser object on page1. It can have various urls beeing called into the object and also can trigger a jump to another page in AMS (I am using a dummy url, and have AMS check the url, thus jumping to the wanted page...it works well).
    Problem is that after a jump to another page I want to be ablt to go back to page1 and have the ORIGINAL url shown inthe webbrowser object. What happens is that the url that AMS "keeps" is the last one, thus I loop back to the page I came from.
    How can I come back to the original page and webbrowser content?
    Thanks,
    Yossi

  • #2
    Re: back to original url in a webbrowser object

    Hi Yosik

    The URL in a Web Browser Object will always maintain the last URL that was viewed. This was by design. Therefore, since the URL has changed for the page viewed in that Web Browser Object, that will be the current page displayed.

    If you wish to have the same URL displayed every time you view the page, you should create a "WebBrowserObject.NavigateTo" action to pre-set the URL that is displayed each time that page opens.
    You should create the action on the Page-Properties "On Show" event:

    WebBrowserObject[WebBrowser1].NavigateTo ("http://www.indigorose.com")
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      Re: back to original url in a webbrowser object

      Perhaps someone can move this to the KB, and adjust accordingly!! (it has been questioned a few times now)


      [/quote]
      HOWTO: Return a WebBrowser Object to the Original URL After Page Jump

      Document ID: IR04047


      [/quote]
      The information in this article applies to:
      [*]AutoPlay Media Studio 4.0


      [/quote]
      SUMMARY

      This article describes how to return a WebBrowser Object to its original URL after more than one URL has been used and a Page.Jump has occured, and you are going back to the page with the WebBrowser Object.

      DISCUSSION

      The URL in a Web Browser Object will always maintain the last URL that was viewed. This was by design. Therefore, if more than one URL is used in a WebBrowser Object, the last URL viewed in that Web Browser Object will be the URL displayed if you return to the WebBrowser Object after a page jump has occured.

      If you wish to have the original URL displayed every time you view the WebBrowser Object when first opening or returning to that AMS page, you should create a WebBrowserObject.NavigateTo action to pre-set the URL that is displayed each time that page opens.
      You should create the action on the Page-Properties "On Show" event.

      MORE INFORMATION

      KEYWORDS: WebBrowser Object, NavigateTo, Web Page, Original URL,


      [/quote]
      -
      = Derek
      ["All glory comes from daring to begin" - fortune cookie]

      Comment


      • #4
        Re: back to original url in a webbrowser object

        Thank you Derek, I will try that.
        Yossi

        Comment


        • #5
          Re: back to original url in a webbrowser object

          Knowledge Base article posted. Thanks Derek. [img]/ubbthreads/images/icons/smile.gif[/img]
          --[[ Indigo Rose Software Developer ]]

          Comment


          • #6
            Re: back to original url in a webbrowser object

            Is there a sample of this project type somewhere?

            Comment

            Working...
            X