PDA

View Full Version : back to original url in a webbrowser object



yosik
02-01-2003, 11:57 AM
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

Derek
02-01-2003, 05:20 PM
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
02-01-2003, 06:00 PM
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]

yosik
02-02-2003, 12:37 AM
Thank you Derek, I will try that.
Yossi

Lorne
02-03-2003, 09:21 AM
Knowledge Base article posted. Thanks Derek. /ubbthreads/images/icons/smile.gif

taccurso
04-08-2003, 03:17 PM
Is there a sample of this project type somewhere?