konq-e Digest, Vol 46, Issue 5

huzj huzj at magima.com.cn
Fri Mar 2 04:41:16 CET 2007


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: <konq-e-request at kde.org>
To: <konq-e at kde.org>
Sent: Tuesday, February 27, 2007 7:00 PM
Subject: konq-e Digest, Vol 46, Issue 5


> Send konq-e mailing list submissions to
> konq-e at kde.org
>
> 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
> konq-e-request at kde.org
>
> You can reach the person managing the list at
> konq-e-owner at kde.org
>
> 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" <hongtyang at gmail.com>
> Subject: help! how to call native c method from konq-e kjs
> To: konq-e at kde.org
> Message-ID:
> <fb9bfbe60702260804p4abfa939t59b768adca3ec1ea at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>
>
>
> ------------------------------
>
> _______________________________________________
> konq-e mailing list
> konq-e at kde.org
> https://mail.kde.org/mailman/listinfo/konq-e
>
>
> End of konq-e Digest, Vol 46, Issue 5
> *************************************
>




More information about the konq-e mailing list