jquery-mobile

Change value of flip toggle dynamically with jQuery Mobile

情到浓时终转凉″ 提交于 2019-12-22 04:21:49
问题 I'm working with jQuery Mobile, and I save some settings in a cookie. When the settings page is reloaded, I read the cookie to set all the values. I'm having trouble setting the flip toggle switch. Most elements just have to trigger the keyup or changed events, but I'm not sure how the flip toggles gets its value from the select box. Any ideas? 回答1: After you change the value of the switch you have to refresh it for the animation to toggle: $('#Switch2').val('on').slider("refresh"); 回答2: It

MVC4 Multibuttons in form not working JQM

£可爱£侵袭症+ 提交于 2019-12-22 04:14:11
问题 Im Facing a weird problem on my JQuery mobile APP in MVC4: I have a form with a couple of texboxes like this @using Models @model Models.DataModel.Pagina_Details @{ Layout = "~/Views/Shared/_Layout.cshtml"; } @using (Html.BeginForm("Pagina_Details", "Home", FormMethod.Post, new { id = "PaginaDetailsForm" })) { if (Request.QueryString["Command"] != null) { Session["Command"] = Request.QueryString["Command"]; } else { Response.Redirect("Index"); } <div class="ui-corner-all custom-corners ui

Change page transition on the same page

∥☆過路亽.° 提交于 2019-12-22 03:42:16
问题 I have a html with two internal pages (data-role="page"). One of the pages shows a days date and data which are connected to this date. When I swipe left or right the day should change. What I need here is to get the page transition to show. It seems like I can't use the $.mobile.changePage() for the same page. Ultimately I don't want to refresh the page since I have some global variables I have to keep. Any suggestions how I can achieve this? EDIT: Found the solution Here. Used this line of

Change page transition on the same page

a 夏天 提交于 2019-12-22 03:42:06
问题 I have a html with two internal pages (data-role="page"). One of the pages shows a days date and data which are connected to this date. When I swipe left or right the day should change. What I need here is to get the page transition to show. It seems like I can't use the $.mobile.changePage() for the same page. Ultimately I don't want to refresh the page since I have some global variables I have to keep. Any suggestions how I can achieve this? EDIT: Found the solution Here. Used this line of

XML into JSON conversion in iOS

时间秒杀一切 提交于 2019-12-22 01:43:15
问题 I need to convert XML response to JSON and sand to the json To javaScript code. My XML response: <cell> <Result>True</Result> <sguid>02291c402-2220-422b-b199-f92f22e56d2f</sguid> </cell> I am using XMLReader supporting file from this site: XMLReader I am using this code to convert XML to JSON : + (NSString*) XMLToJson:(CXMLDocument *)xmlDocument { NSError *error = nil; NSArray *resultNodes = [xmlDocument nodesForXPath:@"//cell" error:&error]; if(error) NSLog(@"%@",error.description); CXMLNode

Using 3 columns with 3 listview

左心房为你撑大大i 提交于 2019-12-22 00:32:58
问题 I need to use 3 columns in a page, with 3 different listviews, but when I use the first <div data-role="page" id="left"> and close this div, the others columns don´t appear. left_menu.php and right_menu.php are similar to principal.php How to solve this? <style type="text/css"> body { margin: 0; /* margin and padding only necessary to cater for Mac IE5 */ padding: 0; /*\*/ overflow: hidden; /* because Mac IE5 don't understand */ } div { margin: 0; padding: 0; } #central { /*\*/ position:

jQuery Mobile 1.3.1 Uncaught Error: cannot call methods on popup prior to initialization; attempted to call method 'open'

末鹿安然 提交于 2019-12-22 00:29:53
问题 I have a simple login dialog which I pop-in on document load: <div data-role="popup" id="signupPopup" data-theme="a" class="ui-corner-all" data-dismissible="false" data-add-back-btn="true" data-transition="pop"> <h3 class="centerText">Login</h3> <div class="popup"> <form> <input type="email" name="email" id="email" class="centerText" placeholder="email" data-theme="a"/> <input type="text" name="zip" id="zip" class="centerText" placeholder="pass" data-theme="a"/> </form> </div> </div> $

changing the Style of Radio buttons in jQuery mobile 1.4.0

我怕爱的太早我们不能终老 提交于 2019-12-22 00:18:12
问题 I have the Following Radio buttons in my jQuery mobile app , I need to style them as the Radio button in the image bellow . I have tried the following css but it didn't give me the same result , Please Help me .. Html <div data-role="page"> <div data-role="header" data-theme="b" style="height:63px;"> </div> <div data-role="content"> <form> <fieldset> <input type="radio" id="Male" value=" Male" name="radio-group-1" /> <label for="Male" data-inline="true" style="background:transparent

Removing round corners from the button in jquery mobile

ぃ、小莉子 提交于 2019-12-21 23:35:33
问题 I have following button markup in a single/multiple page jquerymobile page template. <a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right" >About Us</a> I need to disable the round corners of this button using the button option as given in the jquerymobile docs. I have tried $('a').buttonMarkup({ corners: "false" }) in every events such as pagebeforecreate, pageinit, pagecreate and mobileinit I never got it working and have been struggling with it to make it for quite a long

Navigate between three pages in two different files in JQuery Mobile

醉酒当歌 提交于 2019-12-21 23:01:37
问题 Why can't I navigate from second.html to the other inner page #page3 ?. I am able to navigate from index.html to second.html. My code is as shown below : index.html page <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="widdiv=device-widdiv, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> <title> </title> <link rel=