Re: [web2py] Re: onmouseover

2011-03-25 Thread Kenneth Lundström
Thank You, now I understand what that %s does. Have been using it for maybe twp years without understanding, just coping it from examples. Kenneth On Mar 24, 4:41 pm, Kenneth Lundström wrote: > I am guessing you mean a Python variable Right > so maybe: > _onmouseover="displayTe

Re: [web2py] Re: onmouseover

2011-03-24 Thread Kenneth Lundström
> I am guessing you mean a Python variable Right > so maybe: > _onmouseover="displayText('info', {{=watchers[check_date]}} )", But I´m building the table in the controller so I guess I can´t use {{= }} ? Kenneth It is the watchers[check_date] that holds the text that should be sent

Re: [web2py] Re: onmouseover

2011-03-24 Thread Kenneth Lundström
I got the onmouseover to work but how do I send text to the javascript from a variable. I have this code TD(P(day, _class="text_black"), _class="red", _onmouseover="displayText('info', watchers[check_date])", _onmouseout="hideText('info')") It is the watchers[check_date] that holds the text

Re: [web2py] Re: onmouseover

2011-03-23 Thread Kenneth Lundström
The problem was in missing , I took a working code from HTML and added _ to onmouseover and onmouseout and forgot about commas. Stupid mistake. Kenneth Yes. The error is probably in other order TD(_onmouseover="","content") WRONG TD("content",_onmouseover="") RIGHT On Mar 23, 8:38