Thanks David, that worked. i didn't realise that i can impose new 
attributes into any element using the ex:{attribute name}-subcontent. :)

i asked before if i could have multiple lenses from a single exhibit view 
- my use case is that for my table of information, typically there is only 
a requirement of quickly browsing related informatin from that table 
element - for example, the utilisation graphs from the previous lens 
view specific router port. it would also be handy to display a 
topology lens which would be accessible from the same table - as the 
ajaxiness of the len would be quicker to access than rendering a new a new 
page for it.

would it be possible to use the raw exhibit javascript functions to force 
the another lens popup on a different table element?

also, is there a way to overload the sorting methods use for the table and 
facet views? for example, we would like '3/10' to come after '3/9' rather 
than after '3/1'.

thanks,

Yee.

On Sun, 29 Jul 2007, David Huynh wrote:

> I'm not 100% sure what you mean but here's how I might do it.
>
> Make just one copy of <script> inside <head>, don't put it in the lens
> template:
>    <script>
>       function changeGraphPeriods(select) {
>          var period = select.value;
>          var img = document.getElementById(select.getAttribute("image"));
>          ...
>       }
>    </script>
>
> In the lens template:
>
>    <select ex:image-subcontent="image-{{.graphUtil}}"
> onChange="changeGraphPeriods(this);">
>       ...
>    </select>
>
>    <img ex:id-subcontent="image-{{.graphUtil}}" />
>
> David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to