I'm using Delphi XE2 in Windows 7 64 bit, I put TWebBrowser component in a Form. I navigate it to a blogspot website, e.g:
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
it shows JavaScript Error (HTML Parsing Error), then I turn Silent properties to True as follow:
Webbrowser1.Silent := true;
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
But the browser cannot open the page properly (only show background image). I tried other blogspot websites and got same problem. Any solution to display blogspot website correctly in TWebBrowser?
Twebbrowser uses IEFRAME
IEFRAME depends on the version of internet explorer you are running on that computer
You can deploy IEFRAME.DLL (in c:windows/system32 )with your application so you can be sure the same version is used everywhere so you wont get inconsistencies between computers.
However newer ones wont work on XP and there are some directx requirements.
A good alternative is
Delphi Embed chromium, it makes your deployed application a lot bigger (+-15MB) but you can be very sure it works everywhere and always (windows 8 to XP) and it will always produce the same page
Also if you have to manipulate the DOM or insert javascript (to communicate with the page)
this will be easier and will work more consistently.
Here is a link for the latest version:
https://code.google.com/p/dcef3/
Related
i had to change code of an older Delphi application in D2007. I required a login screen that was online (with Auth0) , in wich i could read the state of the result and according to that do some license handling.
The problem is, that whenever i try to login with Google Social account , it results in an information screen that wants me to update my browser.
The app is a Win32 app , running on Win32 and Win64 devices. I had tried to work with this solution :
How to have Delphi TWebbrowser component running in IE9 mode?
But any DWORD value i give to my exe , it just doesn't help me get rid of the notification.
I've been looking to use TChromium instead of TWebBrowser, but it seems buggy to me.
Are there any other ways to deal with this issue? Thanx
If you use DWORD values mentioned in the linked topic then TWebBrowser would be working in IE9 emulation mode. And since IE9 is considered as being old various sites will advise you to update your browser.
So what you need is to make sure that TWebBrowser in your app is running in IE11 emulation mode instead.
Based on information found here:
https://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx
you should use DWORD value of 00011000 instead for full IE11 emulation.
Using Delphi 7 on Win7, all updates.
The TWebBrowser component (or TEmbeddedWebBrowser) does not load http://www.sreality.cz correctly. Until recently, everything was ok. I think it happened after deploying multilingual websites. However, in IE or Chrome, everything is ok.
Setting Internet Feature Controls was unsuccessful.
Do you know the answer?
I'm tasked with fixing a bug on the mobile version of a project I just came on (and still learning my way around it). Its a heavy use 24/7 kinda job, so not keen on the trial and error guess/upload/test style of debugging.The bug is that almost none of the controls, particularly tabs, respond to user "clicks" on the ipad. The app was developed in asp.net MVC4 and I work on windows 7 in vs2012.
We are not a mac shop, but still need to support the Ipad and phone.
This is probably a simple question: but my searching keeps taking me
here: iOS6 - removed console log for IPad - how to use web inspector on windows?
and here: Accessing iOS Safari Web Inspector from Windows Machine.
I need a way to gather actually diagnostics, like what would be available in web inspector, without having to acquire a mac.
Use weinre. It runs a webserver that that can repond to a bookmarklet or <script> to run a remote inspector.
weinre is a debugger for web pages, like FireBug (for FireFox) and Web Inspector (for WebKit-based browsers), except it's designed to work remotely, and in particular, to allow you debug web pages on a mobile device such as a phone.
Get NodeJS, NPM, and a webkit-based desktop browser to run it.
Homepage: https://people.apache.org/~pmuellr/weinre/
Docs: https://people.apache.org/~pmuellr/weinre/docs/latest/
To install with yarn:
yarn add --dev weinre
then because it's no longer maintained, you may get TypeError: mime.lookup is not a function when you try to use it, then you have to edit node_modules/connect/lib/middleware/static.js and change require('mime') to require('mime-types') on line 21 (thanks). Then start with
yarn run weinre
If you now open the url showed there, you'll see the bookmarklet you can use etc. (Note: If using this from other computers, you may have to open local firewall ports, and if debugging a https site you may have to add a reverse proxy with cors headers.)
I've been testing some samples to save webpages using TDownloadUrl, and it was really amazing, but I found some problems certain webpages, those pages cannot let to access to real content because they need to start a session o set a cookie before, so I get two situations, TDownloadUrl does...
not create/save a file with content from webpage supposedly downloaded (STATUS CODE : 5 --> dsEndDownloadData), this is because there is no cookie (STATUS CODE : 41 --> dsCookieStateDowngrade)
not save the content right instead of it saves a webpage requesting to press a link to access to content wished
Is there any way to bypass these problems using Delphi's native components, that is, no third-party components (like TEmbeddedWB)?
Thanks in advance.
Note: I'm using Delphi XE2 under WinXP with Firefox 6.0 and IE 9.0
XE2 ships with Indy 10 (which is a third-party component, but at least it is a bundled one). You can use its TIdHTTP component instead of TDownloadURL. TIdHTTP supports cookies.
I have a mozilla browser(this browser is developed for windows based mobile handsets).I have used NP plugin for rendering flash content on my browser.There are NPAPIs which can be used for controlling the flash window properties.I have used NPAPIs for getting the flash contents from the browser and rendering it on the browser.
Now I want to launch activeX control using the NPAPI.This is required for rendering flash in wince platform which uses activeX to render flash content on nay web page.Does any one know how to launch an activeX control using NPAPI so that the NPPlugin which is implemented for windows phone also works on wince platform.
Thanks in advance,
Snehal
Check out: http://code.google.com/p/ff-activex-host/
Most APIs probably work the same on WinCE, but you'll have to do some tweaking, I'm sure.