jquery-mobile

Phonegap Jquery mobile cross domain ajax request not working

折月煮酒 提交于 2019-12-11 18:51:07
问题 I am trying to make a ajax request from my phonegap app to a serverside code written in php which is on my localhost. I am trying to use the jsonp request. This is my code $.ajax({ url: 'http://localhost/score-tracker/get-groups.php', type: 'GET', contentType: "application/json", async: true, dataType: 'jsonp', crossDomain: true, success: function(resp){}, error: function(err) {} }); But the control does not return either in error or success callbacks. I even have this enabled : $.support

JQM - Debating correct approach to load dynamic content

泪湿孤枕 提交于 2019-12-11 18:24:41
问题 I wonder if the procedure outlined below for injecting dynamic content is methodically correct. The approach is based on a slightly modified piece of code described in jQM's Dynamic Page Generation doc that does away with a noticeable statement ($.mobile.changePage). Assume the page consists of 2 virtual pages ("pgActLst" and "pgActDet"). Virtual page "#pgActLst" contains a collection of anchors that point via PKs to various activities over a specific range; "#pgActDet" details activity

How to make jquery mobile custom theme generated with themeroller work?

大憨熊 提交于 2019-12-11 18:12:01
问题 I created a custom jquery theme on jquery themeroller and downloaded it, as the instructions said, I have included the following line on the head part of the html file, should I also tranfer the css file to my server? if so should it be all files? <meta name="viewport" charset="UTF-8" content="width=device-width, initial-scale=1"/> <link rel="stylesheet" href="themes/MyCustomTheme.min.css" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css"/>

Customize and create multiple line of tooltips in bar chart

我的梦境 提交于 2019-12-11 18:11:56
问题 I have try the code from the answer of potatopeelings in the Customize different tooltips of bar chart , but chart.js seems doesn't work under jquery mobile. Following is my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

Jquery mobile datebox today button close on click

帅比萌擦擦* 提交于 2019-12-11 18:09:17
问题 I'm using the jquery mobile datebox from here: http://dev.jtsage.com/jQM-DateBox/ and I am setting the calTodayButton to true. The problem I have is when I click the button it just selects today's date which is fine but I also want it to close on click. Any ideas as to the best way to do this? 回答1: Try adding an click event to the button which closes the parent container like this $('.ui-datebox-controls').find('a.ui-btn').on("click",function(){ $(this).parent().parent('.ui-datebox-container'

Jquery Dynamically generated buttons no css

☆樱花仙子☆ 提交于 2019-12-11 17:56:11
问题 I am fetching some data from a Google Places Api, I am using jquerymobile to show a user nearest places, the data comes in JSON I want to generate a set of buttons so is easy for user to click selected location. The data is generated but the button is showed as a link with no style, even is the same code of another button with style. here is the code snippet. $.each(pdata.results, function(key) { if (key>0 && key<6) { $('#dPlaces').append('<a href="#" data-role="button">'+pdata.results[key]

Phonegap Build API calls not firing

萝らか妹 提交于 2019-12-11 17:55:29
问题 I'm making an application using jQuery Mobile and Phonegap Build. The jQuery Mobile javascript code works fine, however the phonegap javascript code doesn't seems to be working. The application it's using a multiple html template, and I made the login the index file of the application. I'm using phonegap version 3.1.0 (current default for build service) I'm adding the following lines in the config.xml file: <gap:plugin name="org.apache.cordova.device" /> <gap:plugin name="org.apache.cordova

How to make css for navbar (Jquery Mobile) bottom up submenu automatic?

别等时光非礼了梦想. 提交于 2019-12-11 17:55:19
问题 I have modified JQuery Mobile NAVBAR to show bottom up navigation menu (instead of the standard drop down). As you can see from the code, I had to manually write css for every li node. For example, bottom:100% , bottom:200%, width: 25% etc... This is working but is there a way how to modify this css and create automatic bottom and width calculation when adding submenus? <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"

How to make jQuery Mobile only affect one page [duplicate]

試著忘記壹切 提交于 2019-12-11 17:55:16
问题 This question already has answers here : jQuery Mobile disable enhancement on certain tags? (2 answers) Closed 5 years ago . In the website that I am creating I use jQuery Mobile, which granted I don't know much about, and I'm having a big problem. In my website I only link to jQuery Mobile on one page, and I only want to use jQuery Mobile on one page (I don't know if that is possible, but that is what I want to do). I have four main pages on my website: Homepage.php, SalesForms.php, Reports

jquery post in mobile browser doesn't work

倾然丶 夕夏残阳落幕 提交于 2019-12-11 16:52:33
问题 I'm trying to make a post request with jQuery in a web application with the following code : alert('1'); $.post(server_hostname, { method: 'getTimestamp', type: 'text', partnerKey: partnerKey }, function(results, textStatus) { alert(results) alert('2'); }, 'text'); That's working very well in chrome and firefox on my computer but not in safari for iOS nor in the Android browser. I guess $.post() doesn't success in a mobile browser but why? On the other hand, how can I see the javascript