I need to pass the image link from the controller to js
controller function():
    imgs = ["<img src=\"{{=URL('static','images/3.jpg')}}\" 
style=\"max-height='100px';border-radius:7px;\"/>"]



view page
code.....
return sendMessage(`{{=imgs}}<br>{{=XML(test_text,sanitize=True)}}`)



So far i'm getting only a string as previously stated. 

If I insert the string directly, then i'm able to view the image but not 
importing from the controller.

Is there a way of importing the link and inserting it into the js code ?

Better yet, a way of getting the image from database.

Regards

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7ded0fb8-fb4e-498a-a6ec-bc46cfdcf503%40googlegroups.com.

Reply via email to