Hello I am facing a problem with returned output from a controller not
displaying when being called from a link using the ajax() function inside a
LOAD(ed) component.

*index*

<div id="status"></div>

<div id="file_list">
     {{=LOAD('default', 'file_list.load', ajax=False)}}
</div>
----------------------

*file_list.load*

<button class="crypt btn btn-primary" onclick="ajax('{{=URL('default',
'encrypt_file', args=(row.id))}}', [], 'status')"> Que For Encryption </a>


*default/encrypt_file controller*

return dict(key=key, message="Encrypted Successfully")

How can I achieve the returned results of my controller in the *status* div
or alternative way

Thank you for any advice!

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to