On 9/17/2013 4:06 PM, Fabio Teixeira wrote:
Thanks David,
Now I am using this format ex:id-subcontent="tab1-{{.foo}}".
But I have other problem: how to use this format and Exhibit inside
Django framework?
Do you have some documentation?
not for django.
On Monday, September 16, 2013 9:11:44 PM UTC-3, David Karger wrote:
I don't think Template:Value is the right syntax for exhibit.
Instead you want ex:id-subcontent="tab1-{{.foo}}" for some
property foo of the data.
see http://simile.mit.edu/wiki/Exhibit/Dynamic_URLs
<http://simile.mit.edu/wiki/Exhibit/Dynamic_URLs>
On 9/16/2013 6:29 PM, Fabio Teixeira wrote:
The example below do not work for me. The variables�tab1 or
tab2 return null. I attached a file with code.
Please, could you help me?
Thank you in advance.
<div ex:role="lens" ex:onshow="prepareLens(this);">
...
<div ex:id-subcontent="tab1-Template:Value
<http://simile-widgets.org/w/index.php?title=Template:Value&action=edit&redlink=1>">...</div>
<div ex:id-subcontent="tab2-Template:Value
<http://simile-widgets.org/w/index.php?title=Template:Value&action=edit&redlink=1>">...</div>
...
</div>
together with some Javascript like this
function prepareLens(elmt) {
var itemID = elmt.getAttribute("ex:itemID");
var tab1 = document.getElementById("tab1-" + itemID);
var tab2 = document.getElementById("tab2-" + itemID);
...
}
On Thursday, September 12, 2013 9:13:12 PM UTC-3, Fabio Teixeira
wrote:
Hello,
My name is Fabio and I am a PhD student from Brazil.
My current project is related to linked open data and health.
I am trying to learn Exhibit� to show my data, but I am
having difficulties.
Please, could you help me?�
I attached a very simple example of my problem: I would like
to run the Javascript (lens template), but the function
�getElementById� returns NULL .�
After 2 weeks without success, I began to get worried!�
Thank you!��
Fabio Teixeira
http://lattes.cnpq.br/9543740522912391
<http://lattes.cnpq.br/9543740522912391>
http://www.saude360.com.br�
--
You received this message because you are subscribed to the
Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected] <javascript:>.
To post to this group, send email to [email protected]
<javascript:>.
Visit this group at http://groups.google.com/group/simile-widgets
<http://groups.google.com/group/simile-widgets>.
For more options, visit https://groups.google.com/groups/opt_out
<https://groups.google.com/groups/opt_out>.
--
You received this message because you are subscribed to the Google
Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "SIMILE
Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/groups/opt_out.