Thanks a lot. I'll try load_and_trap, but I think htmx may be better. I will look at your applications.
El jueves, 17 de febrero de 2022 a las 0:10:33 UTC+1, Jim S escribió: > See this thread for how to replicate LOAD in py4web - > https://groups.google.com/u/1/g/py4web/c/EUpv9IRJ_eo/m/niHzrnR5AwAJ > > In short, use load_and_trap from utils.js. > > I was using this for a while but then transitioned to doing all my > reactive-type functions using htmx. https://htmx.org > > Check out my py4web htmx demo - > https://github.com/jpsteil/py4web_htmx_demo > > or my sample SouthBreeze application > https://github.com/jpsteil/southbreeze for examples. > > htmx is amazing > > NOTE - demos might now work with the latest py4web from github. There are > some changes I need to apply to my code that I haven't gotten to yet. > > Can anyone else address the "A" and "URL" questions? > > -Jim > > > On Tuesday, February 15, 2022 at 3:47:24 PM UTC-6 cdbaron wrote: > >> I have several projects with web2py and I have already started to study >> the possibility of migrating to py4web. >> >> They are all rendered on the server side and for now I want to keep it >> that way. >> >> I see some challenges that make me a little scared: >> >> *LOAD >> * A Helper: (many times with the callback parameter and others with _href) >> * URL: With user_signature=True for links with callback >> >> I use hundreds of times A and URL and a little less LOAD >> >> For none of these functions or helpers have I found a direct replacement >> in py4web. >> >> LOAD does not exist in py4web, A does not have the possibility of ajax >> calls with the callback parameter and URL is totally different in py4web. >> >> It would be great to see some of this web2py magic carried over to py4web. >> >> El domingo, 6 de febrero de 2022 a las 15:37:49 UTC+1, [email protected] >> escribió: >> >>> Have you managed to make a welcome template based on Unpoly? >>> >>> On Wednesday, March 4, 2020 at 8:37:51 PM UTC+7 [email protected] >>> wrote: >>> >>>> Sorry for the typo. >>>> I want to make a welcome template based on unpoly soon. >>>> >>>> Em sex., 28 de fev. de 2020 às 04:21, AGRogers <[email protected]> >>>> escreveu: >>>> >>>>> https://unpoly.com/ >>>>> >>>>> On Fri, 28 Feb 2020 at 16:22, Massimo Di Pierro <[email protected]> >>>>> wrote: >>>>> >>>>>> never heard of unpolly.js and cannot find it. Have a link? >>>>>> >>>>>> >>>>>> On Wednesday, 26 February 2020 19:32:20 UTC-8, Carlos Costa wrote: >>>>>>> >>>>>>> LOAD is a very cool thing! And beginners just say WOW when they can >>>>>>> create ajax-like experience so easy. >>>>>>> But, IMO, it lacks some important features for modern apps, like >>>>>>> error handling and history handling. >>>>>>> >>>>>>> I have written some simple functions to help cover these things... >>>>>>> >>>>>>> Another way I found very useful was to use unpolly.js. It's magic >>>>>>> but makes me a little lazyer about getting things done with vue.js. >>>>>>> (BTW they created unpolly to avoid using things like vue, react, >>>>>>> etc, really!) >>>>>>> >>>>>>> I would like very much to use vue.js but I am still noob regarding >>>>>>> how to use it with py4web. >>>>>>> Maybe we should really encourage vue.js and stuff alike... but an >>>>>>> initial pattern would be cool. >>>>>>> And IMO it should be simple and very cleared stated in the docs. >>>>>>> So no one will miss LOAD. >>>>>>> >>>>>>> Em domingo, 23 de fevereiro de 2020 15:18:51 UTC-3, RHC escreveu: >>>>>>>> >>>>>>>> HI, >>>>>>>> >>>>>>>> I am beginning to experiment with py4web, I like the sound of it >>>>>>>> and I am looking to convert a web2py project to py4web to see how they >>>>>>>> compare. >>>>>>>> >>>>>>>> It appears that the LOAD (helper?) that was available in web2py >>>>>>>> templates is not available in py4web. I was using this to populate >>>>>>>> part of >>>>>>>> a web page, I liked the way you had the option to use LOAD to call a >>>>>>>> separate URL (within the same app) and insert the result into your >>>>>>>> page >>>>>>>> before returning the page to the client. >>>>>>>> >>>>>>>> What is the reason for the absence of LOAD in py4web? is there a >>>>>>>> recommended alternative method of achieving the same effect? I have >>>>>>>> used a >>>>>>>> mixture of ajax=True and ajax=False options for this feature. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> Richard. >>>>>>>> >>>>>>> -- >>>>>> 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]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/web2py/22d8b9cf-9ce2-464b-809e-32d4dd84fd02%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/web2py/22d8b9cf-9ce2-464b-809e-32d4dd84fd02%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>>> 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]. >>>>> >>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/web2py/CACWMBMPXoWfp9iZ7yQtbCw_YU6yh-9M2_xAQ%3Dzj4ocyWTzxuXw%40mail.gmail.com >>>>> >>>>> <https://groups.google.com/d/msgid/web2py/CACWMBMPXoWfp9iZ7yQtbCw_YU6yh-9M2_xAQ%3Dzj4ocyWTzxuXw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> >>>> >>>> -- >>>> At. >>>> >>>> Carlos J. Costa >>>> -------------------------------------------------------------- >>>> Cientista da Computação - Esp. Gestão em Telecom >>>> >>> -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/f7915726-40ba-49cd-8904-4055ad9a57a9n%40googlegroups.com.

