• Help regarding an unknown version of jquery mobile

    Hello, I am new to Jquery Mobile and have just started working on a project which was built by someone else. That developer included following Jquery Mobile JS file: http://jquerymobile.com/branches/tables/js Can someone point me to a minified, production version of this file? I've tried all jquery mobile versions in place of above file but it breaks everything. Application only works if above mentioned file is included. Any help will be highly appreciated. Nasir
  • Java-scipt function does not get fired in IE 7 and above versions

    Hi, when clicked on below image the ClosePopup function is called. $('#' + popID).fadeIn().css({ 'width': Number(popWidth) }).prepend('<div style="float: right; margin-top: -40px; margin-left: 0px; margin-right: -42px;"><img onclick="return ClosePopup();" src="../../Images/glyphicons_197_remove.png" alt="close" title="close" style="cursor:pointer" class="img_btn_close" /></div>'); It works fine for first three times but does not get fired for the fourth and consicutive times in IE 7 and above versions.
  • Jquery tree-view plugin works inconsistently in IE 7 and above

    Hi, We have used C# and MVC 2.0 to populate a treview control using the following: 1.jquery.tree.checkbox.js, a plugin which loads the nodes of the tree-view. the above tree-view control works fine in Firefox,Chrome but works inconsistently in IE 7 and above versions. we have used two trees. One is to list un-assigned entities and another one for assigned ones. We are performing the assignment and un-assignment using two HTML buttons. Code Sample: 1.jquery plugin code: <script> (function ($) {    
  • Cookie value changes to much older value on read

    For primary navigation on site: http://dangelmayer.com/index_new.php, when clicking into a sub-page from the primary navigation, I want only the selected main category to persist in red until user clicks into a different main category, then that different main category only turns red. To accomplish this, I am using jQuery click function and setting and reading cookies to change my CSS.  The cookie plugin I am using can be found here: http://dangelmayer.com/js/jquery.cookie.js <script>          $(document).ready(function()
  • JQM streaming youtube - can listen to audio but video not streaming

    Hi this is my body for the page. <div data-role="content" >                <div  align="left">                              <h3>  Video</h3>            <iframe width="300" height="300" src="http://www.youtube.com/embed/dR8lt_NkfDI?rel=0"                frameborder="0" allowfullscreen></iframe>                     </div> But I can only listen to the audio and no video is being shown. Anyway i can fix this?
  • DatePicker double update not working ... (noob)

    Hi,   Bit of a noob at this, fumbling along best as I can ...   This bit of code is working fine ...   <script>   $(document).ready(function(){   $(function() {    $( "#datepicker" ).datepicker();    });   $( "#datepicker" ).change(function() {    $( "#datepicker" ).datepicker("option", "dateFormat", "DD, d MM, yy");     });    }); </script> ...   <td class='xx_tdc'><input type='text' id='datepicker' size='30' /></td>   But when I try to add this in it only completes the first step (format the date)
  • further reduction of the overall top and left margin

    how could default top and left margin be decreased? something like this works on a plain example, but does not seem to work on my app. I will give it more thought and get back.         <body id="test"> <div >Test</div> </body> <script> $('#test').animate({marginLeft: '-=15px'}, 0); </script>
  • DatePicker altField isn't an INPUT

    Hello, Currently, datePicker() is designed to populate only INPUT form fields (main field and altField). I want to send the date in an ISO format through a form field and display it in a human readable format (but not send it in this format). So I want to use another markup pair as altField. I think I can do it : In the function _updateAlternate: function(inst) {I shoud replace $(altField).each(function() { $(this).val(dateStr); });by $(altField).each(function() {   if($(this).prop('nodeName')=='INPUT')
  • jQuery not working after postback

    Could someone please help:      I am very new to jQuery and I have come upon my first problem using the language.  I have a page that contains an asp.net checkbox and Panel, the panel contains a textbox that I use with the datepicker widget.   The datepicker is awesome but I need to toggle the display of the Panel depending on the state of the checkbox. I came across a jQuery function that works great to accomplish this requirement but after postback the function no longer works.  Note:  all my controls
  • Accordion and subcategories

    I have the following php code: class Categories {     var $exclude;     var $depth;       function __construct() {         $this->exclude = array();         $this->depth = 1;     }       function get_menu()     {         $nav_query = mysql_query("SELECT * FROM categories WHERE parentid='0' ORDER BY order_by ASC") or die( mysql_error() );           $tree = "";                  // Clear the directory tree         $this->depth = 1;                    // Child level depth.         $top_level_on = 1;         
  • Licensing on JQuery Multisortable Plugin

    I saw the multisortable JQuery plugin in the plugins page and an associated github project, but I don't see any licensing information available on it. Does anyone know if this can be used/distributed and what license it requires? Regards, Scott
  • Aligning table columns

    I have a page with multiple tables in one zone. The issue is that each table has multiple columns but they are not aligned properly one below the other.  I tried the following code but it did not work. $("#rightDiv table tbody tr:nth-child(2) td:nth-child(2) table[name=Name]").css("width","300px"); $("#rightDiv table tbody tr:nth-child(2) td:nth-child(2) table[name=Modified]").css("width","300px"); The tables that I want to target are inside a div id 'righDiv' with the following structure. <div id="rightDiv">
  • Traverse XML and populate UL

    I have been given two XML documents that I need to be able to traverse and then populate an UL.  The XML example is at the bottom.  I just need to pull the latest 5 items and then use the title and link to populate my UL.  I would appreciate any help. <rss> <channel> <item> <title></title> <link></link> <pubDate></pubDate> <guid></guid> <dc:date></dc:date> </item> <item> <title></title> <link></link> <pubDate></pubDate> <guid></guid> <dc:date></dc:date> </item> </channel> </rss>
  • Stuck, is it possible to take a value from an ajax call in one .js file and use it another .js file?

    In other words I want to take the value from a variable within an ajax call in one .js file and make it keep it's same value to be used in a different .js file? Still learning jquery and javascript after having learned java. To me this seems like it would be so easy yet is impossible to implement, for me at least :-( I have a main.js file that uses a global variable citId (I know globals are bad but I don't know a good way around using it and I can't get it to work anyway) var citId = ""; $(document).ready(function($)
  • Ajax not returning data after post call

    I know there are tons of these questions out there but everything I try seems to fail. Im just sending a simple ajax call and expecting to get something back. Instead the call succeeds but I get no data back. Ideas why? the javascript: jQuery(document).ready(function() { if(jQuery('#statesel').length) { var dataString; dataString = "nonce=" + dynoselect.post_dyno_select_nonce + "&tbl=state"; jQuery.ajax({ type: "POST", url: dynoselect.ajaxurl, dataType: "json", data: dataString, success: function(result)
  • How to reference original bound element in plugin callback?

    I have plugin that simply opens a modal box and allows users to select a value form a picklist. The plugin attaches an event listen to open the select/modal box. This selected value will then be returned to a callback function. In this call back I would also like to reference the actual element the plugin was bound to but I am not sure how to do this. In the code see this section: "//************How do I " This is one of my first plugins so if there is a better way to do this please let me know. 
  • difference between $.mobile.window and $(window) ?

    Hi there, maybe a stupid question, is this documented anywhere ? Didn't find anything yet, but everybody is using it - so I guess there must be something ! 8o)
  • What is this line of javascript for?

    <script type="text/javascript">     window.___gcfg = {             lang: 'en-US'           };   </script>
  • Plugin - Google Chrome: css("zIndex") not being set

    Hello, I am a big fan of jQuery, and this is my first post EVER, so big cheers for me. I have developed lots of plugins, but I noticed that on my latest one, there is a problem with the animation in starting/stopping in Google Chrome (and I suspect other webkit too). The plugin is of a menu type, and the animation is of one element sliding out from underneath it's previous sibling, to achieve this I first set the element to the position of it's previous sibling, set zIndex to -1 of previous, and
  • Dialog + buttons + modal + postback

    Hi all, I'm trying to put JQuery Dialog into my ASP.Net application. The problem I'm getting is that when the user clicks on the "I Agree" button I want to do some server side work and then go back to the same page with a confirmation. So the way I thought about doing it was creating a asp.net button, set to display:none and I would call this from the dialog buttons. Unfortunately I can't call ASP.Net controls from the dialog until I assign the dialog to the form:        $dialog.parent().appendTo(jQuery("form:first");
  • UI-Spinner

    Hi Everybody Does somebody know, how to prevent the spinner-widget from editing. Spinning should stay enabled, but it sould be impossible to click the textbox and enter an value. Is there a simple way to realize that? Best regards peppich01
  • Modifying row toggle code to work with specific cells only

    Hi there, I found this code and have currently incorporated it into my site and although its working fine, I'd like to modify it but don't know how! I use it by constructing a html table that looks like: <table class=detail> <tr class=parent> <td>1</td> <td>2</td> <td>3</td> <tr class=child> <td>blah</td>blah<td>blah</td><td>blah</td> Now if I click on any part of the parent row the child row expands. However what I'd like it to do is to only expand if I click on cells 1 and 2. Any idea how I should
  • jQuery: Changing CSS when <li> is active

    I'm using the jQuery Cycle plugin to page some images in a gallery, and I'd like to have the color from part of the page items to change when that item is active. HTML: <div style="background-color:#000000; height:480px; width:285px; float:left;"> <ul id="nav"> <li> <a class="red" href="#"> <span class="red">Sports</span><br> Get your sports here. </a> </li> <li> <a class="red" href="#"> <span class="red">Topics</span><br> Topics here. </a> </li> <li> <a class="red" href="#"> <span class="red">News</span><br>
  • Sortable Connected Lists MySQL Update Problem

    Hey everyone, to start off I'm very new to all of this and I've been attempting to teach myself coding for a couple weeks to design a web based app for a project at an internship. I've created a sortable list that exports the positions of each item to a database so upon refresh, they don't change.  I ultimately want to have 2 lists that update a database and keep the positions of each item on the lists, but I haven't gotten there yet. I am currently having trouble with my connecting lists and I think
  • Comment Error in jquery.themepunsh.revolution.js

    In Line 1885 of file  jquery.themepunsh.revolution.js you will see a single SLASH!!! This Slash (Error) is responsable for upcoming errors in using JQuery according to JS-Compressors. These compressors are parsing the js-file and they won't read lines after 1885, perhaps the compressors can't handle single slashes!!! It seems to be an incomplete insertion.... PLEASE fix the ERROR and all JQuery-Users are very happy
  • Sortable list: How do I save my new list order to mySQL db?

    So I can re-sort a list OK, but because I have only scratched the surface on jQuery/AJAX/mySQL - I could use some advice/help on storing my re-sorted list back to my db table. 1. I pull a list of elements from the database table initially. The table has a column for "listorder", numbered 0 - x" 2. using jQuery.ui sortable, I rearrange the list elements on the page now I want to store the new order of elements in the database via a SQL UPDATE statement. Is this the right method? If so, what jQuery
  • Parallax using jQuery in my web page

    I need to ask question.  I am sure it is easy once I figured it out or someone on here points me in the right direction.    What I am trying to do is keep the header fixed and the parallax image at a default state is as it appears when you first view the page. But here is the kicker....I need the parallax image to move behind the header as you scroll down the page and then the default of the page needs to be with the image showing.    I hope I have not confused anyone if you need to ask me a question
  • pass the value between two table

    im develop a transaction function here. but im having trouble with jquery . as you can see below, there are two tables. which is the first one is for display the item and the second table is for purchasing. what i want to do is, the row for item in first table is clickable. as the row is click, the item that have been choose come out in the second table. and at the second table cell for discount can be editable and the total price is changing by the discount. is anyone can help me how to pass the
  • Main differences between jQuery 1.5.1 and 1.6

    Hi everyone. I am on a tight schedule and need some assistance. I currently use jquery 1.5.1 and have had no issues until recently when IE10 was released. All of my custom built widgets work correctly in all browsers, except for a few in IE10. If I upgrade to v1.6 to test then my problems seem to go away, so my question is what are the major/main differences between v1.5.1 and 1.6 and how would it affect only IE10? I have looked at the changelog but I can't seem to figure it out as my js/jquery knowledge
  • parseJSON in 1.9.0 is different from earlier versions

    I have a situation which I'm unsure is a bug or not. All this is done in Chrome Version 25.0.1364.29 beta-m, and results in other browsers or versions have not been tested. In the latest version (1.9.0) of jQuery the parseJSON function has been changed from the previous version (1.8.3). jquery.validate.unobtrusive.js (latest version (2.0.20710.0) included in the latest ASP.NET MVC package) utilizes this function, in some cases it makes a call that is basically broken down to this: $.parseJSON(undefined)
  • JQuery UI tabs notgetting selected

    Hi, I'm trying to add a new tab dynamically to the JQuery-UI tab. The problem is that the newly created tab is not getting selected automatically. I want the newly added tab to be selected automatically. How to fix the problem? This is my code: $(document).ready(function(){         var tabs = $("#container-1").tabs();     $('#add_tab').click( function(){             var ul = tabs.find( "ul" );             $( "<li><a href='#newtab'>New Tab</a></li>" ).appendTo( ul );             $( "<div id='newtab'>Name
  • tap and bubbling/propagation

    see this sample in android 2.x browser..its a sample to replicate a scenario in my application.. http://johnchacko.net/samples/tap.html its abt listening to 'tap' and calling changePage from listener... the second page is having some input fields, 'tap' event is bubbling/propagating to second page and focus is randomly set to input fields... I read similar issues and want to know anybody experienced same issue and got a workaround for it.... Or I must use only  'click' ?
  • listview - data-filter in a white box?

    Hi there, I'm using jQuery mobile 1.2 in my project. I've got the following question: What can I do to remove the white box surrounding the data-filter element? It should show the background instead of the white box. This is how it looks like: And this is my code (snippet): <div data-role="content">       <ul data-role="listview" id="listAllItems" data-filter="true" data-filter-theme="c" data-divider-theme="a" data-inset="true">            <li data-role='list-divider' data-role='heading'>Bisherige
  • Order of operations

    Hello: I'm having a problem with order of operations, and hoping someone here can help. The routine in question, deletes members from a group, and then displays the new group membership without deleted members. The routine uses two different files, because the select query used for displaying group members is called in other routines within the application. It only makes sense to use the same SELECT statement in the same file (easier maintenance). Following is the snippet of code in question: //========================
  • random white screen after page change with 1.3 beta

    our app is moderately complicated using backbone, underscore, jquery mobile, iscroll and other plug ins. recently we moved to jqm 1.3 beta 1 in order to support panels.  Since then we have had a lot of issues with transitions between pages not completing - the result being a white screen. It appears that the page has rendered correctly but that the display style on the page is set to none.  disabling this in firebug or similar shows the correct contents of the page. We've reverted to 1.2 to attempt
  • how to create slide show using jquery

    how to create slide show using jquery
  • .wrap not working for select elements

    I've been banging my head against the wall trying to get (what I thought should be simple) issue resolved. I have an HTML select element inside of a form which I need to wrap with two divs. When I attempt to call the .wrap function nothing occurs. I've tried a multitude of ways and searched Google but I can not seem to get this figured out. Below is a fiddle that has a few of the later ways I have attempted. http://jsfiddle.net/shx5s/
  • Expand a collapsible from the URL?

    Is it possible to expand a collapsible from the URL? Like this: <div data-role="collapsible" data-collapsed="true" id="show_data"> </div> .../mysite#show_data
  • Ajax driven Tables in 1.3 beta

    I'm enjoying playing with the 1.3 beta - nice work to the dev team :) I'm wondering if there are any plans to support ajax driven row content for tables? I tried a few quick experiments to add rows dynamically but I couldn't find any documentation for a 'create' or 'refresh' method to re-style rows after insert. Thx,
  • How do I show an 'openDialog' box to retrieve a path ???

    Hi, When my user cIick the button, I need to show an 'openDialog' box to retrieve a path. Is there possible? How?
  • 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