JQuery Cross Domain
I have two forms and only one Button to submit these forms.
The first one just save some data into the local DB.
But the second one should send his data to an external Domain.
How can i solve this with only one submit button.
I tried to send the data of the second form via Ajax to the external Domain.
In Firefox it works brilliant but in Chrome and other Browsers not. Cause they dont allow Cross Domain Post.
If i just submit the second form it works in all Browsers too.
I have no access to the external server.
Can somebody help me?
If you can bear using Flash, try SWFXMLHttpRequest.
Otherwise, if the remote server accepts GET requests, you can try your hand at Cross Doman Ajax using JSONP.
The alternative is both buttons POST back to your server, and then your server POSTS to the third party site.