• navbar button highlighted

    So I have the following navbar code: <div data-role="navbar">       <ul data-inset="true">             <li><a class="ui-btn-active ui-state-persist ui-btn-corner-tl">a</a></li>             <li><a>b</a></li>             <li><a class="ui-btn-corner-tr">c</a></li>       </ul> </div>This navbar is on a page inside a document with multiple pages.  So when I browse to the page with the navbar above on it, and click on the c tab for example, then press the back button, and enter this page again, the a and
  • <Div> scrolling event is not firing in IE 7 , IE 8 but it is working fine in IE9.

    Hi  I have div with ID ="mainListDiv". I need to run some code on client side in scrolling event of this div but scrolling event is firing only on IE 9 but not on IE 7 and IE8. Please help me to solve this problem. NOTE: .read() of div is working fine on all IE versions. Below is my code:- $('[id$=mainListDiv]').ready(function () {                     $('[id$=mainListDiv]').scroll(function () {                         //some code                         }                     });                 });
  • text box minimum value 1

    Hello; How can I force the minimum value of this text box to 0 ( or 1)? So when the user clicks on - (decrease sign), it doesn't go to negative value. "Nights" text box in the search filter bar. Thank you
  • Jquery multipage with django

    Hi, Using django with jquery populating links like. <a href="#popupItem{{ item|key:'ITEMNUM' }}" data-transition="pop"> and populating pages using. <div data-role="page" id="popupItem{{ item|key:'ITEMNUM' }}"> I cant get this multi pages working for me. Everything seems to be fine, produced links is looking like. /sale/detail/02_O1_00000036#popupItem10 and appropriate pages are created. if I copy and paste the source html into a seperate html file, it works fine. But then, produced links differs
  • Slideup Box with moving text

    Hey everyone, i started a couble of days ago using jQuery and I am actualy totaly impressed of what it can do :) At the moment i am look for a function that can do something like that I actualy know how to realize the slideshow itself, but dunno a function, that can open the boxes like displayed in the screenshot. :/ The text that is displayed left beside the arrows shoud slide up after clicking on that arrow field, get fat and some other content should apear in the now available free space. I would
  • JQuery Mobile Selected List Item

    How do I go about creating a listview with a selectable item as shown in this screen shot: http://awesomescreenshot.com/07di8jff8 Say I am starting with the following listview definition, what attribute am I missing to make it look and operate as what's highlighted in the screenshot?  I tried a combination of attributes in the online doc, but without much luck.  Any help is much appreciated. <ul data-role="listview" data-theme="d">     <li><a href="a.html">Option A</a></li>     <li><a href="b.html">Option
  • How to show loading with overlay

    I want to do some ajax stuff, and use $.mobile.showPageLoadingMsg when processing, how to show loading with overlay, I don't want to let user click the document when ajax happened.
  • Double Tap causes selected button state

    running within phonegap, whenever a button/listview item is double tapped the element sets its selected state. any ideas?   regards, Chris
  • Popup Question

    This is apropriate for this forum actually. Hi, popup is simple is to use. <a href="#popupBasic" data-rel="popup">Open Popup</a> <div data-role="popup" id="popupBasic"> <p>This is a completely basic popup, no options set.<p> </div> What if u have a list view and many record in there. imagine u have like. sale/01_000001_10 sale/01_000002_20 sale/01_000002_30 links like this and when one of them cliked u want to call a link looking like this. sale/01_000001_10/confirm sale/01_000002_20/confirm sale/01_000002_30/confirm
  • $.mobile.changePage = function( toPage, options ) { }) missing releasePageTransitionLock() at the end

    Hello guys, shouldn't there be also a  releasePageTransitionLock(); at the end of the function  $.mobile.changePage.  according to what I have tested here: http://stackoverflow.com/questions/12796742/mobile-changepage-not-working-with-phonegap-android-emulator there is missing or the variable isPageTransitioning could never get the false value.
  • Validation plug-in: How to customize a minimum check of multiple inputs

    I have a form where there can be 1 or many inputs (of the class ".amount-input") that all have to meet a minimum value.  Depending on another input, the minimum might be zero (0) or it might be one (1).   Plus, I'm using a numeric mask plug-in on my text boxes, so the numbers might have commas in them.  This is why the built-in "min" validation won't work, because the comma is seen as invalid.  Oddly enough, the "number" validation works fine if there's a comma.  So, I'm trying to create a custom
  • .promise() violates documented behaviour

    Due to the documentation of .promise() the created Deferred object will resolve when all actions bound to the collection have ended. jQuery's implementation does not behave like that!   (version 1.6 up to 1.8.2) The documentation still leaves space for two possible interpretations. Both are violated. Interpretation #1:  For multiple elements the .promise() object resolves once all elements are not being animated at the same time. The minimal counter example for that meaning is: $('#foo').fadeOut(100);
  • Memory Leak on jQuery's attachEvent

    I originally posted the problem below as a question, so I am recreating it as a problem: https://forum.jquery.com/topic/memory-leak-on-jquery-s-attachevent Hi all and thanks for taking the time to read this. I've been struggling for a long time now to try solve what I believe it's a bug on jQuery library. First, the memory leak I've identified is only applicable to IE and I tested on IE 7 only. I used IEJSLeaksDetector to identify the leak point and it points me to this portion of jQuery js file:
  • Linking multiple classes or ids to a single listener

    Hey guys, I was wondering if there was a way to link multiple classes to a single listener. Let me give a pseudo code example : $('.star1 .star2 .star3 .star4 .star5').mouseover(function (){              //do stuff }); something like that, or this $('.star1').$('.star2').$('.star3').$('.star4').$('.star5').mouseover(function (){             //do stuff }); I hope you understand what I mean. Thanks for the help in advance!
  • Update button appearance

    I'm creating a website using .net and use the built in ajax features. I have a label that holds a total for a list of bookmarks. When an add/remove bookmark event is triggered on the page the total is incremented/decremented automatically. What I'd like to do however is highlight the button for a period (or even make it flash) after an event is triggered so that its a little more obvious. At the most basic, change the colour for n secs then return back to original colour. I'm struggling to think
  • Querying JSON data

    Hi,  Is it possible to query JSON data using jquery selectors or is there any third party libraries/plugins to query JSON data. Linq kind of syntax or jquery selector syntax is fine. Truly appreciate your help. Thanks in advance. Ram
  • jPlayer not work on mobile

    plugin page: http://www.jplayer.org/demo page: http://goo.gl/lHPy3 Totally wok on desktop's browser, Chrome, Firefox, Safari, but not work on mobile's browser, neither Android chrome or iOS safari, anything wrong with the code?
  • jquery is not functioning

    im using jquery to hide certain column(DDC Correction/ radiobutton) based on the radio button(DDC Status) chosen from another column. when i include the query to hide the column (("input[@name=DDC Correction']").hide();) its not working although ive tried so many kind of ways. im using alert to try if theres something wrong with the query. any ideas? suggestions?
  • Why taphold does not have pageX, pageY and other coords?

    I've tried versions 1.2.0, 1.1.1, 1.0.1 on android 4.1 native browser and chrome. Do i miss something or that taphold event is not implemented yet?
  • My Solution for transition flicker and blink on iPad

    Hi guys, I searched for a solution to fix the blink or flick the page after a transition. I found a code that fix the problem but at the same time broke my layout. My intention is give more option to fix this problem. Fix on css that not worked for me. #container {     position: absolute;     width: 100%;     height: 100%; } Actually this fix should be work but my webview has a column on left so, the width can't be 100% and the orientation change broke too. So I did this fix using the Page Events.
  • Dollar sign troubling me

    Following code was provided to me @http://jsfiddle.net/rUbwq/2/ $(window).scroll(function(){     if(this.pageYOffset + $(this).height() > $(document).height() - 200){         $('div').css('background', 'red'); //do popup     } });​ in response to my question of triggering a popup when scroller reached particular height... Problem is this part: this.pageYOffset + $(this).height() why used $ in the 2nd this but not the first?
  • Fade in and out in a loop

    Hi all I hope its simple enough, I have looked around and can't find exactly what I am after.  I have a collection of hot spots (divs) on my web page and I need them to fade in and out when viewing the page so they look like they are pulsing so to speak.  When you hover the cursor over one, the pulsing stops for that hotspot only. Could someone provide some simple example code to help get me started? Thanks
  • $.mobile.changePage not working with phonegap android emulator

    Hello, I've posted the following http://stackoverflow.com/questions/12796742/mobile-changepage-not-working-with-phonegap-android-emulator. I'm not sure if my fix is a possible solution or not. ps: Should I copy all the content here?
  • How can I validate two fields together using jquery inline validation?

    I have 3 fields (first, middle, last) names.  I would like to validate the first and last name, requiring them, and checking for characters.  I don't want to validate them individually.  Any ideas?
  • growing line

    Hi! I have to create a line (border of a div) that at the opening of the html page grows from left to right. Any tips? Thanks!
  • Theme

    themes not working ie but working in all remaining  browsers. 
  • Don't want the images to stop rotating on mouseover - John Resig code

    I found a great code by John Resig and used it, but found an issue with it where by when the mouse cursor hovers over the rotating image, the rotation stops (which I don't want). The test page I am using is http://www.rbwebsites.co.uk/templates/arcol4/partners.html It is 4 images that rotate but as you will see, hovering over the images stop them, and removing the cursor starts them again. I have also noticed an icon appear towards the left of the images when I hover, this icon is in the CSS code
  • Firefox contenteditable with on focus Bug!

    Hello everyone,  Im developing something with jquery, I have a dynamic html table using the content editable class with an on focus event. It works perfectly in Chrome and IE ( lol ), but in firefox there seems to be a major bug.  When I Copy/Paste smth (w Firefox) in a dynamically created span the whole span is duplicated and the table expands abnormally. Maybe someone came across the same issue.  Any help would be much appreciated.  Greeting, GD
  • swipe become slower when number of <li> in listview increased

    Hello, I created a carousel with swipe.js , it works fine in iOS4 and iOS5. But in iOS6, without acceleration of hardware, when we swipe, there is a lag that can not be accepted.  In html code, we have a carousel list and a normal listview, it seems if there are more elements in the listview, the carousel swipe will be slower. and they are two elements independent. Here is html code <div id='slider' class='swipe' style='width:250px'>   <ul>     <li style='display:block'><div>1</div></li>     <li
  • Validate a hidden field for a specific word

    I'm trying to validate a hidden text field for a specific word using equalTo, but it seems to be validating false. What's the right way to do this? It works If i use two hidden fields and pass the value of one to another, but it wont work if I use only a word. I've already set ignore: [], in the plugin Can you please help me? <input type="hidden" name="aImg" value="true" class="aImg"> $("#artcForm").validate({         rules: {             aImg: {                   required: true,                
  • Simple Animation then show menu

    I would like to know how to scroll an image into the middle of the screen, pause (x seconsds) then slide out and another image appears in the top left corner and a navigation menu down the left side.   When a navigation link is clicked from the menu, can I get the content a) to be displayed in another container on the right side of the screen (with scrollbars) b) or in another window. c) the link itself be underlined to indication which option is currently selected.   Thanks Darryl
  • dynamic jquery radio buttons using.html() not rendering.

    I am trying to make some dynamic jquery mobile radio buttons by rewriting a div's html. My app retrieves data every few days into a txt file that is stored on the phone. Is uses this text information to rewrite the number of radio buttons that are choices for props to use in the game. The code written by the function below works fine when the output is pasted in manually and the page is restarted, but when I run the function from the click in the first radio button it renders as standard html with
  • Header toolbar partially hidden by iphone status bar

    My app's header toolbar is partially hidden under the phone's status bar (see attachment). It might have started acting this way since we upgraded to 1.2. Anyone else experiencing a similar problem?
  • .exitIntercept()

    I'd like to submit my very simple solution/replacement for the deprecated .beforeunload() utility. jQuery.exitIntercept = function(e,msg) { var message = jQuery.trim(msg); e = e || window.event; if (e) { e.returnValue = message; } return message; } This small utility is IE/FF/Chrome/Safari safe. Thanks Usage: window.onbeforeunload = $.exitIntercept("You are attempting to leave this page with unsaved changes! If you leave this page without saving your changes, they will be lost!");
  • Overlay

    I'm trying to somewhat replicate the effect on http://www.cla-ude.net/  Please visit jquery.ramiyahya.com to see what I've got so far... The effect that I'm after is when a user hovers over a thumbnail, the black box disappears. On click, the thumbnail enlarges and the black box disappears.  So far, I've managed to achieve to a certain extent... only problem I'm facing is that onClick the overlay disappears from all the thumbnails and not just the one that has been clicked. If anyone could look at
  • JQM 1.2 - Min Height Improperly Set?

    iOS Simulator (iPhone 4S) iOS 6 JQM 1.2 Using the "getting started" boiler plate code below, min height for the data-role="page" is being set to 416px, which leaves a small 4px gap at the bottom.   Does anyone have an idea why this is happening?  How to fix it?  <!DOCTYPE html> <html> <head> <title>My Page</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
  • Tooltip in a popup

    Hi, Iam using tree view and i have assigned tool tip value in my code and the tool tip is very lengthy  for some nodes.i want to show them pop up.can any one send the code  to show the tool tip in pop up. note:my tooltip may contain images too.how to show tat ?please help me in jquery to show the tool tip in that  page in pop up which may contain more lines
  • jCarousel buttons not showing

    I'm sure this a simple fix but I just can't get the buttons to show. If it helps the plugin images are just in my images folder. Maybe the images should be in their own folder? I don't know any ideas?
  • Inline validation for special characters onchange()

    I am using jQuery inline validation (https://github.com/posabsolute/jQuery-Validation-Engine) and it's awesome.  I would like to have it validate after each character (onchange) for special characters.  If one is typed, erase it, and pop up the validation message box.  I haven't found anything searching.  Has anyone already created this?
  • Need Suggestions - PhoneGap & Remote Data - iOS

    Hello all, I am creating a native iPhone app with jQuery Mobile and PhoneGap, most of the pages are static and will rarely be updated. When they are will be done so in an app update.  However some pages need to pull remote data from my website which uses wordpress. This data is a simple table of price comparisons of products (for now). Current setup:  App connects to a particular page using JSON. Pulls HTML content (which is a table) from a custom_field called 'NativeContent'. Displays in the app
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of