Re: konq-e Digest, Vol 46, Issue 5
"huzj" <[email protected]>
| Newsgroups | gmane.comp.kde.devel.konq-e |
|---|---|
| Message-ID | <[email protected]> |
hi yang, Call native c method from konq-e kjs can be done through java script host extension. In konq-e 2.x the extension code is added and a sample can be seen in add-ons/simplesound. The simple sound register a play() function to the embed sound object. When you write html code <embed name = "xxx" .....> </embed> In java script you can call "xxx.play()" to call the native c function. You can grep the ENABLE_JS_HOSTEXTEND macro in konq-e 2.x folder. But the js host extension may be lost in konq-e 3.x (the 2006 version). So I copy the code from konq-e 2.x and made some modification to make js host extension work. You can try it. regards, huhu ----- Original Message ----- From: <[email protected]> To: <[email protected]> Sent: Tuesday, February 27, 2007 7:00 PM Subject: konq-e Digest, Vol 46, Issue 5 > Send konq-e mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.kde.org/mailman/listinfo/konq-e > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of konq-e digest..." > > > Today's Topics: > > 1. help! how to call native c method from konq-e kjs (yang Hongtao) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 27 Feb 2007 00:04:15 +0800 > From: "yang Hongtao" <[email protected]> > Subject: help! how to call native c method from konq-e kjs > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > > ------------------------------ > > _______________________________________________ > konq-e mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/konq-e > > > End of konq-e Digest, Vol 46, Issue 5 > ************************************* >