FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Read showToastMessage functions messages in TWebView??
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Read showToastMessage functions messages in TWebView??
Posted: Tue Aug 02, 2022 09:20 PM
Hi Antonio,

Is it possible to read messages from showToastMessage function?

Code (fw): Select all Collapse
showToastMessage("Warning","There is a something error (ERR10001) !","error");


Thanks.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Read showToastMessage functions messages in TWebView??
Posted: Wed Aug 03, 2022 04:21 AM

Dear Hakan,

If showToastMessage() is a javascript function available from your HTML, then you should be able to execute it using:

oWebView:Eval( 'showToastMessage("Warning","There is a something error (ERR10001) !","error")' )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Read showToastMessage functions messages in TWebView??
Posted: Wed Aug 03, 2022 05:55 AM
Antonio Linares wrote:Dear Hakan,

If showToastMessage() is a javascript function available from your HTML, then you should be able to execute it using:

oWebView:Eval( 'showToastMessage("Warning","There is a something error (ERR10001) !","error")' )


Hi Antonio,

Yes, it is. it can run in console mode. My goal is reading "There is a something error (ERR10001)!" text from message.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Read showToastMessage functions messages in TWebView??
Posted: Wed Aug 03, 2022 07:36 AM

You can use javascript alert() or console.log()

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion