blackberry webworks 应用程序中的多个页面

发布于 2025-01-04 14:06:34 字数 383 浏览 3 评论 0原文

我正在为黑莓剧本创建 HTML5 应用程序。我想知道如何管理导航和多个页面。

我的应用程序是一个表格视图,它允许您单击表格行来加载新页面,然后在该页面上您可以加载第三页。我预计不需要超过 3 层。

最好如何做到这一点?我是否像普通浏览器一样链接到新页面,并在 GET 字符串中传递行 id,以便由子页面上的 JS 拉出?或者我是否将内容加载到页面之外的 div 中,然后将其滑入有点像 jquery mobile 工作?

我在所有页面上都使用 ajax 来加载内容,因为所有内容都是从我的服务器上的 API 获取的。如果需要,我当然可以使用本地数据存储,但如果对视图进行分层并将它们推入和推出堆栈,那就更好了。

我正在寻找有关如何处理具有多个内容视图的 webworks 应用程序的建议。

I am creating an HTML5 app for a blackberry playbook. I am wondering how to manage navigation and multiple pages.

My app is a table view, which will allow you to click a table row to load a new page, then on that page you can load a 3rd page. I don't expect to need any more than 3 layers.

How is it best to do this? Do I link to a new page as if it were a normal browser and pass the row id in the GET string to be pulled out by the JS on the child page? Or do I load the contents in a div off the page, and slide it in a bit like jquery mobile works?

I do have ajax on all pages to load the content, as everything is fetched from an API on my server. I can of course use local data storage if required, but it would be far better if there was a layering the views and pushing them on and off a stack.

I am looking for advice on how to approach a webworks app that has multiple content views.

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

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

发布评论

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

评论(1

桃酥萝莉 2025-01-11 14:06:34

如果不需要对数据进行操作&&只是想显示并将其保留在单个网页中。但如果你有大量的数据&您必须对其进行操作,然后考虑将其拆分到另一个页面中。当我将应用程序拆分为多个页面时,我遇到了问题。在导航之间,页面加载期间存在延迟。即使页面从本地提供。

If there is no need for manipulation of data && just want to display just keep it in single web page. But if you have considerable amount of data & you have to manipulate it then think about splitting it into another page. I faced an issue when I split my app into multiple pages. In between navigation there is lag during the page load. Even if the pages serves from local.

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