Looked around but couldn't find an answer to this problem:
Some of my item attributes are VERY long strings (chemical SMILES 50-500
characters). The usual trick is to call a javascript method (e.g., showLines)
that inserts spaces every x chars into the long text.

But how do I transform an Item attribute via a javascript call?

I randomly tried:   <span ex:onshow="javascript:showLines(80,
{{.Molecule_SMILES}});"></span>

but this doesn't work... should I use ex:expression or something like it?

thanks,
Eric
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to