Re: [web2py] Re: submitting a form from a LOAD component - request.post_vars is empty

2019-06-01 Thread Eliezer (Vlad) Tseytkin
got it, thank you very much ! On Sat, Jun 1, 2019 at 11:20 AM Anthony wrote: > In order for web2py to submit forms inside LOAD components via Ajax, it > must set up its own event handler to "trap" the form submission, so it can > be intercepted -- this is done here: >

[web2py] Re: submitting a form from a LOAD component - request.post_vars is empty

2019-06-01 Thread Anthony
In order for web2py to submit forms inside LOAD components via Ajax, it must set up its own event handler to "trap" the form submission, so it can be intercepted -- this is done here: https://github.com/web2py/web2py/blob/master/applications/welcome/static/js/web2py.js#L307 . If you don't want

Re: [web2py] Re: submitting a form from a LOAD component - request.post_vars is empty

2019-05-31 Thread Eliezer (Vlad) Tseytkin
Oh, this kind of stuff does work, I've used it in this context; but t's very different in my case: The real problem is that addEventListener clearly does not work from inside of the LOAD component (not sure if it doesn't work at all there, or there is something weird in my case, though I

[web2py] Re: submitting a form from a LOAD component - request.post_vars is empty

2019-05-31 Thread Dave S
On Friday, May 31, 2019 at 1:57:50 PM UTC-7, Vlad wrote: > > sorry for keeping posting about this. I am just totally stuck. I am sure > that I am missing something very basic. Here is the complete code: > > "payment-form2"> >Submit > > > >

[web2py] Re: submitting a form from a LOAD component - request.post_vars is empty

2019-05-31 Thread Vlad
sorry for keeping posting about this. I am just totally stuck. I am sure that I am missing something very basic. Here is the complete code: Submit

[web2py] Re: submitting a form from a LOAD component - request.post_vars is empty

2019-05-31 Thread Vlad
I've narrowed down what's going on, but still stuck... this is how the form is being submitted (from inside of the component): function stripeTokenHandler(token) { var form = document.getElementById('payment-form'); var hiddenInput = document.createElement('input');