W3C home > Mailing lists > Public > public-web-intents@w3.org > January 2012

Re: Proposal for using web intents for a print intent

From: Dave Raggett <dsr@w3.org>
Date: Wed, 25 Jan 2012 11:51:41 +0000
Message-ID: <4F1FECCD.3090202@w3.org>
To: public-web-intents@w3.org
I spotted an error in my example:

On 25/01/12 11:40, Dave Raggett wrote:

> // now start the activity and redirect
> // the onSuccess, and onFail functions
> // to methods on the intent data object
> 
> window.navigator.startActivity(intent,
>   function (data) { intent.success(data); },
>   function (data) { intent.fail(data); }
> );

Should have been:

window.navigator.startActivity(intent,
  function (data) { intent.data.success(data); },
  function (data) { intent.data.fail(data); }
);

sorry about that.
-- 
Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
Received on Wednesday, 25 January 2012 11:52:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 January 2012 11:52:07 GMT