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:
>
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
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
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
>
>
>
>
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
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');
6 matches
Mail list logo