Re: web intent semantics?

On Tue, Feb 21, 2012 at 10:13 AM, Dave Raggett <dsr@w3.org> wrote:

> On 21/02/12 15:34, Paul Kinlan wrote:
>
> > The latest version of the spec if here:
> > http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html
>
> Thanks.
>
> That page doesn't explicitly define the onSuccess and onFailure call
> backs. By looking at postResults, and postFailure which take a single
> argument 'data', I presume, onSuccess and onFailure are the same, right?
>
> How does the client page determine the type of the result? This seems
> important as a service page could data in a number of formats, and the
> JavaScript typeof operator wouldn't be likely to be sufficient.
>
> It might be worth considering a means to convey an optional MIME type
> for the result, mirroring the ability to set the MIME type of the data
> passed from the client page to the service page.
>
>

You're definitely correct.  We are still working out the high-level method
of agreeing on the *format* of the data passed to/from services, and we can
definitely use ideas on this front.  I'll gather the ideas we're currently
tossing around and start a new thread.

Thanks,
James

Received on Tuesday, 21 February 2012 18:54:30 UTC