thanks for the explanation.

En 17 de julio de 2018 1:17:03 p.m. Jonathan Vanasco <jvana...@gmail.com> 
escribió:

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<mailto:pylons-discuss+unsubscr...@googlegroups.com>.
To post to this group, send email to 
pylons-discuss@googlegroups.com<mailto: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<https://groups.google.com/d/msgid/pylons-discuss/eb63d5bf-c41d-4178-8c5a-14ed956eac53%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


Enviado con AquaMail para 
Android<https://play.google.com/store/apps/details?id=org.kman.AquaMail>
https://www.mobisystems.com/aqua-mail

-- 
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/DM6PR06MB4012795EF57A300EAA649133955C0%40DM6PR06MB4012.namprd06.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to