Basic Live Connect support for java

David Faure david at mandrakesoft.com
Wed May 15 09:10:52 BST 2002


On Thursday 09 May 2002 22:40, Koos Vriezen wrote:
> 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.

That's great design IMHO ;)
Didn't check the details of the patches, but the idea sounds good.
And if it even works - feel free to commit.

-- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KDE, Making The Future of Computing Available Today





More information about the kfm-devel mailing list