Just as an example
teste.py
def sum():
return int(request.args(0)) + int(request.args(1))
any view:
$(document).ready(function(){
$('#button').click(function(){
ajax("{{=URL(r=request,
c='teste',f='sum.load',args=[1,2])}}",[],'target');
return false;
});
});
CLICK
In a view:
{{=LOAD(url=URL(request.application,'controllerName','FunctionName.load'),
ajax=True)}}
2010/7/27 ilovesss2004
> Hi,
>
> Can some one tell me how to call a function which is in another
> controller other than default controller by ajax?
>
> Thanks alot.
--
http://rochacbruno.
Hi,
Can some one tell me how to call a function which is in another
controller other than default controller by ajax?
Thanks alot.
3 matches
Mail list logo