I don't think the coder parses for functions; it just looks for numbers
so there's no way to do it like you are trying.
It's more work, but you could write some javascript that creates the
coder tag dynamically based on some information from your server before
the exhibit code is activated.
This requires you manually running exhibit at the right time instead of
letting it run automatically; check the
On Friday, July 29, 2011 12:00:30 AM, Pierre-Jean Geoffroy wrote:
Hi,
I use a dynamic database and I would like to link the size of the
Points on my map with the maximal Number of occurences in my database
because I don't want to have to change the maximal size everytime I
add values in the database.
The original code is:
<div ex:role="coder" id="nsize" ex:coderClass="SizeGradient"
ex:gradientPoints="1,12; 3,60"></div>
I tried to use the max function but it didn't work:
<div ex:role="coder" id="nsize" ex:coderClass="SizeGradient"
ex:gradientPoi
nts="1,12; max(.N),60"></div>
(with .N the number of occurences)
I thought it was because "max" returned "text" so I changed it and
created a new function "mymax" returning "number" but it didn't work
either.
The error seems to be "Not a Number".
Does anyone have any idea?
Thank you.
PJ
--
You received this message because you are subscribed to the Google Groups "SIMILE
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.