I'm facing a challenging issue that has me stuck. I have a form where users submit their data, triggering a post ajax request. Upon success, I populate some data in a hidden form with an action pointing to the current subdomain URL, but actually redirecting to a partner site URL set over CNAME. Then, I programmatically submit the hidden form using jQuery, so that after the response, the user ends up on the partner site (since the hidden form has no target attribute). This setup works smoothly on all browsers except for Safari 7 on Mac – it simply keeps loading indefinitely.
Any assistance on this matter would be greatly appreciated.
There isn't much code involved. After running the following code upon success:
if (response.result === true) {
this.targets.login.$email.val(response.data.data.email);
this.targets.login.$password.val(response.data.data.password);
this.targets.login.$form.submit();
}
The structure of my hidden form is as follows:
<form action="http://someurlunderCNAME" method="POST">
<input type="hidden" name="_method" value="POST">
<input type="text" name="data[User][email]">
<input type="password" name="data[User][password]">
</form>