On Monday, February 20, 2012 10:08:42 AM UTC-5, Pradeesh wrote: > > I am new to web2py. > form my view i am able to call web2py ajax as " > ajax("{{=URL(r=request,c='control2',f='function1')}}"['name'],'target'); > ". But the same command is not working from an external javascript. > How can i call a function (in another control file) using ajax from an > external JavaScript. >
The ajax() function is in web2py.js. When you call it from an external js file, has web2py.js already been loaded in the page? Anthony