[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Basic Live Connect support for java
From:       Koos Vriezen <koos.vriezen () xs4all ! nl>
Date:       2002-05-09 20:40:40
[Download RAW message or body]


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
>
>

["khtml.diff.gz" (APPLICATION/x-gunzip)]
["kparts.diff.gz" (APPLICATION/x-gunzip)]
["kaboodle.diff.gz" (APPLICATION/x-gunzip)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic