jquery-mobile

IBM Worklight 6.0 - WL.Client.reloadApp() not working in Windows Phone 8

烈酒焚心 提交于 2019-12-20 07:28:36
问题 We are using Worklight 6.0.0 enterprise edition and currently building hybrid apps for android, BB, Windows Phone 8 and iOS. We are currently getting the below error when invoking WL.Client.reloadApp() when clicking on a logout button. This works fine all OSs except for WP8. CordovaBrowser_NavigationFailed :: ///www/default/www/default/pages/www/default/pages/www/default/pages/www/default/pages/myaccount.html ERROR: Exception in InvokeScriptCallback :: An unknown error has occurred. Error:

IBM Worklight 6.0 - WL.Client.reloadApp() not working in Windows Phone 8

六眼飞鱼酱① 提交于 2019-12-20 07:28:02
问题 We are using Worklight 6.0.0 enterprise edition and currently building hybrid apps for android, BB, Windows Phone 8 and iOS. We are currently getting the below error when invoking WL.Client.reloadApp() when clicking on a logout button. This works fine all OSs except for WP8. CordovaBrowser_NavigationFailed :: ///www/default/www/default/pages/www/default/pages/www/default/pages/www/default/pages/myaccount.html ERROR: Exception in InvokeScriptCallback :: An unknown error has occurred. Error:

different colors on radio buttons when they are active in Jquery mobile

Deadly 提交于 2019-12-20 07:26:51
问题 I have three radio buttons which have the same theme in jquery. If I select one of them, the color of the button will change to the color specified in my .ui-btn-active class in the css. My radio buttons are named Can meet, not sure and Decline. I want my Decline radio button to have a different color than the two others when it is selected (the color red). I'm using Jquery mobile and have customized the css for which colors I want to have on the different themes and I have changed the .ui

getting data from MySQL on jquerymobile only when I refresh the page

泪湿孤枕 提交于 2019-12-20 07:25:56
问题 ok so I'm trying to load data and move to another page once I'm clicking on a search button in my index.html this is my search button <a href="results.html" data-role="button" data-icon="search" data-iconpos="notext">search</a> and while it's loading I want the page to run this function and get data $(function () { $.getJSON("API.php", { command: "getBusiness", orig_lat: myPos.lat, orig_long: myPos.lon, distance: 0.05 }, function (result) { $("#locations").html(""); for (var i = 0; i < result

jquery mobile datebox custom alignment

天大地大妈咪最大 提交于 2019-12-20 06:28:54
问题 I am currently using jquery mobile datebox (http://dev.jtsage.com/jQM-DateBox/) to display a calendar. I stuck the input in a div with display: none, and then I manually activate the calendar with the following javascript: $('#opencalendarlink').live('click', function(){ $('#datepicker').datebox('open'); }); where opencalendarlink is the id of the button and date picker is the id of the calendar. However, the calendar appears now left aligned, although the button and corresponding hidden div

jqm popup is not opening

混江龙づ霸主 提交于 2019-12-20 06:28:11
问题 I added a popup to a div-container. Opening the popup doesn't work. This is my container-structure: <div data-role="page" id="mainPage"> <div id="myContent"> <!--div id="myContent" data-role="content/main"> dosn't work either --> <div id="template" style="display:none;"> <a class="select-Button"> ... </a> </div> <ul data-role="list-view"></ul> <div data-role="popup" id="myPopup"> <p>My Popup</p> </div> </div> </div> I'd like to open the popup by javascript: ...clone the template and add

How to disable the default JQM page in a SPA?

时间秒杀一切 提交于 2019-12-20 06:25:13
问题 I have a single page JQM application - all JQM "pages" are in one document: <div> @RenderPage("Views/login.cshtml") @RenderPage("Views/page1.cshtml") @RenderPage("Views/page2.cshtml") </div> How can i disable displaying a JQM page by default, which currently happens to be the login.cshtml, so i can manually invoke the transition method to erase the login page from the history, after the user has logged in ? Eq this is what i want to invoke manually on initial document load: $.mobile

Jquery mobile t.split is not a function

眉间皱痕 提交于 2019-12-20 06:18:59
问题 I'm working on a website that gets content dynamically from a database and puts them in the HTML code, which should consist of JQuery Mobile pages so I can click a link and it will slide to the corresponding page. I'm running JQuery 1.9.1 and JQuery Mobile 1.3.1 to get the slide effect to work, but it's giving me an error saying "t.split is not a function". It also shows a large "LOADING" text in the middle of the page without any javascript there. Am I missing something? Edit: I've chosen to

$.mobile.silentScroll does not work in worklight app

血红的双手。 提交于 2019-12-20 05:52:29
问题 I am developing an application using worklight framework from IBM in which I use jquery mobile library to code. Unfortunately, when I use $.mobile.silentScroll to scroll, it has no effect, it does not work. Has anyone met that issue? In other work, How to scroll page in worklight? 回答1: I don't think you can do this with jQuery Mobile's silentScroll , as it basically uses window.scrollTo, and this allows to scroll only within the current viewport (what you currently see on the screen). Instead

scrollTo gets overridden when using jQuery Mobile

假装没事ソ 提交于 2019-12-20 05:45:14
问题 I am creating a mobile web app with jQuery Mobile and would like to hide the search bar above the visible area. So the user would need to pull the page down to see the search bar. I'm thinking the best way to do that is to define the search bar as usual then on page load manually set the scroll position, say down 55px. Here's my code: $(document).ready( function() { $("html,body").scrollTop(55); } The problem is, I can see upon refreshing the page it is hidden from view, but once it has fully