I think the easiest solution is to use

<td><a data-ex-href-content=".url" class="myfunction" >my text</a></td>

or

<td><a data-ex-href-content=".examplefied" class="myfunction" >my
text</a></td>    as you say ...



and at the script zone:

<script>
$(document).bind("dataload.exhibit", function() {
$("a.myfunction").click(function(event) {
event.preventDefault();
console.log(this.url);
});
});
</script>




Saludos,

-- luismiguel  (@lmorillas)


2015-05-06 0:21 GMT+02:00 andy <[email protected]>:
> 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]> 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]>:
>> > Hi Luis,
>> >
>> > On 4 May 2015 at 18:19, Luis Miguel Morillas <[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].
>> > 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.
>>
>> --
>> 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].
>> 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.
>
> --
> 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.

-- 
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.

Reply via email to