Return-Path: Delivered-To: apmail-incubator-pivot-user-archive@minotaur.apache.org Received: (qmail 68632 invoked from network); 16 Mar 2009 15:16:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2009 15:16:22 -0000 Received: (qmail 57581 invoked by uid 500); 16 Mar 2009 15:16:22 -0000 Delivered-To: apmail-incubator-pivot-user-archive@incubator.apache.org Received: (qmail 57564 invoked by uid 500); 16 Mar 2009 15:16:22 -0000 Mailing-List: contact pivot-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pivot-user@incubator.apache.org Delivered-To: mailing list pivot-user@incubator.apache.org Received: (qmail 57526 invoked by uid 99); 16 Mar 2009 15:16:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 08:16:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tvolkert@gmail.com designates 209.85.219.166 as permitted sender) Received: from [209.85.219.166] (HELO mail-ew0-f166.google.com) (209.85.219.166) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 15:16:15 +0000 Received: by ewy10 with SMTP id 10so6105169ewy.12 for ; Mon, 16 Mar 2009 08:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RKY550A1CfYUow7HieoRUXpMs9omWkzG9C8CSynlzVY=; b=hFd/+lbn/JhOHIHMySwowgWNqAz1uQAHr4JzPwSk345ZIfvl5CcYAgaUajx12z6NzW 0WZz2FaPGKhSQSWreyzMawDKjZ3ol63xDYWG3QbblPNaaqsrLe1L0wEXR5HcUsZN6CCs 3sEfP9Q+cncTQ8fPgrZPXDnXeZOtk8nZSRfWE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vI3zyhdVGRc9/xgKhkQJ/CNaAFDHy3fm7/nFOr0mEbiwl6jZJTmxT4+07Pn8tR561H w+QQixazERhTFmexa9oAGMwKVEVOm/OTc3NLusBlGqR8rS4SNoJWncjt7f30Bve3Dybm sadge3kNQ3DXKvcBZivi2lNliicOuGHBTZeic= MIME-Version: 1.0 Received: by 10.220.97.65 with SMTP id k1mr1462883vcn.62.1237216552742; Mon, 16 Mar 2009 08:15:52 -0700 (PDT) In-Reply-To: <26364580100444483261480223683941377701-Webmail@me.com> References: <26364580100444483261480223683941377701-Webmail@me.com> Date: Mon, 16 Mar 2009 11:15:52 -0400 Message-ID: <168ef9ac0903160815p2e56b225vc8275b02e094fe11@mail.gmail.com> Subject: Re: Pivot/DOM interaction From: Todd Volkert To: pivot-dev@incubator.apache.org Cc: pivot-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org >> Topic #2: How might Pivot respond to JavaScript events on its page? > > I think Todd did some prototyping in this area - Todd, can you comment on this one? > This is super simple (again, with 6u10, it becomes reliable enough to use) -- you just obtain a JS reference to the DOM object, then you can access any public API of the associated applet Java instance. In Pivot, this will be an instance of pivot.wtk.BrowserApplicationContext$HostApplet. Right now, the HostApplet class doesn't provide anything interesting, but adding a getApplication() method would be trivial, which would then give you a hook into your your application's API. Greg's in that class now -- Greg, you want to add that method? -T