[Gambas-user] Some documentation for webview in 3.16 execjavascript ??

Bruce Steers bsteers4 at gmail.com
Fri Jun 25 15:20:42 CEST 2021


gtk webview docs clearly says it does what the qt5 webview does so refer to
qt5 webview docs
http://gambaswiki.org/wiki/comp/gb.qt5.webview/webview/
http://gambaswiki.org/wiki/comp/gb.qt5.webview/webview/execjavascript

BruceS

On Fri, 25 Jun 2021 at 11:02, Martin <mbelmonte at belmotek.net> wrote:

> what I would like to know is, if it is possible or not, to send javascript
> commands to the WebView control of the gb.gtk3.webview component, of course
> without enabling gb.qt5.webkit in the project, since that would imply
> disabling gb.gtk3.webview.
> On 24/6/21 17:16, John Dovey wrote:
>
> I was hoping there would be documentation on webview for qt4, but no
> luck... circular reference :-(
>
> [image: image.png]
>
> [image: image.png]
>
> On Thu, 24 Jun 2021 at 03:15, Martín <mbelmonte at belmotek.net> wrote:
>
>> I'm looking for documentation for the control WebView because in gambas
>> wiki is blank or some sample program on this version of WebView.
>>
>> I share here a project which i use for learning and testing.
>>
>> I want to change the text content and text style like as text editor
>> program.
>>
>> Could be possible someone do this changes in the code an share, in order
>> to understand how it works.
>>
>> Thanks.
>>
>>
>> On 23/6/21 23:09, Benoît Minisini wrote:
>> > Le 23/06/2021 à 22:58, Martín a écrit :
>> >> Hello,
>> >>
>> >> I'm trying to find documentation or a usage example about the webview
>> >> control for gb.gui but I can't find anything.
>> >>
>> >> I have already searched in [1] but the page is blank.
>> >>
>> >> [1]
>> >> https://gambaswiki.org/wiki/comp/gb.qt5.webview/webview/execjavascript
>> >>
>> >> Would it be possible that someone could give me some information
>> >> about it?
>> >>
>> >> Also I use this
>> >>
>> >> WebView1.ExecJavascript("document.execCommand('foreColor', false,
>> >> 'red');")
>> >>
>> >> But doesn't work
>> >>
>> >> Thanks.
>> >>
>> >>
>> >>
>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>> >
>> > This is the javascript execution of WebKit, you can find the
>> > documentation in the Qt documentation or WebKitGtk documentation,
>> > depending on which one you use.
>> >
>> > But you won't find any information more than "execute javascript in
>> > the context of the browser page".
>> >
>> > Regards,
>> >
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210625/73aedc26/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 30458 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210625/73aedc26/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 30103 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210625/73aedc26/attachment-0003.png>


More information about the User mailing list