网站应用程序中的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
一位开发人员为我的网站创建了一个Web应用程序,它基本上是一个客户填写然后收到结果的表单 通过电子邮件,我遇到的问题是,它无法在iphone或ipads上工作,它似乎陷入邮寄阶段,电子邮件没有被发送出去,应用程序在包括macs在内的所有其他设备上运行完美,这不是 只是一个Safari问题,因为它无法使用Iphone / Ipad上的Chrome。 p>
我认为这是一个javascript的问题,但我没有足够的javascript知识来查找 问题。 p>
创建它的开发人员现在已离开,我不知道如何解决问题,我网站上页面的链接是: p> \ n
http://thepowerwithinlifecoach.com/wheel-of-life.php p>
我已经挣扎了几个星期了,所以如果有人有任何想法来修复它 帽子会很棒 p> div>
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");