Re: [web2py] Re: web2py ajax function in py4web

2020-11-09 Thread Tom Campbell
Also, Stifan, could you post a few use cases? py4web includes vue.js by default and I am trying to understand the most common use cases of this for documentation purposes. I am guessing: - Instant form update on client side when a value is changed (for example, a star rating or even a

[web2py] Re: web2py ajax function in py4web

2020-11-09 Thread Jim S
Stifan Can you post this in the py4web group? In py4web we don't include any jquery components. The goal is to be as light as possible and require as few additional packages as possible. I think you'll get better visibility on the py4web list to get this question answered. I know there

Re: [web2py] Hosting my web2py application

2020-11-09 Thread AGRogers
I have just set up a Google cloud virtual machine with Debian 9 and Apache and python 3.7.6. It wasn't easy. Seems to be fast though. If you want a vm image I can try and work out how to share it with you. On Sun, 8 Nov 2020, 8:56 am Dave S, wrote: > > > On Tuesday, October 27, 2020 at 11:21:28

Re: [web2py] Displaying content based on the id attribute

2020-11-09 Thread AGRogers
That was a long thread which I didn't read fully. But what I did read made me think that maybe the original problem was that you needed a slight delay between when you showed the span and when you made the ajax call. I do that by putting the ajax call in a setTimeout function. If I don't, the

[web2py] Re: No such file or directory UPLOAD

2020-11-09 Thread villas
Re: thumbnail. Your code already uses it. BTW I think everyone uses Pillow now (drop in replacement for PIL with similar methods). On Sunday, 8 November 2020 at 19:54:58 UTC gaelpri...@gmail.com wrote: > > An interesting routine, but I just use PIL's thumbnail() method. Could > you

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-09 Thread mostwanted
So Jim i've decided to take a different approach with my code because my initial approach is giving me a headache. I got rid of this function below: *$(document).ready(function(){ $('a.service').on("click",function() {const id = $(this).attr('id'); //

[web2py] Re: Upload images to folder outside web2py

2020-11-09 Thread 'Annet' via web2py-users
Thanks for the link. I had a look at Gael's post, my problem isn't related to that one. However, reading Gael's post I realised that bewteen versions I introduced conditional models. Since the download function is in the default controller and the uploadfolder is set in the model I needed to add