derek | idea company wrote:
> So, I would create some key/values in a JSON database specifying various
> Applet components (.applet-codebase, .applet-param, etc. I'm assuming
> some of the other values like height, width, code, archive etc. can be
> done in the same way) and then create a lens template to construct the
> applet?
> JSON:
>     {applet-codebase : "http://some.obscure.link/here";,
>       applet-param : "http://the.param.link/here";,
>       applet-code : "zoom2dapplet"'
>       applet-archive : "zoom2dapplet.jar"}
>
> and then create an exhibit lens:
>
>     <div ex:role="exhibit-lens" ex:item-id-content=".id" 
> ex:applet-codebase-content=".applet-codebase" 
> ex:applet-param-content=".applet-param">
>        ...
>        <button ex:onclick="makeApplet(this.parentNode)">Show Applet</button>
>        ...
>     </div>
>
> this is the part that mostly confuses me... what's the difference
> between "ex:applet-codebase-content" and "ex:content".  
So, this template code
    <span ex:content=".applet-codebase"></span>
would generate
    <span>http://some.obscure.link/here</span>

while
    <span ex:applet-codebase-content=".applet-codebase">xyz</span>
would generate
    <span applet-codebase="http://some.obscure.link/here";>xyz</span>

and
    <span ex:applet-codebase-subcontent="abc{{.applet-codebase}}">xyz</span>
would generate
    <span applet-codebase="abchttp://some.obscure.link/here";>xyz</span>

If this is confusing, feel free to suggest alternative syntaxes. Nothing 
is carved in stone.

> and i'm to
> assume that the function makeApplet is not a part of Exhibit :)  
Nope :)

> and can
> this exhibit lens be inserted into the current lens for thumbnail or
> detail view? kinda like a sub lens?  Thanks.
>   
Not quite sure what you mean...

David

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to