Basic Live Connect support for java

Koos Vriezen koos.vriezen at xs4all.nl
Thu May 9 21:40:40 BST 2002


Hi,

Ok, after studying kparts a bit, I've made this patch today. It adds a
LiveConnectExtension in the Kparts namespace. The patch for khtml can be
merged with the Java LiveConnect thing. Except for HTMLEmbedElementImpl
not connecting to the LiveConnectExtension::event signal, its pretty
complete. The event slot should evaluate 'document.embedname.event(args)'

I've also made a small patch for kaboodle as a test. Now this works:

<HTML><BODY>
<H2>audio/x-wav</H2>
<EMBED src="file:/usr/local/kde3/share/sounds/KDE_Startup.wav"
 name="audio" width=250 height=100 type="audio/x-wav">
</EMBED>
<br>
<A HREF="javascript:audio.play()">play</A>
<A HREF="javascript:audio.stop()">stop</A>
</BODY></HTML>

Thus, if a third party would support khtml plugins, it should implement
ReadOnlyPart and LiveConnectExtension for LiveConnect support.

Regards,

Koos Vriezen


On Wed, 1 May 2002, Koos Vriezen wrote:

> > > On Fri, 26 Apr 2002, Koos Vriezen wrote:
> > > > I still think setting up a khtml_plugin interface should be done first.
>
> I just discovered, stupid me, kparts plugins are already supported:
>
> <HTML><BODY>
> <H2>text/html</H2>
> <EMBED src="http://slashdot.org" name="html" width=500 height=300
> type="text/html"></EMBED>
> <H2>inode/directory</H2>
> <EMBED src="file:/home/koos" name="inode" width=400 height=300
> type="inode/directory"></EMBED>
> <H2>audio/x-wav</H2>
> <EMBED src="file:/usr/local/kde3/share/sounds/KDE_Startup.wav"
> name="audio" width=250 height=100 type="audio/x-wav"></EMBED>
> </BODY></HTML>
>
> renders a nice html page with three kparts applets.
> Pitty, that kghostview doesn't work.
>
> Hmm, I must reconsider this LiveConnect thing.
>
> Koos
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: khtml.diff.gz
Type: application/x-gunzip
Size: 2824 bytes
Desc: 
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020509/6b4fcfbd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kparts.diff.gz
Type: application/x-gunzip
Size: 1178 bytes
Desc: 
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020509/6b4fcfbd/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaboodle.diff.gz
Type: application/x-gunzip
Size: 963 bytes
Desc: 
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020509/6b4fcfbd/attachment-0002.bin>


More information about the kfm-devel mailing list