I've tried this approach
1. In my html file add
<script type="text/javascript">
function quote(string) {
var res = encodeURIComponent(string);
return res;
}
</script>
2. Add in lens <table ex:role="lens" ex:onshow="quote(.property_to_quote);">
and
<div>
<a ex:href-content="value">quoted link</a>
</div>
But I got syntax error when calling quote(.property_to_quote): 1808: if(
"console" in window&&"log" in window.console){A=function(C){console.log(C);
Event if I call ex:onshow="quote('constant');", this "constant" doesn't
appear in value. Is there any working example with ex:onshow?
суббота, 23 марта 2013 г., 13:19:46 UTC+4 пользователь Сергей Мещерин
написал:
>
> Hi all,
>
> I need to encode url (like Python's urllib.quote() function) in <a
> ex:href-content> in my lens, but I haven't found this function in Simile
> reference. Should I use some javascript to prepare the lens as it done in
> http://simile-widgets.org/wiki/Exhibit/Lens_Templates or there is more
> convenient way?
>
> Best regards, Mescherin Sergey.
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.