Re: [web2py] How to insert/pass image to view using js

2019-10-23 Thread Maurice Waka
Thanks for the response. Regards On Wed, Oct 23, 2019, 10:25 Ruslan Gareev wrote: > Hi Maurice! Improving Dave's answer, you can make in your controller > function: > > imgs = [IMG(_src=URL('path', 'to/your/image'), _style="your style")) > > > > среда, 23 октября 2019 г., 2:37:51 UTC+5 пользоват

Re: [web2py] How to insert/pass image to view using js

2019-10-23 Thread Ruslan Gareev
Hi Maurice! Improving Dave's answer, you can make in your controller function: imgs = [IMG(_src=URL('path', 'to/your/image'), _style="your style")) среда, 23 октября 2019 г., 2:37:51 UTC+5 пользователь Dave S написал: > > > > On Tuesday, October 22, 2019 at 1:23:46 AM UTC-7, Ruslan Gareev wrot

Re: [web2py] How to insert/pass image to view using js

2019-10-22 Thread Dave S
On Tuesday, October 22, 2019 at 1:23:46 AM UTC-7, Ruslan Gareev wrote: > > try: > controller function(): >imgs = [' style="max-height=100px;border-radius:7px;"/>'] > > > > tags work great for static files. And for files in the db that use the upload field type, the "app/download?obfusctate

Re: [web2py] How to insert/pass image to view using js

2019-10-22 Thread Ruslan Gareev
try: controller function(): imgs = [''] суббота, 19 октября 2019 г., 19:43:39 UTC+5 пользователь Maurice Waka написал: > > Hello > I need to pass the image link from the controller to js > controller function(): > imgs = [" style=\"max-height='100px';border-radius:7px;\"/>"] > > view pa

Re: [web2py] How to insert/pass image to view using js

2019-10-19 Thread Maurice Waka
Hello I need to pass the image link from the controller to js controller function(): imgs = [""] view page code. return sendMessage(`{{=imgs}}{{=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 th

Re: [web2py] How to insert/pass image to view using js

2019-10-19 Thread Maurice Waka
This seems to work return sendMessage(`{{=XML(test_text,sanitize=True)}}`) On Sat, Oct 19, 2019 at 12:23 PM Maurice Waka wrote: > Hello > I'm trying to pass an image to view from db or static files using js. > I' trying to create an iteration that can pass a text or image or video to > the v

[web2py] How to insert/pass image to view using js

2019-10-19 Thread Maurice Waka
Hello I'm trying to pass an image to view from db or static files using js. I' trying to create an iteration that can pass a text or image or video to the view, so far being able to pass only text to view. The code below : $(function() { var getMessageText, mes