On Mar 24, 4:55 am, Kenneth Lundström <kenneth.t.lundst...@gmail.com>
wrote:
> I got the onmouseover to work but how do I send text to the javascript
> from a variable. I have this code

I am guessing you mean a Python variable

>   TD(P(day, _class="text_black"), _class="red",
> _onmouseover="displayText('info', watchers[check_date])",
> _onmouseout="hideText('info')")

so maybe:
_onmouseover="displayText('info', {{=watchers[check_date]}} )",

> It is the watchers[check_date] that holds the text that should be sent
> to the javascript but nothing is sent.
>
> I have verified that the variable contains text and if I define
> _onmouseover="displayText('info', 'test_text')",
>
> it works.
>
> Kenneth

Reply via email to