Welcome Guest Search | Active Topics | Sign In | Register

How to create a WebView with given URL? Options
ruk
Posted: Wednesday, May 17, 2017 1:01:17 PM
Rank: Advanced Member
Groups: Member

Joined: 5/15/2017
Posts: 48
I'm creating an instance of EO.Wpf.WebControl and setting a Url when the control is constructed. So, when the control is rendered, it renders the page for given Url. Now if I navigate to back, it goes to the blank page. How do I initialize the WebControl or the WebView to start from the specified Url and not initialize with blank page. Or is there a way to clear the history so the navigation doesn't go to the blank page?

I also tried this but didn't help.
webControl.WebView = new WebView() {Url = url;}
eo_support
Posted: Wednesday, May 17, 2017 3:15:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
Hi,

What version do you use? If you use the latest build, you shouldn't be able to navigate back from the first Url.

Thanks
ruk
Posted: Wednesday, May 17, 2017 3:32:56 PM
Rank: Advanced Member
Groups: Member

Joined: 5/15/2017
Posts: 48
I'm using the evaluation copy downloaded last week - version 2017.1.42.0.
eo_support
Posted: Wednesday, May 17, 2017 4:14:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
How do you navigate back? If you check WebView.CanGoBack it should be false in your case and WebView.GoBack shouldn't do anything.
ruk
Posted: Wednesday, May 17, 2017 4:24:49 PM
Rank: Advanced Member
Groups: Member

Joined: 5/15/2017
Posts: 48
I'm just using the default context menu to go back.
e.Menu.Items.Add(new EO.WebBrowser.MenuItem("Back", CommandIds.Back));

Shortcut also has the same effect:
new Shortcut(CommandIds.Back, KeyCode.Back, false, false, false)

It is probably default command handling for the CommandIds.Back is not checking the CanGoBack.
eo_support
Posted: Thursday, May 18, 2017 2:08:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
Hi,

We have confirmed this to be an issue. We will fix this in our next build.

Thanks!
ruk
Posted: Thursday, May 18, 2017 2:13:15 PM
Rank: Advanced Member
Groups: Member

Joined: 5/15/2017
Posts: 48
Thank you. Please check the command handler for the Forward command, we may need a similar check there as well.
eo_support
Posted: Thursday, May 18, 2017 2:16:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
Hi,

We are not aware of any issue with forward. The issue now is there is an initial blank state that the browser engine should not allow user to back into. As long as that is prevented, there should be no issue with forward.

Thanks!
eo_support
Posted: Friday, May 26, 2017 2:39:23 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
Hi,

Please download build .65 from our download page. This build will not back to the initial blank state.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.