2023-08-22, 21:17:20
Hi,
In order to receive a webmessage that is send from javascript, you need to enable it via the property WebMessageEnabled and set that to true before sending a webmessage.
The mechanism is described here: VB6 - Web Message Example.
Using script dialogs to transfer data is.. a bit non standard I guess, although I suppose it is possible.
In order to have the onScriptDialogOpening event to trigger, you have to set the property DefaultScriptDialogsEnabled to false to indicate that you want to handle the dialogs yourself.
If you can adjust the javascript to send a webmessage then that's what I would go for.
--
Wil
In order to receive a webmessage that is send from javascript, you need to enable it via the property WebMessageEnabled and set that to true before sending a webmessage.
The mechanism is described here: VB6 - Web Message Example.
Using script dialogs to transfer data is.. a bit non standard I guess, although I suppose it is possible.
In order to have the onScriptDialogOpening event to trigger, you have to set the property DefaultScriptDialogsEnabled to false to indicate that you want to handle the dialogs yourself.
If you can adjust the javascript to send a webmessage then that's what I would go for.
--
Wil