Thoughts on expanding <Content type="html"> to use remote sources...

1 view
Skip to first unread message

ZeroSleep

unread,
Jun 1, 2008, 5:41:04 PM6/1/08
to OpenSocial - OpenSocial Application Development
I think it'd be useful if instead of having to define any HTML content
within <Content ...> sections, I could instead do something like:

<Content type="html" view="canvas" id="canvaspage1" url="http://
mysite.com/canvaspage1.html" />

Designers could work on these pieces separately, never have to worry
about modifying an app's xml definition and publish changes whenever
they like. The container could prefetch these sources, cache them and
in turn make them available in the iframe inline or in memory.

I'd also find it useful when I had multiple screens within my canvas
that could each be designed in separate locations:

<Content type="html" view="canvas" id="canvaspage1" url="http://
mysite.com/canvaspage1.html" />
<Content type="html" view="canvas" id="canvaspage2" url="http://
mysite.com/canvaspage2.html" />
<Content type="html" view="canvas" id="canvaspage3" url="http://
mysite.com/canvaspage3.html" />

My code could hide/show these layers independently or use them as
templates.

-bcc

Arne Roomann-Kurrik

unread,
Jun 2, 2008, 12:33:39 PM6/2/08
to opensoc...@googlegroups.com
This is a good idea and could be pretty useful for certain types of development.  As I recall, there's a similar discussion on the gadgets/opensocial specification list which you should contribute to if interested.  The thread is here:

http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/237c992b35c6ce15/

Cheers,
~Arne
--
OpenSocial IRC - irc://irc.freenode.net/opensocial
Reply all
Reply to author
Forward
0 new messages