使用 Mobile Safari 进行 OnSubmit
在使用 jCart 时,我注意到它在 iPhone 上不起作用。经过一些测试(并在 jcart 论坛上与开发人员交谈< /a> )似乎在单击提交按钮时无法调用提交处理程序:
$('form.jcart').submit(function(){...});
我尝试将其更改为:
$("form.jcart input[type='submit']").click(function(){...});
// There were some other code changes needed to make this change work,
// but they are omitted for brevity (they don't impact the problem).
这也不起作用。我发现了其他有关 iPhone 上的 .submit/onsubmit 问题的报告,但似乎没有人找到解决方法?
While using jCart I noticed that it did not work on the iPhone. After some testing (and speaking with the developer on the jcart forum ) it seems that it fails to call the submit handler when clicking a submit button:
$('form.jcart').submit(function(){...});
I have tried changing this to:
$("form.jcart input[type='submit']").click(function(){...});
// There were some other code changes needed to make this change work,
// but they are omitted for brevity (they don't impact the problem).
This too does not work. I have found other reports of having problems with .submit/onsubmit on the iPhone, but it doesn't seem like anyone has found a work around for it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
乔纳森:我解决了我们遇到的问题。事实证明,一些补充代码是问题的根源,通过删除它,一切都可以在 iPhone、iPod Touch 上正常工作。
我已经在 jCart 论坛上描述了解决方案:
http://conceptlogic.com/jcart/ help/viewtopic.php?f=3&t=316&start=10
Jonathan: I solved the problem we were having. As it turns out, some supplementary code was the source of the issue, and by removing it, everything works normally on the iPhone, iPod Touch.
I've described the solution back on the jCart forum:
http://conceptlogic.com/jcart/help/viewtopic.php?f=3&t=316&start=10