jqtouch

JQtouch swipe event/carousel

喜夏-厌秋 提交于 2019-12-25 02:09:19
问题 Ok so what I want isn't quite a slide show. My specific goal would be to have a container that houses a set number of divs and the user can swipe through said divs.If anyone is familiar with Sencha touch, I'm looking for something like the carousel panel. specifically it's going to be a people page that will house a photo of a person and a description. So after doing so research I came across a few options, one being... $(function(){ // This prevents scrolling $('#jqt').bind('touchmove'

jQTouch: How to embed YouTube video?

谁说我不能喝 提交于 2019-12-25 00:08:17
问题 I am trying to embed a YouTube video into a page of a jQTouch mobile app. I tried using the "embed" code from YouTube and it worked on my desktop browser (Chrome), but not on my iPod Touch browser (Safari). I then tried using the HTML5 video tag, and still got nothing. How exactly can I embed a YouTube video into a jQTouch app? I have seen embedded YouTube videos from non-jQTouch pages (e.g. www.squidoo.com/sqlitehammer) which played fine on the iPod Touch. 回答1: I have the following code

using jQTouch for large website

佐手、 提交于 2019-12-24 21:19:15
问题 I want to use jQTouch to build iPhone app for large website. When searched for it, I understood that I must edit my HTML code for website to be Suitable to my app, how I can do this without conflict with the style for my website? Also, what is the basic steps to using jQTouch ? just Add scripts and Initialize as here : http://code.google.com/p/jqtouch/wiki/GettingStarted . help me with many thanks. 回答1: A pretty good idea is to detect the iPhone server-side and then send different HTML with

iPhone - Phonegap UI Controls - Tab Bar

不想你离开。 提交于 2019-12-23 05:14:12
问题 Just started with Sencha today and found it a bit overwhelming. Was able to get a nice custom tabbar working, and top nav panel, however am stuck from where to go. Decided it might be a lot easier to just use JQTouch and a Phonegap TabBar instead. I found: http://phonegap.pbworks.com/iPhone%3A-UIControls-(TabBar) I'm on the latest 0.91 version of Phonegap, and the example given on that page doesn't seem to work... http: //skitch.com/nelga/d4nfd/iphone-simulator Does anyone have a suggestion

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

て烟熏妆下的殇ゞ 提交于 2019-12-22 09:49:09
问题 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

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

余生长醉 提交于 2019-12-22 06:48:05
问题 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

Detemine the previous page (i.e. referrer) in jQTouch

时光毁灭记忆、已成空白 提交于 2019-12-22 01:16:13
问题 I am trying to determine the previous page (e.g. the referrer) in order to decide whether to display the back button. I tried to check for $('.current').data('referrer') , but it is not always set. In fact, it is often not set. history.previous and document.referrer do not seem to be set, either. Could someone please enlighten me on this? 回答1: I have been struggling on the same problem using referrer, but I did not get that. I came up with the following solution that does not force me to

jQTouch execute code when AJAX page is loaded

◇◆丶佛笑我妖孽 提交于 2019-12-20 03:57:05
问题 When the content is static: <a href="#nearme">Click</a> <script>$('#nearme').bind('pageAnimationEnd', function(event, info){});</script> When the content is AJAX: <a href="page.html">Click</a> How do I bind something to occur after the AJAX (page.html) is loaded? 回答1: This question pertains to jqtouch which makes AJAX requests from regular anchor tags 回答2: Take a look at the demo, in particular the "GET Example" under AJAX section. Essentially, you want to have the anchor element to link to a

Can an iPhone Web App use the Camera?

给你一囗甜甜゛ 提交于 2019-12-19 17:42:29
问题 I have a web app and I want to take photos and then upload them to a server. Can this be done with a webapp? 回答1: [edit] It's now possible, please see answers below. No, webapp cannot access internal devices. Try PhoneGap to make the gap between your app and the internal devices. But that will compile an application, which need to be distrubuted via the Apple Store. 回答2: This is now possible with iOS 6 and HTML5. Using the <input> tag, you can get file input from either the camera or gallery

Can an iPhone Web App use the Camera?

自闭症网瘾萝莉.ら 提交于 2019-12-19 17:42:18
问题 I have a web app and I want to take photos and then upload them to a server. Can this be done with a webapp? 回答1: [edit] It's now possible, please see answers below. No, webapp cannot access internal devices. Try PhoneGap to make the gap between your app and the internal devices. But that will compile an application, which need to be distrubuted via the Apple Store. 回答2: This is now possible with iOS 6 and HTML5. Using the <input> tag, you can get file input from either the camera or gallery