jqmobi

Determine Active Panel

雨燕双飞 提交于 2020-01-03 03:17:25
问题 I'm on a phonegap project. I do my project with JQMobi (new name is Intel's App Framework).. On this project i want to determine the visible/active panel to startup my functions according to it. Here is what i've tried ; $(document).bind('pageshow', function () { var id = $.ui.activeDiv[0].id; if ($.ui.activeDiv[0].id=="contents01"){ getLive(); } }); function getLive(){ alert('on live page!'); } how can i do this in jqmobi/app framework ? i used this in jquery mobile and it was working. $

jqmobi. on ios (ipod) when input field focused content moves up

醉酒当歌 提交于 2019-12-25 03:06:36
问题 I'm using jqmobi. http://jqmobi.com/testdrive - same here On iOS when the input field becomes focused, the content moves up. I want the header to stay in the same position. 回答1: There no method to do it in the current jqMobi version. A Workaround is to reposition #jQUi style.top according to the document.body.scrollTop when the phone enters keyboard mode; You can use $.touchLayer event 'enter-edit-reshape' and 'exit-edit-reshape' to detect the resize cross-browser. $.bind($.touchLayer, 'enter

in Cordova 1.8.1 - Android history.back() not working

荒凉一梦 提交于 2019-12-13 04:28:27
问题 I am developing a phonegap application in which the app loads the external url(http://example.com) into webview. When I navigate through the screen using window.location.href. I cant able to go back to the previous screen using the soft back button that present in the webview itself. The android hard back button closes the back(which is fine for now). Can anyone help me out. 回答1: It is the same problem: If jquery mobile does not create history entries, the back-button from the android phone

Phonegap + jqMobi / Intel App Framework causes constant screen resize

[亡魂溺海] 提交于 2019-12-08 11:37:08
问题 Somehow when I try a basic example of Intel App Framework in a Phonegap project, the screen constantly keeps resizing (leaving a white space of the size of the virtual keyboard and back to 100% height). When I try out the site in a browser everything is fine... I tried every viewport setting that I could think of....something is causing this behaviour, but what? 回答1: The problem is that the 'afui' div is absolute-positioned. The following css fixes this : #afui { position: static; } 来源: https

Determine Active Panel

被刻印的时光 ゝ 提交于 2019-12-07 00:23:25
I'm on a phonegap project. I do my project with JQMobi (new name is Intel's App Framework).. On this project i want to determine the visible/active panel to startup my functions according to it. Here is what i've tried ; $(document).bind('pageshow', function () { var id = $.ui.activeDiv[0].id; if ($.ui.activeDiv[0].id=="contents01"){ getLive(); } }); function getLive(){ alert('on live page!'); } how can i do this in jqmobi/app framework ? i used this in jquery mobile and it was working. $(document).bind('pageshow', function () { var id = $.mobile.activePage[0].id; if (id=="home"){ getHomePage(