Read showToastMessage functions messages in TWebView??

Post Reply
Horizon
Posts: 1327
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 5 times

Read showToastMessage functions messages in TWebView??

Post by Horizon »

Hi Antonio,

Is it possible to read messages from showToastMessage function?

Code: Select all | Expand

showToastMessage("Warning","There is a something error (ERR10001) !","error");


Thanks.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: Read showToastMessage functions messages in TWebView??

Post by Antonio Linares »

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
Horizon
Posts: 1327
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 5 times

Re: Read showToastMessage functions messages in TWebView??

Post by Horizon »

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.04
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: Read showToastMessage functions messages in TWebView??

Post by Antonio Linares »

You can use javascript alert() or console.log()
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply