Re: [web2py] call a function in another controller

2010-07-27 Thread Bruno Rocha
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

Re: [web2py] call a function in another controller

2010-07-27 Thread Bruno Rocha
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.

[web2py] call a function in another controller

2010-07-27 Thread 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.