Getting HTML from oBrowser

Alex Clay aclay at mac.com
Tue Nov 27 08:35:01 EST 2018


Hi Will,

You could grab the $currenturl property and use the HTTPPage command to request it directly in Omnis. The downside is that you have to request the page twice, and if the page title is dynamically changed on the page you won't get the current value.

Perhaps you could roll a simple JS component with a javascript function you can call from Omnis that populates the page title in a property. I don't have too much experience doing this, but I understand it should be possible.

Alex

> On Nov 27, 2018, at 06:12, Will Adkin via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hi List.
> 
> Does anyone know if there is a way to extract the raw HTML from the oBrowser component? 
> 
> We need to parse the HTML page to strip out the page title, seems like an obvious thing to have but we cant find any reference to this in the manuals?
> 
> Thanks for any pointers! 
> 
> Will
> Will Adkin / Software Development Manager
> will.adkin at lineal.co.uk <mailto:will.adkin at lineal.co.uk>
> Lineal Software Solutions 
> 01271 375999 <tel:01271%20375999> 
> Unit 7, Riverside Court, Castle Street
> Barnstaple, Devon, EX31 1DR 
> www.lineal.co.uk <http://www.lineal.co.uk/>
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 




More information about the omnisdev-en mailing list