jquery-mobile

iOS Web App problems with apple-mobile-web-app-capable

夙愿已清 提交于 2019-12-23 04:33:40
问题 I am currently writing a small web app using Asp.net MVC and jQuery mobile. Everything is rendering fine in the desktop test environment and in Safari browser on the iPad. However, when I add <meta name="apple-mobile-web-app-capable" content="yes" /> to the head I start getting some weird behaviors. Here is the beginning of my simple test login page for the explanation below: <%@ Page Title="Test App" Language="C#" Inherits="System.Web.Mvc.ViewPage<TestApp.ViewModels.LoginViewModel>" %> <

Before submitting form programmatically

*爱你&永不变心* 提交于 2019-12-23 04:25:05
问题 In jQuery-Mobile I'm submitting a form programmatically and I want to capture the submit event to perform some validations before. I have already tried the following solution provided in other questions about jQuery: $(document).ready(function(){ $('#my_form').bind('submit', function() { alert('before submit'); ... }); }); But I cannot get the function executed and the alert displayed. Does anyone know any other way to achieve this? My form is something like: <form id="my_form" method="POST"

How to create a sidebar in jQuery Mobile Websites?

落爺英雄遲暮 提交于 2019-12-23 04:25:00
问题 I want to simply create a sidebar like the one on the jQuery Mobile Demo Docs here. I have read this question and didn't quite understand on how to implement it. The point is, I'm making a website using jQuery Mobile for big screens, like Desktops, Net Books, Tablets and more. For the mobile site, I will just use the site without the sidebar. I have also tried SplitView (code here) but its a bit buggy, I think because jQuery Mobile hates sidebars... So: Either I want a solution to implement a

JQuery Mobile Ajax Navigation in Single-Page Template

荒凉一梦 提交于 2019-12-23 04:14:08
问题 We are developing JQuery Mobile app using RC1 + ASP.NET MVC3. My question is: Is Ajax based page navigation possible using single page template? (as mentioned here: http://jquerymobile.com/demos/1.0rc1/docs/pages/page-template.html ) I am keeping $.mobile.ajaxEnabled = true; and using simple I am able to navigate to different "Single page" of application. I have few event binding to be done in new page (which we usually do in $(document).ready()) event of jQuery, I tried to use pageinit,

Paint App, JQuery mobile - Object Has No Method

与世无争的帅哥 提交于 2019-12-23 03:59:13
问题 I'm really pretty new to code. I'm trying to make a paint app that will work on desktop and mobile. I had it working fine on desktop using JavaScript but then to get it to work on mobile it seemed like JQuery mobile was a recommended method. I'm converting it to JQuery and had the maint working with .mousedown, .mouseup, etc. but when I changed to to .vmousedown, .vmouseup, etc. to have it work with touch I get an error which I can't seem to resolve. Uncaught TypeError: Object [object Object]

Trigger .changePage() when html5 video ends, iOS

余生长醉 提交于 2019-12-23 03:46:13
问题 Here is a snippet that gets the job done on Android (v2.2) and various desktop browsers (Chrome, FF). The issue lies with iOS, which will happily alert, but won't change the page. It seems to be waiting for the user to click the Done button, which I would like to avoid . I know this is possible to achieve, because someone tried it, using iOS 4, during a point where I was mucking with the code, and it worked for them - so I know it's possible. The end result is to skip the Done button after an

Jquerymobile and jquery ui data icon conflict

笑着哭i 提交于 2019-12-23 03:30:58
问题 In my web app, I have a page where I use autocomplete widget from jQuery UI. I link to jQuery Mobileand jQuery UI CSS from this page. link rel="stylesheet" href="Styles/jquery.mobile-1.0.1.min.css" type="text/css" link rel="stylesheet" type="text/css" href="Styles/ui-lightness/jquery-ui-1.8.16.custom.css" when I do this, my jQuery Mobile data-icons dont show at all. I just see a black hole in place. The other pages where I refer to only the jQuery Mobile have no issues. they display the data

jQuery Validation & jQuery Mobile Conflict

為{幸葍}努か 提交于 2019-12-23 03:14:19
问题 I'm currently using jQuery Mobile and this validation framework. Everything was fine until I tried to create a jQM multiselect select menu. The elements render but it make the options unselectable. Has anyone else encountered this and found a solution? 回答1: Interestingly, the packed version of the jQuery Validate isn't compatible with jQM. The unpacked and minified versions seem to work fine, however. 来源: https://stackoverflow.com/questions/8067275/jquery-validation-jquery-mobile-conflict

windows phone: jquery mobile swipe not recognized

落花浮王杯 提交于 2019-12-23 03:14:04
问题 I'm making an HTML + jquery mobile app. It works fine on my pc but when I try it out on my windows phone the swipe event doesn't seem to get fired.. $('div.ui-page').live("swipeleft", function () { goToNextPage() }); 回答1: Windows Phone 7/IE9 does not support mousemove event so there is not way for jquery mobile to recognize swipe event. Some mobile frameworks like Apache Cordova (PhoneGap) provide workaround for this by adding special shim between native (silverlight) touch events and web

Paypal Java script integration

扶醉桌前 提交于 2019-12-23 03:10:35
问题 Want to integrate Paypal with my mobile web application. I tried to get the access token using client id and secret id but unable to get the access token. Below is the sample Ajax call with I am making to retrieve the access token. function getAccessToken(){ $.ajax({ url:"https://api.sandbox.paypal.com/v1/oauth2/token/", type:"POST", data : {"grant_type":"client_credentials"}, beforeSend: function (request) { request.setRequestHeader("Accept", "application/json"); request.setRequestHeader(