在 Mobile Safari 中写入 iPhone 上的数据库时出现问题

发布于 2024-09-17 23:02:18 字数 289 浏览 1 评论 0原文

我有一个在桌面上的 Safari 5 中运行的 Web 应用程序,可以写入本地存储数据库 - 没有问题!能够很好的添加、更新、删除记录。

然后我在 iPhone 上设置了 Web 应用程序,但它似乎忽略了除创建和删除表之外的所有数据库事务。

应用程序在线还是离线并不重要。如果我添加一条记录,它不会添加到数据库中。我启用了调试控制台,但没有错误消息。

添加记录的指令似乎被忽略了!我在应用程序的哪个页面上并不重要,并且我已确保只有索引文件具有指向清单的链接...

非常欢迎建议!

戴夫

I have got a web app working in Safari 5 on the desktop that writes to a local storage database - not problems! Able to add, update and delete records fine.

I then set the web app up on the iphone, but it seems to be ignoring all database transcattions except creating and dropping tables.

It does not matter whether the app is on line or off line. If I add a record, it does not get added to the database. I enabled the debug console, but there are no error messages.

The instruction to add the record just seems to be ignored! It doesn't matter which page of the app i am on and I have made sure that only the index file has a link to the manifest...

Suggestions would be very welcome!!

Dave

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

山有枢 2024-09-24 23:02:18

好的...谢谢您查看此...

:)

事实证明,当应用程序在本地缓存时,页面刷新速度太快,无法将数据添加到数据库中!

我添加了一些设置超时,一切都很顺利...

对所有尝试这样做的人感到抱歉...

:)

OK... Thanks if you looked at this...

:)

Turns out that when the app was locally cached, the page refreshes were happening too quickly for the data to be added to the database!

I have added some settimeout's and all is peachy...

Sorry to anyone who went for it...

:)

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