Can you help me in passing the values from view in web2py to the controller 
function.The value returned from controller unction should be passed again 
to the same view.I will use that value in my views.

Here  is my view:

onclick='ajax("{{=URL('default', 'test', args=[textname[i], '1', 
'english'])}}",[], ":eval");'

Controller:
test():
 if (request.args[2]=="tamil"):
        if (int(request.args[1])==1):
            galatta = 
get_hlink('http://www.galatta.com/tamil/reviews/','','href="/tamil/reviews/',name_key,'','')
            
messag=get_content(galatta,'itemprop="description"','itemprop="image"','')
            return 'var myvar = %s;' % messag

Is the above code correct??
How to get the returned myvar in view??

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to