Situation is: 1) page load ajax script file from another site/domain; 2) user fill up form on the page and submit it via POST/AJAX to another server. How to bypass "non secure transaction" message then submitting form to another domain? Really annoying thing: ajax cannot work normally with absolute URLs even on same 2nd level domain with and without www. subdomain.
For security reasons, you can't post cross-site. This is to stop people stealing other sites' user cookies and such. The only way would be to have PHP relay your request to the host.
1) various widgets use cross-server data requests; 2) heard something about JSON requests/files/data - but not sure how do they work. Any advice where to find good JSON tutorials? Couldn't find comprehensive one.
Yeah, because technically it isn't cross-site. @3dom: can you expand on your post? JSON is just like an associative array, it is very simple, not much to learn. http://json.org/
I think something like this is being referred to: http://developer.yahoo.com/common/json.html#callbackparam
This is how JSON worked for me in cross site scenario: Dynamically load a JavaScript file by passing your parameters threw GET. The JS file will return the JSON array... Parse the JSON for the data or use evol() function to execute the JS code...
ooops - actually i wanted to say; in ajax response we can only get the html, i mean if there are any css or javascripts included as external files then we cannot have full functional page as ajax response.. makes sense now?