问题标签 [jquery-mobile]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
2248 浏览

ios - Exporting files from a Javascript based phonegap app - options or ideas?

I'm currently writing a mobile app (hopefully iOS or android) using the jquery mobile framework and phonegap. It'll need to export/send csv files in some way to the users, but I'd be interested to hear ideas or suggestions about the best way of doing so. If this can be done on the js side of the app that'd be ideal as it's what I'm most familiar with. A couple of options I've considered are:

  • Uploading the file using the google docs api
  • Writing the file to the file system (then export e.g. via iTunes)

I'm new to this so any suggestions gratefully received! Thanks for your help

0 投票
2 回答
1033 浏览

asp.net-mvc - jQuery Mobile - Safari 浏览器在屏幕上滑动



我刚刚为客户完成了一个移动 Web 应用程序。我使用 MVC3 和 Razor 并使用 jQuery Mobile 编写了它。我没有注意到但客户端拥有的是 Safari(并且只有 Safari)在使用 Web 应用程序时似乎能够在屏幕上移动。这里很难解释,但是您可以将整个浏览器向左、向右、向上和向下滑动,留下灰色背景,这是其他移动网站所不具备的。

有谁知道这可能是什么?我什至不知道从哪里开始!

在此先感谢所有做出贡献的人。

0 投票
2 回答
4756 浏览

javascript - 一个如何渲染 jQuery Mobile UI 对象发布页面加载

我有一些在客户端使用 JS 生成的 HTML。我仍然想将 jQuery Mobile UI 的样式和功能也应用于这些对象。我似乎无法弄清楚如何...

假设我生成一个:

并希望通过页面内的 jQuery Mobile UI 呈现它......如何做到这一点?

我知道使用标准 jQuery UI 我只需要按照以下方式进行调用:

jQuery Mobile UI 有类似的东西吗?

0 投票
2 回答
7225 浏览

cordova - 应用程序关闭要捕获哪个事件?

我正在将 jQueryMobile 和 phoneGap 用于跨设备移动应用程序。我使用 html 5 本地存储来保存用户处理的记录。

我不知道在应用程序关闭之前要捕获哪个 phoneGap 事件,因此我可以确保在关闭完成之前保存数据。

根据 naughtur 的建议,我尝试了 unload 和 beforeunload 事件,在应用程序关闭期间它们都没有被触发。以下是我的代码片段:

0 投票
1 回答
13499 浏览

post - JQuery Mobile - 发布表单并获得响应

问候,

我有以下 jquery 移动页面:

./ajax/login.php 返回“OK”或“NOK”。如何在我的页面中捕获此结果?

我在 Firebug 中不断收到以下错误:

k.data( [Break On This Error] false)a.mobile.activePage=k;h(k);y&&D&...dd(k).removeClass(" out in reverse "+

好像 jquery mobile 正在对结果执行一些操作?我不希望这种情况发生。我必须从我的 PHP 中返回一个有效的 jquery 移动 HTML 页面吗?

任何见解都非常感谢。

提前谢谢了,

解决方案:使用<input type="button" id="login_submit" data-theme="a" value="Submit" />

现在我可以通过以下方式捕获点击事件:

0 投票
5 回答
10427 浏览

javascript-framework - Zepto.js 上的 jQueryMobile?

我想知道是否有人已经尝试将 jQueryMobile 移植到 Zepto.js ( http://zeptojs.com/ ) 而不是所需的 jQuery 之上?

0 投票
2 回答
288 浏览

jquery-mobile - http://jquerymobile.com/test 上运行的是什么 jQuery 移动版本?

似乎http://jquerymobile.com/test上的 jQuery Mobile 测试站点并没有真正运行 alpha 2(尽管第一页上写了什么)。

与http://jquerymobile.com/demos/1.0a2/上的 alpha 2 演示相比,它肯定显示了不同的(也许更少?)错误

这是否意味着测试站点正在运行最新的夜间构建?如果不是,那是什么版本?

0 投票
3 回答
2959 浏览

dialog - 如何防止在jquery移动对话框中自动关闭

我正在尝试使用 Jquery Mobile 的对话框。在文档中,它说如果用户单击对话框页面上的任何链接,diaglog 将被关闭。

文档:

“当在对话框中单击任何链接时,框架将自动关闭对话框并转换到请求的页面,就像对话框是普通页面一样。要在对话框中创建“取消”按钮,只需链接到触发对话框打开的页面。这种链接到前一页面的模式也可用于非 JS 设备。

我该如何预防?

0 投票
1 回答
7495 浏览

url - Jquery Mobile URL附加问题

我正在使用 Jquery Mobile Navigation Bars 从一页到另一页进行导航(或者在这种情况下从今晚到详细信息)。

我的基本网址是:http://192.168.1.104/mobile/tonight.html

我正在尝试使用以下代码从我的基本 URL 导航:

但带我去http://192.168.1.104/mobile/tonight.html#detail.html?id=slide&place=3

当我真正想要的是:http: //192.168.1.104/mobile/detail.html ?id=slide&place=3

但是,当我尝试直接链接到代码中的完整 URL 时,例如:

它引导我到: http: //192.168.1.104/mobile/tonight.html#http ://192.168.1.104/mobile/detail.html?id=slide&place=3

我该如何解决这个问题?我是否需要让 href 标记调用处理 url 的 javascript 函数?提前致谢。

0 投票
4 回答
7533 浏览

jquery - JQuery Mobile:.val() 不工作

问候,

我有以下 jQuery Mobile 代码:

这是我的javascript:

'hi' 出现在第一个警告框中,但是 '' 出现在第二个警告框中 - 即完全空白!!!

我也试过 document.getElementById('verifySMS_code') 无济于事。

我什至尝试过 jquery mobile 1.0a3pre

这对我来说是一个非常严重的问题,我不知道如何解决它。

我希望有人能帮帮忙。

提前谢谢了,