-1

I make a multi-device app that has a TWebBrowser component. If i write this code

WebBrowser1.Navigate('https://google.com');

it opens the form as it should be. But if i write this code

WebBrowser1.Navigate(edit1.text);

where edit1.text=the URL of a GoogleForms form (=https://docs.google.com/forms/d/e/1FAIpQLScLDCv_LeYJzvMoxnmvt_gN_gqeup7_vbU8VLaC-qXNPEGMIQ/viewform?vc=0&c=0&w=1&fbzx=3551763952707733753), it shows the form confused (the dropdown components as list of text, the "submit" button as text etc) like this :

enter image description here

is there a solution, please ?

PS. the form is opened in Internet Explorer (and Google) right.

JimPapas
  • 715
  • 2
  • 12
  • 27

1 Answers1

0

The reason why this happens is that by default TWebBrowser component is opening web pages in compatiblity mode. This prevents myn moder web pages to show properly.

So in order to avoid this you need to opt in to the browser emulation feature using the documented registry key.

You can find more info about this on the link bellow
https://stackoverflow.com/a/25843958/3636228

SilverWarior
  • 7,372
  • 2
  • 16
  • 22
  • Thanks for your reply. I did what described in the link but i haven't any result. Besides of this, my app is supposed to be an android apk so this solution doesn't much in this case – JimPapas Feb 19 '19 at 21:21
  • What values did you use in your registry? Did you use 9000 or 9999 as stated directly in the SO answer? If so do you realize that these are to prevent IE9 to go into compatibility mode? You should have also read linked documentation that also contains values for latest IE versions. As for you mentioning android. If you are developing an android app you should have mentioned that in your question right from the start. – SilverWarior Feb 20 '19 at 04:14
  • I tried 9999. As for Android i mention in my question that is a multi device app. Thanks again – JimPapas Feb 20 '19 at 11:51
  • Value of 9999 means that webpages are displayed in IE 9 standard mode. But I'm guessing that that specific webpage requires at least displaying webpage in IE10 or IE11 mode. Check the linked documentation for proper values. – SilverWarior Feb 20 '19 at 12:17