You cannot do it this way.  

the view is processed server-side before being sent to the user.
the jQuery parameter only exists in the browser, after the page is received 
from the server.

This is when you must use Ajax.


On Tuesday, 9 October 2012 06:24:10 UTC-5, Timo W wrote:
>
> Hey,
>
> I need to make a function- call with a parameter I get with jQuery 
> (current tab index). I want to call the method in the View, if a condition 
> is true.
> I returned the function getData ( a reference) when the View is loaded.
>
> {{if condition:}}
> {{title, data = getData(*index*)}}
>
> The index (bold) should be the value I get with jQuery. I assume this 
> can't work at all,  I read that I have to make an AJAX-call.
> But as I'm not very into web2py and jQuery I don't find a way to do this.
> Can someone tell me how to do this?
>
> Thanks, 
> Timo
>

-- 



Reply via email to