You may want to explore the use of the "subcontent" feature on exhibit
attributes:
http://simile-widgets.org/wiki/How_to_create_dynamic_URLs_using_ex:*-subcontent
On 5/5/2015 6:21 PM, andy wrote:
Luis yes, but not nessarely the .url column. I prefer to understand a
solution for a generic column .examplefield, and use its cell values
as argument of a function inside a <a> tag.
Thank you
Il giorno mer 6 mag 2015 00:07 Luis Miguel Morillas
<[email protected] <mailto:[email protected]>> ha scritto:
And the link you need for each term is at the .url column of you
spreadsheet?
Saludos,
-- luismiguel (@lmorillas)
2015-05-04 18:31 GMT+02:00 andy <[email protected]
<mailto:[email protected]>>:
> Hi Luis,
>
> On 4 May 2015 at 18:19, Luis Miguel Morillas <[email protected]
<mailto:[email protected]>> wrote:
>>
>> What do you want the onclick event do? You must program this action
>> with a js function.
>
>
> ok, thank you.
>
> But it's not possible to use simile exhibit to write content
inside a
> function that is inside an HTML tag?
>
> My goal is simple. Imagine I have the function openURL and
something like
> Start from something like <td><a href="./test.html"
> onclick="openURL('http://www.mysite.com');" >my text</a></td>
>
> I have a list of arguments inside an exhibit db (a list of URL),
and use a
> TabularView to create dinamically this HTML code. I'm looking
for something
> like
> <td><a href="./test.html"
onclick="openURL(data-ex-content:".URL");" >my
> text</a></td> and produce something like
>
> <tr><td><a href="./test.html"
onclick="openURL('http://www.mysite1.com');"
>>my text</a></td></tr>
> <tr><td><a href="./test.html"
onclick="openURL('http://www.mysite2.com');"
>>my text</a></td></tr>
> <tr><td><a href="./test.html"
onclick="openURL('http://www.mysite3.com');"
>>my text</a></td></tr>
> <tr><td><a href="./test.html"
onclick="openURL('http://www.mysite4.com');"
>>my text</a></td></tr>
> ...
>
> Then I have my function openURL, but I do not know how to use
exhibit to
> fill dynamically its argument.
>
> Thank you
>
>
> --
> Andrea Borruso
> website: http://blog.spaziogis.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> --
>
> "cercare e saper riconoscere chi e cosa,
> in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio"
>
> Italo Calvino
>
> --
> 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]
<mailto:simile-widgets%[email protected]>.
> To post to this group, send email to
[email protected]
<mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/simile-widgets.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in
the Google Groups "SIMILE Widgets" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/simile-widgets/fLtKmlmRIUo/unsubscribe.
To unsubscribe from this group and all its topics, send an email
to [email protected]
<mailto:simile-widgets%[email protected]>.
To post to this group, send email to
[email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
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/d/optout.