使用 Mobile Safari 进行 OnSubmit

发布于 2024-08-16 19:33:34 字数 656 浏览 7 评论 0原文

在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我是男神闪亮亮 2024-08-23 19:33:34

乔纳森:我解决了我们遇到的问题。事实证明,一些补充代码是问题的根源,通过删除它,一切都可以在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文