FAQ Database Discussion Community


Change the Position of Jquery Mobile Range Slider values field

jquery-mobile
I am using this code for jquery mobile range slider plugin. <div class="ui-field-contain"> <div data-role="rangeslider"> <label for="range-7a">Rangeslider:</label> <input name="range-7a" id="range-7a" min="0" max="100" value="0" type="range" /> <label for="range-7b">Rangeslider:</label> <input name="range-7b" id="range-7b" min="0" max="100" value="100" type="range" /> </div> </div> the result will display values at the both end of the slider.Is their...

Changing button value of a jQuery mobile with a setTimeout function

jquery,html,jquery-mobile
I am facing a very challenging problem due to my little knowledge in jQuery mobile. I have researched many solutions and implemented them but does not seem to work I have a button called click me When a user clicks on the button, the button becomes disabled and the text...

Changing the value of a jQuery mobile button with a set time

jquery,jquery-mobile
I am facing a very challenging problem due to my little knowledge in jQuery mobile. I have researched many solutions and implemented them but does not seem to work I have a button called click me When a user clicks on the button, the button becomes disabled and the text...

jquery mobile listview - touchstart event to fire on
  • element
  • javascript,android,jquery-mobile
    When I try and fire an event on a listview <li> item it seems that the whole element is not considered, but only the elements inside it: <ul data-role='listview' data-filter='true' data-filter-placeholder='Search Your Trucks..' data-inset='true' data-mini='true'> <li id=tg_1><a id=tg_2 href=#divdet>ONE</a> TEST </li> <li id=tg_2><a id=tg_2 href=#divdet>TWO</a> FOO </li> </ul> The function...

    How to capture events for dynamically created data-role=“collapsible”

    jquery-mobile
    Could you please let me know how to capture the events for data-role="collapsible" This is my fiddle http://jsfiddle.net/5kbEE/18/ I have tried it this way $('.my-collaspible').on('collapsibleexpand', function() { alert('herere'); }); How ever i observed that the above event is working fine in case the data-role="collapsible" is static one (http://jsfiddle.net/5kbEE/19/). Could you...

    jQuery Mobile Slider for dollar amounts

    jquery-mobile,slider,jquery-ui-slider,jquery-slider
    I am wondering if anyone knows how to modify the jQuery Mobile Slider to show dollar amounts? Or at the very least so show 2 decimal points at all times. i.e. if a user selects 10 I want it to show 10.00 instead of 10. With my current HTML below,...

    jQuery Accordion doesn't load unless I refresh the page

    jquery-ui,jquery-mobile,accordion
    I am trying to use Accordion in my page, but it doesn't load unless I refresh the page. Here is the link: http://mzprojects.net/191stband/191stband.html click on the menu panel and click ensembles. The accordion does not work unless you refresh you page. Please look at the source code for the ensembles...

    How to add new elements to the page via function calls, and attach event handlers to them, without specifying them inside the function?

    jquery,jquery-ui,jquery-mobile
    So I have an app. It's written on jQuery(UI & Mobile). I have this page structure: Main Page: <!-- Main Page --> <div data-role="page" id="home"> <header data-role="header" data-theme="a"> <h1>Running Tracker</h1> </header> <div data-role="navbar"> <ul> <li> <a href="#add" data-transition="fade" data-icon="plus">Add Run</a> </li> </ul> </div> <div data-role="content"> <h3>Welcome to the RunningTracker App</h3>...

    Set same size of all controls in controlgroup div with jQuery Mobile?

    javascript,jquery,css,jquery-mobile
    I have following controlgroup div as shown at Here . with following code: <div id="Etc" data-role="controlgroup" data-type="horizontal" align="center"> <a target="_blank" href="https://www.facebook.com/icnet.tv" class="ui-btn EnglishText">Join us on Facebook!</a> <a href="#ContactPage" data-transition="flip" class="ui-btn EnglishText">Contact us</a> </div> What do i want is that the Contact Us & Join us on Facebook have the same...

    jQuery mobile Multiselect doesn't update selected attribute

    javascript,jquery,html,jquery-ui,jquery-mobile
    I have a jQuery mobile custom multiselect, but when I select one item we have the list of items on the HTML select tag, but it is not updated with the selected attribute. Using the Multiple selects example of the page: <div data-role="fieldcontain" class="ui-field-contain ui-body ui-br"> <label for="select-choice-9" class="select ui-select">...

    Can't change skrollr-menu scroll speed (duration)

    javascript,jquery,jquery-mobile,parallax,skrollr
    I'm trying to implement skrollr-menu into my website. What I want it to do is scroll down to the very bottom when the button is clicked (which I've got working just fine. The problem is that no matter what I do, I cannot get it to go any slower than...

    What is the difference between '.scroll' and 'silentScroll'?

    jquery,jquery-mobile
    Just for my own knowledge, what is the real difference between jQuery .scroll and jQuery Mobile .silentScroll? I've read that silentScroll is used to scroll without triggering the scroll event, but what does really mean? And to add to that, why is silentScroll presumably better for mobile?

    Unexpected data representation

    javascript,jquery,jquery-ui,jquery-mobile,local-storage
    So I have an app, that allows you to add data, and then it displays all the data(still wip). So I made a Create and Read functionality so far using localStorage and jQueryMobile and jQueryUI. But for some reason when I switch between pages(main page/add data page), I see cloned...

    onClick event in jQuery mobile do not work

    javascript,jquery,jquery-mobile
    I am new to jQuery and have made a page with some buttons i want to do some actions when they are clicked. I have made a jsFiddle with my code. When I execute the code on my laptop with chrome, it works fine. But when I execute it from...

    error “The connection to the server was unsuccessful. (file:///android_asset/www/index.html)” in codovar and jqury

    android,jquery,cordova,jquery-mobile
    I created an app for android using cordova and jquery mobile. It works well when I test run the code using google chrome, but when I try to run it on android emulator using android studio in cmd (locate>cordova emulate android) it doesn't working. When i try to run it...

    How to centre button icons in jQuery Mobile grid

    jquery,css,jquery-mobile
    I am trying to align button icons in jQuery Mobile grid. But nothing seems to be working. Currently, all three icons are left aligned by default. I want to align the left most icon "right", the centre icon "centre" and the right most icon "left". Below is my basic markup:...

    How to open a jQuery Mobile popup programmatically and close it after 5 seconds

    javascript,html,jquery-mobile,popup
    I want to open a jQuery Mobile popup programmatically and then close it after some seconds, here is my code : is there anything wrong, cause I'm not getting what I want to show $( "#p" ).popup( "open" ); setTimeout( function(){ $( "#p" ).popup( "close" ); }, 5000 ); <script...

    This is for jQuery Mobile. Unable to disable my input button

    jquery,jquery-mobile
    I am trying to disable an input submit button. the problem is, with my below code the button only seems to disable when the page is refreshed. i tried using $(this).atrr('refresh'); so once the button has been disabled it should refresh it so it visually appears to be disabled any...

    How do I know how many physical inches a device screen has?

    javascript,android,ios,css,jquery-mobile
    I have a website that needs to distinguish between mobile phones, tablets, and ordinary laptops. Normally I could use an asp.net function to tell, but the complication is that I want tablets to be treated as NOT being mobile devices. Any device with a screen diagonal greater than 7.5 inches...

    Add buttons to a specific page

    javascript,jquery,html,jquery-mobile
    I wish to dynamically add buttons to a specific page. Should I be handling this event in order to do so? $(document).on("pagebeforecreate",function(event){ }); How do I establish which page the event is triggered for? ...

    jQuery mobile data-role=“button” not formatting

    jquery-mobile,button
    I'm loading into another div with .load('settings.html') function in The settings.html page being loaded contains: <div style="text-align: center; border: 1px solid black"> Application Settings: <br> <a href="#" onclick="resetApp()" data-role="button">Reset Application Key</a> </div> The problem is that the button is not getting formatted as per jquery mobile button data-role. If I...

    Parsing XML array using Jquery

    javascript,jquery,xml,jquery-mobile
    I have stuck up with an issue of passing XML using Jquery. I am getting empty array while traversing to jquery.Please help me how to get datas from XML array. I have mentioned my code below. XML <?xml version="1.0" encoding="UTF-8"?> <json> <json> <CustomerName>999GIZA MID INSURANCEAND SERVICES PVT LTD</CustomerName> <mobiLastReceiptDate>null</mobiLastReceiptDate> </json>...

    jquery mobile all the data attribute references does not work

    jquery,html,css,cordova,jquery-mobile
    In my header i included <link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.5.css"> <script type="text/javascript" src="js/jquery-1.11.2.js"></script> <script type="text/javascript" src="js/jquery.mobile-1.4.5.js"></script> and whenever I use for example data-role="page" the expected effect does not acquire. why would that happen? edit: https://jsfiddle.net/f0eurafv/1/ notice the text input in the login form...

    Jquery mobile Deeplinking (sort of)

    jquery,jquery-mobile
    I am using multi-page jquery mobile and need to create a link from one "page" to content on another "page". Am I able to do it straight through <a> or do I need to add additional code? Code : <body> <div style="min-height: 880px;" class="ui-page ui-body-c" data-role="page" id="Welcome" tabindex="0" data-url="Welcome"> <!---...

    Can't Add Up Radio Button Values with jQuery

    javascript,jquery,html5,jquery-mobile,javascript-events
    I'm trying to add up all the values of the radio buttons selected on Submit button press. It sometimes changes the 0 to a 200, but it isn't adding correctly. I'm not quite sure what is going on with this one, since the total amount sometimes changes, but isn't accurate....

    jQuery Mobile, Select not showing selected option until clicked

    javascript,jquery,html,ajax,jquery-mobile
    I'm trying to add <options> to several <select> dinamically via ajax, when I add them directly in the HTML works fine, but when I load them in AJAX they will not show the selected option until the <select> element is clicked. I've tried to .trigger('create') on all elements and even...

    jquery mobile button text switching between two text via click

    javascript,jquery,jquery-mobile
    I have an issue with jquery mobile and a button text switch. The button text should change everytime sie button is clicked. It is working one time only. I click the button, the text and backgound changes, the second time I click it nothing happens. Here ist my code: Button...

    Is there a “New” icon built into jQuery Mobile?

    jquery-mobile
    I want to flag some menu items in my jQuery mobile site as being "New" by adding a flag or icon. Is there anything built in? I don't see any of the standard glyphs or icons that have anything.

    issue with panel data-display push

    jquery,jquery-mobile
    I'm just getting into jQuery Mobile - loving it but now hitting the learning curve. Basically I want a number of pages that call the same panel. I have the following. Most of it works. However every other "push" fails with the panel content disparaging at the end of the...

    Updating a DIV inside a Collapsible in JQuery Mobile only when the Collapsible is opened (eg. load on demand)

    html,jquery-mobile,external,jquery-mobile-collapsible
    I'm trying to execute a call to an external program to create content in a DIV inside a collapsible in JQuery Mobile, to have some code run when a div in a JQM collapsible appears when the collapsible is opened. I'm trying to use the jquery.appear plugin (https://github.com/morr/jquery.appear) as follows:...

    JQM: Correct touch event to use for navigation, that does not fire on finger scrolling

    javascript,jquery,cordova,jquery-mobile,mobile
    I am building a cordova application. I have a page with multiple Navigation buttons on it (16). The nav buttons get wrapped to 2 buttons per line. This causes the page to be scrollable. I have an issue where when I scroll the page with my finger, the button I...

    jQuery mobile panel doesn't close fully only on Android browser

    javascript,android,jquery,html,jquery-mobile
    JSFiddle: http://jsfiddle.net/nbh1rn33/ I have a weird issue with jQm panel. An opened panel doesn't close fully. See below image: Strangely, this only happens on Android browser, and not on PC (Chrome, IE). Is this a bug with jQm or have I done something wrong? <!DOCTYPE html> <html> <head> <meta name="viewport"...

    jQuery mobile - generating html dynamically not working with iframe

    jquery,html,jquery-mobile,iframe,overlay
    First things first here is my js $(document).ready(function(){ $('<a>Launch</a>').attr({'href':'#popupBasic','data-rel':'popup','data-transition':'pop','class':'ui-btn ui-corner-all ui-shadow ui-btn-inline'}).appendTo('body') $("<div></div>").attr({'data-role':'popup', 'id':'popupBasic'}).appendTo('body') $('#popupBasic').html('<iframe src="http://www.example.org"></iframe>') }); Through testing I have narrowed the problem down to the iframe. For whatever reason when I use jQuery to create the...

    Input OnClick is not recognized

    javascript,jquery,html,jquery-mobile,iscroll
    I have this method that is recursively called. This method creates a li that ll be used on Iscroll plugin. My problem is: The input button does not works. On his CSS I set cursor:pointer to check if the input is recognized, and it is. But I can click it...

    Change the width of a SINGLE JQuery Mobile Input field?

    jquery-mobile
    The other two answers on this question propose overriding div.ui-input-text {} However, I have multiple input fields on this page and also within my project. So those answers won't work as they would effect everything on my page or project. How can I modify a single text input? A class...

    Cannot create custom toolbar button that works on mobile

    javascript,jquery,jquery-mobile,mobile,photoswipe
    I have the simple code: <button class="pswp__button" id="CustomButton" style="background:none;" title="Custom" onclick="CustomClicked()"> <img src="~/CustomImage.jpg""> </button> This works as expected on desktop browsers. When I switch to mobile though, I cannot get the event to fire when I tap the button. I've tried attaching every event handler I can think of: tap,...

    jQuery mobile appyling on every web page

    html,jquery-mobile
    I am learning jQuery mobile. I have 3 webpages : Home, About & Contact Us. What i am doing is : <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.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> I just want to apply jQuery mobile features on home page not on other two. I have written this code only on...

    jQuery mobile radio button changed event always fires even if already checked

    jquery,jquery-mobile,event-handling,radio-button,onchange
    I'm using a radio button group containing two radio buttons to dynamically change the content of my page depending on which radio button is checked. The content should be updated, when the selected radio button changes. Therefor i added an event handler to the radio buttons. html: <fieldset data-role="controlgroup" data-type="horizontal"...

    When binding a single click event to multiple buttons, how can I make the clicked button do one thing and all the other buttons do another?

    javascript,jquery,html,css,jquery-mobile
    I've got three buttons within a ui-grid-b <div class="ui-grid-b"> <div class="ui-block-a"><button id="btnOvenA" style="width:100%" value="a">A</button></div> <div class="ui-block-b"><button id="btnOvenB" style="width:100%" value="b">B</button></div> <div class="ui-block-c"><button id="btnOvenC" style="width:100%" value="c">C</button></div> </div> whenever a button is clicked, I want to turn its text red. I want to turn the others text blue. My click event...

    JQuery Mobile content only shown on reload

    javascript,html,jquery-mobile
    I have an index.html containing the following: index.html <html> <head>...</head> <body> <div data-role="page" id="pageone"> <div data-role="header"> <div data-role="navbar"> <ul> <li><a href="#pagetwo" id="pagetwo">Page two</a> </li> <li><a href="#pagethree" id="pagethree">Page three</a> </li> </ul> </div> </div> <div data-role="page" id="pagetwo"> </div> <div data-role="page" id="pagethree"> <div...

    Losing line break when displaying text

    javascript,jquery,html,jquery-mobile
    I can see the line breaks "↵" for a string in Chrome Developer Tools <br>↵↵<br>Event Status: confirmed↵<br>Event Description: Hog Day (Night )and Hog Day (Day)↵↵Friday... If i double click this and paste to Notepad, the line breaks are preserved. When i save the string to an object like so, var...

    Using jQuery to Popup iFrame from URL

    javascript,jquery,html,jquery-mobile,iframe
    I have inherited some code and I am trying to add an enhancement that will open a popup style iframe with the URL. The way the code is laid out is there are different tab-panes within the html window and in the "content" tab it displays information in the #post-body...

    EnhanceWithin() is not working

    jquery,jquery-mobile
    am trying to populate a list view via ajax and jquery. after i have populated the data. the enhancement doesnt show. this is what i did. Fiddle Result var poss_ans = "6,4,8,2"; var possibleAnswers = poss_ans.split(","); //poss_ans is string containing all the answer from the database $(document).on("pagecreate", "#page1", function ()...

    JQuery Mobile - Custom listview height changes on click

    css,jquery-mobile
    I have a JQuery Mobile listview with a custom item height (50px). Whenever the item is clicked, its height changes. How can I fixate the custom height? Fiddle: http://jsfiddle.net/3gnvhxth/6/ I am using JQuery Mobile v1.45 and JQuery 1.11.1. Before click: After click: HTML: <ul data-role="listview" data-inset="true"> <li class="custom_item"> <a class="custom_link"...

    Use different library instead of jQuery Mobile for