On Thursday, June 30, 2011 12:39:53 PM UTC-4, Richard wrote: 
>
> Hello, 
>
> I am having hard time to refresh component I don't know if it is my 
> response.js or my setup or 1.97.1 issue :
>
> response.js="web2py_component(URL(c='ref',f='creation'),'two')"
>
 
You can't put a call to the URL() function inside a string -- it's a web2py 
Python function that has to be run on the server side -- as is, you're 
sending it as javascript code. You might also need to put it in quotes. 
Maybe something like this:
 
response.js="web2py_component('%s','two')" % URL('ref','creation')
 
 
Anthony

Reply via email to