Jump to content

Twebbrowser HTML tag to UniHTMLFrame1


Recommended Posts

Hiall

 

I have old project . Used Twebbrowser show web mode on win32 application.

I want Transfer HTML from Twebbrowser to UniHTMLFrame ..

 

I strongly recommended you to use TUniURLFrame instead of TUniHTMLFrame.

You've just only set its URL property to the link you've passed for "Navigate" method of TWebBrowser.

 

Ex.

WebBrowser1.Navigate('http://xxx'); --> UniURLFrame.URL := 'http://xxx';

 

By the way, Patmap's UniGoogleMap component is better way for refactor your app. :)

Link to post
Share on other sites

Hi all

more infomation.

I developed my programs in GoogleMap API V3, funtion

Distance Matrix,Directions Waypoints Ref --->

http://www.delphipraxis.net/157004-google-maps-ueber-com-component-object-model.html is good project for delphi&google API

 

Result Output on Twebbrowser for win32 application .

I want Transfer Result form Twebbrowser to UniHTMLFrame component result all funtion on webmode

PatMan's UniGoogleMap is goodjob I used in my project but not support all funtion Google API .

 

 

 

Thank U

Link to post
Share on other sites
  • Administrators

I'm afraid it is not possible. First of all you can't instantiate a TWebBrowser inside a uniGUI application. Second when displaying google maps in a TWebBrowser, it will contain lots of dynamic JS code and other things which can't be simply transferred by copying HTML code.

Link to post
Share on other sites
  • 3 years later...

How to obtain the html code of a page open in UniURLFrame1.URL.

example:
// Loading the site
UniURLFrame1.URL:='http://www.nfe.fazen...do=XbSeqxE8pl8='

// Getting html code site after being loaded
UniMemo1.text: = UniURLFrame1.html.text;

My problem is getting the code, someone can help me with this?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...