jquery-mobile

Microsoft JScript runtime error: '$' is undefined

蹲街弑〆低调 提交于 2020-01-14 14:51:09
问题 I am trying to hide/show elements in a view using following code: $('buttonClass/IDhere').click(function (){ $('theDivYouWantToShowClass/IDhere').toggle(); }); However, I am keep getting Microsoft JScript runtime error: '$' is undefined What might be the issue and how do I fix it? 回答1: $ is defined by default when you load jquery. I would try and use jquery() to see if somehow $ is being unloaded etc. You can also load up firebug and hit the page. It should show up as a global variable

Desigining a mobile app for an existing Spring MVC application (Spring Mobile or Phonegap)

别说谁变了你拦得住时间么 提交于 2020-01-14 14:32:12
问题 I created a web application on Openshift using Spring MVC and MySQL. Now I want to go mobile for this application. I want to publish the same application as a mobile app (Android mainly). Primarily, this mobile version should play with HttpPost/Webservice security authorisation too. I know Pivotal has a Spring Mobile project which helps create a mobile site for the same application (with more sophistication like spring form tags and all). On the other hand, Phonegap can create a cross

Scale HTML content using JQuery Mobile & Phonegap

拟墨画扇 提交于 2020-01-14 14:16:10
问题 I need to dynamically load content from HTML emails into some type of content area within my HTML so that it is scaled to fit, exactly the way the native mail apps do for iPhone/Android. I have spent two days Googling and testing to no avail. I'm loading the HTML content (which is often set to width=600 or something nice), but rather than scaling, it is appearing as follows: iPhone Simulator Example The HTML is very simple: <div data-role="page" id="messagedetailpage" data-add-back-btn="true"

Scale HTML content using JQuery Mobile & Phonegap

一曲冷凌霜 提交于 2020-01-14 14:15:51
问题 I need to dynamically load content from HTML emails into some type of content area within my HTML so that it is scaled to fit, exactly the way the native mail apps do for iPhone/Android. I have spent two days Googling and testing to no avail. I'm loading the HTML content (which is often set to width=600 or something nice), but rather than scaling, it is appearing as follows: iPhone Simulator Example The HTML is very simple: <div data-role="page" id="messagedetailpage" data-add-back-btn="true"

jQuery Mobile 1.1.0 RC1 Modifying HREF for AJAX Posts in iOS Safari

筅森魡賤 提交于 2020-01-14 09:43:08
问题 Disclaimer: I am using jQuery Mobile 1.1.0 RC1 which is not a stable release yet. I have a link that needs to post an AJAX request and return a JSON response but when the link is clicked it seems that jQuery Mobile changes the HREF to a hash (#) in iOS Safari on the iPhone. It does not do this when testing in browsers with iPhone User Agents. Here is my basic HTML and JS to show what I have: <a href="/link/to/ajaxpost/">Send Ajax Request</a> and the JS $('#tab a').on('click', function(e){ var

Radio button not align properly at center in jquery mobile version 1.0?

霸气de小男生 提交于 2020-01-14 08:16:02
问题 I used radio button in my jquery mobile application and i'm using jquery mobile 1.0 and jquery 1.6.4. The problem is it always aligned left. So, i tried to move at center but it is not working. How to fix this? Thanks in advance. <div id="userOptionGroup" data-role="contain"> <fieldset data-role="controlgroup" data-type="horizontal" data-theme="b" style="font-size:12px;border:2px;"> <input type="radio" data-theme="b" name="radio-choice-b" id="radio-choice-wuser" value="windowUser" checked=

Radio button not align properly at center in jquery mobile version 1.0?

梦想的初衷 提交于 2020-01-14 08:15:28
问题 I used radio button in my jquery mobile application and i'm using jquery mobile 1.0 and jquery 1.6.4. The problem is it always aligned left. So, i tried to move at center but it is not working. How to fix this? Thanks in advance. <div id="userOptionGroup" data-role="contain"> <fieldset data-role="controlgroup" data-type="horizontal" data-theme="b" style="font-size:12px;border:2px;"> <input type="radio" data-theme="b" name="radio-choice-b" id="radio-choice-wuser" value="windowUser" checked=

jQuery mobile fixed footer, iOS web view, and scrollTop issue

余生长醉 提交于 2020-01-14 06:04:06
问题 I have a mobile application running Backbone.js and jQuery mobile. Because I have Backbone.js and for performance reasons I have disabled all the JQM routing and transitions. I understand that storing scroll location is a feature available in JQM, but I am unable to utilize that (as far as I know). I have a list view with a potentially long list of items. When the user taps one on the mobile device, it stores the current scroll position and renders a new view. When the user taps the "back"

jQuery mobile fixed footer, iOS web view, and scrollTop issue

天大地大妈咪最大 提交于 2020-01-14 06:03:10
问题 I have a mobile application running Backbone.js and jQuery mobile. Because I have Backbone.js and for performance reasons I have disabled all the JQM routing and transitions. I understand that storing scroll location is a feature available in JQM, but I am unable to utilize that (as far as I know). I have a list view with a potentially long list of items. When the user taps one on the mobile device, it stores the current scroll position and renders a new view. When the user taps the "back"

Trying to implement jPlayer using jQuery Mobile - player stops when launching dialog

寵の児 提交于 2020-01-14 04:32:28
问题 I am trying to design a page for mobile devices using jQuery Mobile that has jPlayer on the main page, and other content loaded either in tabs or another page or a dialog, such that the audio in jPlayer keeps playing. I am not sure how to implement tabs using jQuery Mobile, but I have tried adapting the 2 page example from the demos, and also a single page with a dialog which contains extra content, and using both methods the playback in jPlayer stops. I am not sure why this is happening. In