doujian3132 2017-12-18 17:30
浏览 189

网站应用程序中的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

  • 写回答

1条回答 默认 最新

  • douchuose2514 2017-12-18 18:25
    关注

    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"); 
    
    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下stata17中这段代码哪里有问题呀
  • ¥15 flink cdc无法实时同步mysql数据
  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决