List Info

Thread: Request for Comment: Javascript Widget Proposal




Request for Comment: Javascript Widget Proposal
user name
2007-06-14 12:03:38
For some time we've had two primary ways to integrate CC
licensing
into your application: the partner interface
(htt
p://wiki.creativecommons.org/Partner_Interface) and the
web
services API (http://wiki.creativecommons.org/Creative_Commons_We
b_Services).
 We've been thinking about ways to lower the effort required
for
adoption and make it even easier.

The current proposal is to develop a Javascript-based
"widget" that
would allow a developer to drop a license chooser into a
form in their
application simply by including the script tag.  I've
written up a
brief specification/requirements list
(http://wiki.
creativecommons.org/JsWidget).

We're very interested in feedback from the list.  Are there
any
obvious use cases that we should consider that this *won't*
work for?
Anything we need to take into account as we implement?

Thanks,

Nathan

-----
Nathan R. Yergler
Chief Technology Officer
Creative Commons

ht
tp://wiki.creativecommons.org/User:NathanYergler
_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

Re: Request for Comment: Javascript Widget Proposal
country flaguser name
South Africa
2007-06-14 13:15:26
On Thu, 2007-06-14 at 10:03 -0700, Nathan R. Yergler wrote:
> The current proposal is to develop a Javascript-based
"widget" that
> would allow a developer to drop a license chooser into
a form in their
> application simply by including the script tag.  I've
written up a
> brief specification/requirements list
> (http://wiki.
creativecommons.org/JsWidget).

I presume that the locales will stay intact? 

The only other issue is that the JS should be strict enough
to be able
to be used in XUL applications as well as XHTML-Strict. 

If some coding time is needed, please don't hesitate to call
on me.

--Paul


All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content
/mail_disclaimer/index.htm 

_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

Re: Request for Comment: Javascript Widget Proposal
user name
2007-06-14 13:24:24
On 6/14/07, Paul Scott <pscottuwc.ac.za> wrote:
>
> On Thu, 2007-06-14 at 10:03 -0700, Nathan R. Yergler
wrote:
> > The current proposal is to develop a
Javascript-based "widget" that
> > would allow a developer to drop a license chooser
into a form in their
> > application simply by including the script tag. 
I've written up a
> > brief specification/requirements list
> > (http://wiki.
creativecommons.org/JsWidget).
>
> I presume that the locales will stay intact?

Localization is something we need to figure out how to do. 
My
instinct is to do the following:

* Allow someone to explicitly request a specific locale,
ie,
  <script src="http://cc.org/widget/de/source.js"></script
>
* If they request the "generic" version, use the
browser's language
information to return the "best guess".  So if the
default language in
the browser is pt-BR, we'd return the Brazilian Portuguese
version
even if the generic one was requested.

Does that sound reasonable?

>
> The only other issue is that the JS should be strict
enough to be able
> to be used in XUL applications as well as
XHTML-Strict.

I don't think it'd be appropriate for XUL applications --
for one
thing it'll be using document.write to inject an HTML
<input> element
(well, several of them), which doesn't always work well in
XUL in my
experience (iirc you have to do some special namespace
declarations to
mix XUL and HTML).

>
> If some coding time is needed, please don't hesitate to
call on me.
>
> --Paul
>
>
> All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/uwc2006/content
/mail_disclaimer/index.htm
>
> _______________________________________________
> cc-devel mailing list
> cc-devellists.ibiblio.org
> ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel
>
>
_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

Re: Request for Comment: Javascript Widget Proposal
country flaguser name
South Africa
2007-06-14 13:36:06
On Thu, 2007-06-14 at 11:24 -0700, Nathan R. Yergler wrote:
> Does that sound reasonable?
> 

Very reasonable and sane. 

> I don't think it'd be appropriate for XUL applications
-- for one
> thing it'll be using document.write to inject an HTML
<input> element
> (well, several of them), which doesn't always work well
in XUL in my
> experience (iirc you have to do some special namespace
declarations to
> mix XUL and HTML).
> 

I have only limited experience with XUL myself, just trying
to figure
out the widest possible usage for something like this. I
think that
where there is a will, there is a way, but we should
definitely focus on
the widest audience first though.

--Paul


All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content
/mail_disclaimer/index.htm 

_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )