Recent

Author Topic: Linux WebBrowser  (Read 4640 times)

Giorgos Xou

  • Newbie
  • Posts: 4
Linux WebBrowser
« on: April 20, 2014, 05:19:18 pm »
I am trying to create an application on Linux that will use a WebBrowser , but i can 't.... because when i use  IpHtmlPanel1.OpenURL('http://www.site.com'); it gives me the same error again and again (No data provider assigned)... Help Please...
« Last Edit: April 20, 2014, 05:23:50 pm by Giorgos Xou »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Linux WebBrowser
« Reply #1 on: April 20, 2014, 05:36:41 pm »
As well as dropping a TIpHtmlPanel on your form, you also need to drop a TIpFileDataProvider on your form (its icon is just to the left of the TIpHtmlPanel icon on the IPro palette page).
Then use the Object Inspector to set the DataProvider property of the TIpHtmlPanel to point to whatever you named the dataProvider component.

Giorgos Xou

  • Newbie
  • Posts: 4
Re: Linux WebBrowser
« Reply #2 on: April 20, 2014, 05:53:59 pm »
Thanks :D
« Last Edit: April 20, 2014, 06:13:15 pm by Giorgos Xou »

Giorgos Xou

  • Newbie
  • Posts: 4
Re: Linux WebBrowser
« Reply #3 on: April 20, 2014, 06:49:17 pm »
I set the DataProvider property of the TIpHtmlPanel but when i load a url with ".OpenURL" i cant view The Site...

 iphtmlpanel1.OpenURL('http://forum.lazarus.freepascal.org/');

when i use the same way to make a browser in Windows 7 it gives me this error (Resource unvailable:http://forum.lazarus.freepascal.org/)
« Last Edit: April 20, 2014, 07:19:22 pm by Giorgos Xou »

Giorgos Xou

  • Newbie
  • Posts: 4
Re: Linux WebBrowser
« Reply #4 on: April 21, 2014, 03:03:29 pm »
When i Click run and click on Browser it doesn 't load the URL Why ?

 

TinyPortal © 2005-2018