jqtouch

How to stop the swipe event in jQTouch whilst a slide transition is occuring?

房东的猫 提交于 2019-12-06 21:51:29
I've almost finished a hybrid site and theres one issue I cant resolve (many due to the deliberate lack of documention on the now Sencha library). I have a binded event on the swipe, left and right, proper animations, its just when I swipe quickly, or I swipe - the page starts to transition (slide) - whilest transisitoning I swipe again. I throws jQtouch and results in a black page. $('div.touch').swipe(function(event, info){ switch(info.direction){ case 'left': jQT.goTo('#test', 'slide'); break; I'm thinking 'pageAnimationEnd' will probably be the event I need to use and tie in somehow. But

Keyboard hides iOS input fields in PhoneGap Build 3.1 with an iFrame/object and JQTouch

我只是一个虾纸丫 提交于 2019-12-06 12:32:53
I'm developing an app that loads a form from another website into an iFrame. The iFrame is set to 100% width and height while displayed. That website has JQTouch. When I touch an input field in iOS 7 on the iPhone, the keyboard pops up and covers the input fields. It doesn't scroll, resize, or even let me scroll down to see the input field. If I type and then close the keyboard, nothing happens. I've tried everything I've come across. Adding/removing height=device-height in the meta viewport tag didn't do anything. The thing that came closest to a solution was adding the preference

Multiple iScroll elements on same page

☆樱花仙子☆ 提交于 2019-12-06 03:37:26
问题 I'm making a mobile website with jQtouch and iScroll. I wan't to get multiple scrollable areas with iScroll, but only of the lists works with iScroll... I tried with this: var scroll1, scroll2; function loaded() { scroll1 = new iScroll('wrapper'); scroll2 = new iScroll('list_wrapper'); } But without luck. Anyone have a solution that's working? My html: <div id="wrapper"> <ul> <li><a href="#">Test</a></li> </ul> </div> <div id="list_wrapper"> <ul> <li><a href="#">Test</a></li> </ul> </div> 回答1

Javascript equivalent of iOS's 'tap' event, but for android

﹥>﹥吖頭↗ 提交于 2019-12-05 18:21:44
I am using jqtouch to make a touch-optimized site. For iOS, I bind "tap" to the click listener, but this doesn't register in Android. I tried using touchend, which works, but it then overrides any sort of dragging (click on items when all a user is trying to do is scroll). What would I bind it to for Android? Here's my code: var userAgent = navigator.userAgent.toLowerCase(); var isiPhone = (userAgent.indexOf('iphone') != -1 || userAgent.indexOf('ipad') != -1 || userAgent.indexOf('ipod') != -1) ? true : false; var isAndroid = (userAgent.indexOf('android') != -1) ? true : false; clickEvent =

Phonegap - Prevent Rotation While Still Having Auto-Orientation Enabled?

冷暖自知 提交于 2019-12-05 11:11:07
I'm reposting someone else's question I found on Google groups, I'm having a similar problem: I have an application that requires everything to be in Portrait, except for when it plays a video. On iOS, when video playback is passed to the Quicktime player, I want the video to be able to be played in Landscape mode. Currently the video only plays in Portrait, since it seems to inherit the portrait - only from the phonegap application. My solution may be to change the Phonegap.plist to Auto rotate, but then I'd want to be able to use javascript to catch for rotation changes and prevent them in

How to handle Multiple DOM elements with iScroll (while using jQTouch)

女生的网名这么多〃 提交于 2019-12-05 03:06:45
问题 I've my markups as <div id="home" class="current"> <div class="header">iScroll</div> <div class="wrapper"> <div id="scroller"> <ul id="thelist" class="plastic"><!-- li items --></ul> </div> </div> <div class="footer">Footer</div> </div> <!-- Events Details --> <div id="events"> <div class="header">iScroll</div> <div class="wrapper"> <div id="scroller"> <!-- stuffsss --></div> </div> <div class="footer">Footer</div> </div> For iScroll (http://cubiq.org/iscroll) to work, I need the #scroller as

How can I access auth-only Twitter API methods from a web application

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 12:17:45
问题 I have a web application for iPhone, which will ultimately run within a PhoneGap application - but for now I'm running it in Safari. The application needs to access tweets from Twitter friends, including private tweets. So I've implemented OAuth using the Scribe library. I successfully bounce users to Twitter, have them authenticate, then bounce back. At this point the web app has oAuth credentials (key and token) which it persists locally. From here on I'd like it to user the Twitter

Multiple iScroll elements on same page

六月ゝ 毕业季﹏ 提交于 2019-12-04 08:05:57
I'm making a mobile website with jQtouch and iScroll. I wan't to get multiple scrollable areas with iScroll, but only of the lists works with iScroll... I tried with this: var scroll1, scroll2; function loaded() { scroll1 = new iScroll('wrapper'); scroll2 = new iScroll('list_wrapper'); } But without luck. Anyone have a solution that's working? My html: <div id="wrapper"> <ul> <li><a href="#">Test</a></li> </ul> </div> <div id="list_wrapper"> <ul> <li><a href="#">Test</a></li> </ul> </div> I'm using this approach. Html: <div class="carousel" id="alt-indie"> <div class="scroller"> <ul> <li></li>

Best article about how to use jQTouch

本秂侑毒 提交于 2019-12-03 13:19:27
I want to use jQTouch on my project, but I can't find many examples. So do you know some website which has many jQTouch examples. Thanks I work for sencha who funds jqtouch development. Here are the best getting started materials that people have said are useful. If you're looking for cut and paste jqtouch code then, you can look at the directory of applications on the Google Code Group If you're looking for introductory training materials, you should look at the following resources: Jonathan Stark (ex-maintainer) youtube tutorial Peepcode's intro tutorial (awesome tutorials) The Google code

How can I clear the cache of an IOS Web App on the Homescreen?

假装没事ソ 提交于 2019-12-03 06:42:09
问题 I am using JQTouch to create a Web App on the Homescreen using meta tag "apple-mobile-web-app-capable", but no matter how many times I clear the cache from within Settings, the Web App's Javascript is still an older cached version. Strangely enough, if I set the meta tag's content to; <meta name="apple-mobile-web-app-capable" content="no" /> ...then add the Web App to the Homescreen, I get the latest version when I launch it. Yet if I set the meta tag to; <meta name="apple-mobile-web-app