On Tuesday, July 17, 2018 at 12:45:26 AM UTC-4, jg...@live.com.mx wrote:

> so, to make this clear to me: the POST made from javascript is not 
> equivalent to a POST made in html, the hmtl POST automatically refreshs 
> page or something like that?
>

This may sound confusing... but their "equivalence" is based on perspective:

    As far as your Pyramid app is concerned, they are equivalent
    As far as the HTTP Specification is concerned, they are equivalent
    As far as almost everything is concerned... they are equivalent

BUT

    As far as a user is concerned *in this scenario* they are not 
equivalent.
    Clicking "Submit" to post the form has the browser window post the form 
and handle the response;
    Clicking your xhr button instructs the browser to do everything within 
javascript - so javascript is then responsible for posting the form and 
handling the response.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/eb63d5bf-c41d-4178-8c5a-14ed956eac53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to