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.
Related
I'm using Playwright (Java) to drive a particular third-party Web site, the first page of which apparently containing two images which are password protected; this causes a sequence of basic-authentication dialogs to open when the page loads.
I'd like the script to dismiss these dialogs (cancel), rather than providing any credentials, and then continue working with the page. But as it stands now, the page.navigate() blocks and eventually times out, unless I cancel these dialogs manually with the mouse.
Note that this is the native browser dialog, not anything generated from js on the page.
Is this possible with Playwright?
Interestingly, I was able to work around this by disabling images entirely in Chrome, which might have other (performance) benefits, too.
Added this to the array of Chrome startup arguments:
--blink-settings=imagesEnabled=false
Of course, this only solved this specific case, in which the login prompts were being triggered by image URLs.
In a Delphi XE8 VCL Form project using TEmbeddedWB, in EmbeddedWB1 for security reasons I set both DontExecuteActiveX and DontDownloadActiveX properties to True:
I have also disabled dialog-boxes in EmbeddedWB1 by setting EmbeddedWB1.DialogBoxes.DisableAll to True:
However, when I navigate to a page like:
https://www.iplocation.net/
or:
http://www.hostip.info/
I still get ActiveX warning dialog boxes:
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.
So how can I suppress these dialog boxes?
Locate Your EmbeddedWB component -> Events -> OnScriptError:
fill these lines here:
continuescript:=true;
showdialog:=false;
It's much better that turnin on "Silent" mode, some webpages not loading correctly with "Silent:=True" parameter...
Hope it helps
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.
I want to open a web page at default browser at a specific position and also open another webpages at that one, not new task of that browser. maybe user opens new task of that browser but by clicking a button in my delphi program the selected web page have to open at first one. is that possible? my company wants me to program such thing BUT I do not know how to do. I really appricate any help. thanks.
There are instructions here to open the default browser, but you may even be able to "run" a url, as you can from the Windows run command. You then need to retain the handle of that process so that you can do something with it.
To open a web page at a particular point you would ideally use a named anchor in the page, ie, the bit after a hash: http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_a_name If you don't have control of the page and there are no named anchors you could try scrolling: How to scroll the scrollbar in external application via WinAPI?
I have an Asp.Net MVC page that links out to a Asp.net web form with a report viewer control on it. The web form opens in a new window, and displays a report properly when clicking on the link on my MVC page. However when I close the my broswer window while the report is processing, and try to open it again, the page hangs and eventually gives me a page can not be displayed error.
Thoughts?
Initial thoughts from me are;
1) Not closing objects correctly on errors which might happen when browser windows are closed unexpectadly.
2) Report still running and not allowing another instance. easy to prove. when you get the error, close the window and click the report again. if you get your report then this may be a candidate.
3) Caching issues. try setting IE to refresh on every visit.
I think 1 or 2 are likely as I've seen this before on one of my applications where processing was interuppted.