I've got a form on html page and some javascript code that posts it using AJAX via jQuery. When I run function that performs POST operation it doesn't appear to take any effect, but synchronous POST does work (I test it via submit button). Can problem be related to the fact that action url of the form looks like https://************** ?
A:
Yes, you can POST asynchronously to HTTPS with XHR.
However, cross-site posting is generally disallowed and something as silly as a bad/unknown certificate may throw the process off. On the other hand, it could just be a blatant bug in the code. Follow with standard debugging procedures using a tool that can monitor XHR requests, such as Firebug and pay attention ("use") the XHR error handling mechanisms.
pst
2009-10-22 20:52:16
What I do is exactly cross-site posting. I test it on my local host and post it to the remote server.
Vladimir
2009-10-22 21:08:55
Cross-site posting (in this context) is trying to send an XHR request to another *domain* (https://developer.mozilla.org/En/HTTP_access_control). The URI is compared and, generally, if it does not match the attempt is denied; allegedly for security concerns. This behavior can be changed in some browsers, such as in IE. Also, some newer initiatives (https://wiki.mozilla.org/Cross_Site_XMLHttpRequest) are [re]-allowing cross-site (cross-domain) access.
pst
2009-10-23 05:41:04