I have buttons that on click open several pages in webview.
I have the option "FollowLinks" enabled.
And WebView.CanGoBack
My question is.
How "NOT" to open the default error page when there is no connection or the page was not found?
Before using the webviewer, you can check for internet connection with the web component and the Screen.ErrorOccurred event, see this example.
While using the webviewer you can't check that. Therefore the default error page will be shown. Also if the page was not found, you will get the defined 404 page not found error page from the server.
Related
In my local environment of a particular site, when i click on a particular link ,it redirects to the same page but in the url it shows that the page has been visited.Again when i click on the link, it will direct me to that page. Any reason as to why this happens and what could be the possible solution.
For example: My sites name is abc.com. It has pages like help, contact etc. When i am on my homepage and click on help it redirects me back to my home page but in my browser the URL is shown as abc.com/help.
When i click on help again , it redirects me to the help page(URL in browser is abc/help/Help) on the second click.
This can happen if the cache or system index has been corrupted. The best solution is to typically stop & start the application and see if it comes back.
If it is still an issue and you are on an older version of DNN, make sure that the PortalAlias table doesn't have a trailing / on your portal alias.
If this isn't the case, it is possible that a custom URL impacted this, but doubtful.
Would the URI Scheme "View source" cause the content of a page to be loaded by the browser?
For example, typing in the address bar of Chrome view-source:https://www.google.com would show you the source code for google.com where as typing in https://www.google.com would show you the page we all know.
So my question is related to suspected phishing/malware sites. If I think a particular URL is malicious but want to verify by checking the source code, would going to view-source:https://www.malicioussite.com cause my browser to load the content of that page or not?
I normally use sites like WebSniffer.cc to check but it would be useful if this allowed the same.
On some websites I navigate with TWebBrowser, after the loading of the site I get this:
One or more ActiveX controls could not be displayed because either:
1) Your current security settings prohibit running ActiveX controls on
this page or 2) You have blocked a publisher of one of the controls
As a result, the page might not display correctly
I don't care if the page will display correctly or not, I just want it to display without this message!
How to disable this?
I have tried to temporarily enable everything in the Internet Options but no success, the message still appears.
I created a web app (without browser chrome) which loads most of its pages locally from index.html. Now I have one page which i can not integrate into index.html, since it has to be refreshed when loaded. I placed it on the same server and called it stats.html and link to it like this:
Stats
When I click this link, the browser pops to the front instead switching to the page without browser chrome.
How can I link to an external page in a way that it still looks like one app?
I appreciate any hints to solve this problem.
just found https://github.com/mrmoses/jQuery.stayInWebApp that seems to be the solution.
I am using version 14.67.9 of TembeddedWB in a project in delphi 2007. I use TembeddedWB in combination with loadfromstring. That all works like I want it to but when clicking on a link in the page it goes to a page I am not expecting. If for instance the page is on a particular IMDB result site and one clicks on the link the browser goes to about:/title/tt1041829/. I guess I forgot to set some extra property or I am doing something else wrong. If somebody here can point me in the right way i would appreciate that.
It looks like the browser's current URL is not updated and the default "about:blank" is used. I guess this may happen when you don't navigate to the web site directly by Navigate or Navigate2 method but load the HTML from a local file or stream.
Edit: I see, you are using LoadFromString which confirms that.
In that case, it should be possible to use OnBeforeNavigate2 event to fix the URL.
The problem is that the web page you are accessing uses relative links and the reference point that it would be relative too is your loadfromstring which loads through the "about:blank" page. Another way of fixing this would be to inject a <BASE href="http://www.originaldomain.com/originalpath"> tag in the HTML header (between the <HEAD> and </HEAD> tags) which points to the location the page was accessed from. This will tell the browser where relative tags start from and will fix the problem without requiring inspection of every link.