网站应用程序中的Javascript错误导致它无法在iphone上运行

A fellow developer created a web application for my website which is basically a form that clients fill in and then receive their results via email, the problem i am having is that it doesn't work on iphones or ipads, it seems to get stuck at the mailing stage and emails aren't sent out,the application works perfect on all other devices including macs, this isnt just a Safari issue either as it doesn't work using Chrome on the Iphone/Ipad either.

I think its a problem with the javascript but I don't have enough javascript knowledge to find the issue.

The developer who created it has now left and i have no idea how to fix the problem, the link to the page on my site is:

http://thepowerwithinlifecoach.com/wheel-of-life.php

I have been struggling with this for weeks now so if anyone has any ideas to fix it that would be great

First of all you need to put in your php header Access-Control-Allow-Origin and set this one . If after that it will not work then you need to remove any animations libraries which you are using here then try again becz some time with iphone animations libraries conflicts I had the same problem before 6 months..

You need put following code in your database connection file on the top

  header("Access-Control-Allow-Origin: *");
  header("Access-Control-Allow-Headers: access");
  header("Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS");
  header("Access-Control-Allow-Credentials: true");
  header("Expires: -1");