From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: XWidget/WebKit: Getting Web Content From Webkit To Emacs Date: Mon, 25 Jan 2016 12:34:21 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453721705 10947 80.91.229.3 (25 Jan 2016 11:35:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2016 11:35:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vasilij Schneidermann Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 25 12:34:55 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aNfQ6-0002vp-2Y for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 12:34:54 +0100 Original-Received: from localhost ([::1]:37660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNfQ5-00034m-4p for ged-emacs-devel@m.gmane.org; Mon, 25 Jan 2016 06:34:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNfQ0-0002z4-Aa for emacs-devel@gnu.org; Mon, 25 Jan 2016 06:34:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNfPw-0000Uv-Ai for emacs-devel@gnu.org; Mon, 25 Jan 2016 06:34:48 -0500 Original-Received: from mx6.bahnhof.se ([213.80.101.16]:42286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNfPw-0000Ue-3x for emacs-devel@gnu.org; Mon, 25 Jan 2016 06:34:44 -0500 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx6-reinject (Postfix) with ESMTP id 4311E415A4; Mon, 25 Jan 2016 12:34:42 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF2) Original-Received: from mf2.bahnhof.se ([127.0.0.1]) by localhost (mf2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fTNrSHemYkep; Mon, 25 Jan 2016 12:34:34 +0100 (CET) Original-Received: from mta.verona.se (h-235-62.a149.priv.bahnhof.se [85.24.235.62]) by mf2.bahnhof.se (Postfix) with ESMTP id 4469C940254; Mon, 25 Jan 2016 12:34:31 +0100 (CET) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id D602D4E8FFB; Mon, 25 Jan 2016 11:34:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fIJ6frJ8V5VM; Mon, 25 Jan 2016 12:34:21 +0100 (CET) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id 97BCF4E3229; Mon, 25 Jan 2016 12:34:21 +0100 (CET) In-Reply-To: (Vasilij Schneidermann's message of "Mon, 25 Jan 2016 12:14:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.80.101.16 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198757 Archived-At: Vasilij Schneidermann writes: >> Sadly there wasn't a good function for returning values from webkit in >> their api when I wrote the code. I haven't checked if that situation has >> changed recently. The return value is pased by setting the >> document.title. Ahem... I'm not sure about the limits of this mechanism, >> it has been working for the things I've done anyway. > > > This is still the case for webkit1gtk, webkit2gtk however introduced > the functions webkit_web_view_run_javascript and > webkit_web_view_run_javascript_finish which allow you to evaluate > JavaScript asynchronously and retrieve the return value once it's > done. Thanks for this information! I will try it out once things have stabilized. -- Joakim Verona