• Multiple links to $().dialog

    Hi I'm new to jquery and I'd like some guidance please. I have a web page which has some dynamic elements displayed from a database table.  The number of elements can vary depending on the contents of the table. Each element has a link to bring up a dialog with 3 options. eg: <DIV id="1">content<link to dialog></DIV> <DIV id="2">content<link to dialog></DIV> ... <DIV id="n">content<link to dialog></DIV> Each link calls the same dialog, with the same options, but the option selected only applies to
  • Tooltip breaks when adding bind event

    Tooltip stops working in IE/Opera when you add another bind event to the element. I am including an example - http://exodus.quadspeedi.net/~rhutchison/tooltip/example.html Tested in Chrome/Firefox (works fine).  IE/Opera fail.
  • Show Slide help for newbie

    Hi All, I am trying to get floorplans that are initially set to display:none to reveal with a slide down using the slide ui of jquery. Here's the jquery: <script type="text/javascript" src="assets/jquery-1.5.min.js"></script> <script type="text/javascript" src="assets/jquery-ui-1.8.9.custom.min.js"></script> <script type="text/javascript"> $(function($){   $('#groundreveal').click(function(){     $('#secondwrap').hide();     $('#groundwrap').show("slide", { direction: "down" }, 600);     return false;
  • Counting and adding table rows.

    Hello... Is it possible for jQuery to count the number of rows in a table and then add some more if there is less than a defined amount? So that this table with less than 10 rows..... <table class="testTable">       <tr>             <td>Foo...</td><td>Foo...</td><td>Foo...</td>       </tr> </table> Becomes this... <table class="testTable">       <tr>             <td>Foo...</td><td>Foo...</td><td>Foo...</td>       </tr>       <!--added by jQuery -->       <tr>             <td>...bar</td><td>...bar</td><td>...bar</td>
  • Unable to get taphold to fire on Android 2.2

    I am unable to get the taphold event to fire on an Android 2.2 device. I am binding it in the same way as the swipeleft and swipright events on the same page and they fire without issue.             $('body').bind('taphold', function (e) {       navigator.notification.alert( 'You tapped and held!' ); //e.stopImmediatePropagation();     return false;  } );               $('body').bind('swipeleft', function (e) {                 // navigator.notification.alert('You swiped left!');                 $('#calendar').fullCalendar('next');
  • find tab index

    is it possible to find the index of a tab based on the value of its label? if so, could anyone post an example please?
  • Add / Change / Delete Records Style Interface

    I would like to make an interface that lets the user add, change and delete records in a database. My idea is to show a data grid of the current records, and next to each record have a "Change" and "Delete" button.  At the bottom of the datagrid would be a form containing empty text boxes that can be used to add a new record. I figure that if I make everything work via AJAX then it would make the interface very much like a typical Windows application, with no page refreshing needed.  The user would
  • jQuery cycle images show on second load.

    Hi, I'm currently using jQuery Cycle slideshow to preview images on my site. However, recently some pages require to be loaded a second time - or the link clicked twice - before the slideshow or images will show. For example; http://ianep.co.uk/kred It happens on most pages off the 'Work' page or image thumbnails, bar a couple. I don't have a knowledge of Java to know what to change, and as far as I remember, haven't changed anything. The HTML for the image links that work and don't work are the
  • When using the queue setting in jQuery.animate, are callbacks disabled?

    I am having a problem getting my callbacks to fire when I use the queue option and wondered if this was normal. $("#someid").animate(cssopts, {duration:3000, queue:false},"easeOutExpo",function () {alert ("hello");}); does not callback, however this does: $("#someid").animate(cssopts,3000,"easeOutExpo",function () {alert ("hello");}); What am I doing wrong? Thanks in advance for your help. Jase
  • Firefox Mobile problem

    I'm testing my app with Firefox Mobile on android 2.2. The links created with text formated listview does not work. It reacts to click like highlights and stuff, but does not trigger the click event attached to it. It works on the native android browser and opera as well as iphone. When I bring up jquery mobile doc and demo site under Firefox Mobile, it blows up after navigating a couple of pages. So I'm sure it's not just my app.
  • More button icons: question mark, email, phone...

    Please add a question mark icon for buttons. It'll go nicely with Help button which is very popular in web apps. And since this is for mobile web apps, it would be nice to have email and phone icons for links like tel: and mailto: button links.   Thx G
  • Malsup Media plugin: add a skin?

    Is it possible to add a skin to the media plugin? I am using it primarily for audio, and downloaded the most recent version of the JW player.  I tried to add a parameter to the function, but it does not appear to work.  I suspect that it is not outputing the parameter the way the newer player requires, but I am not sure.  It seems that skins must be added as a part of the 'flashvars' element, which in the media plugin outputs only the media file.  The embed code does not output parameters, but adds
  • What is the expected behavior of ifModified:true ?? v1.5

    This sounds simple (just try it, right?) but this is becoming rather confusing because there is no documentation explaining how ifModified is designed to work.  Also, I've seen postings on various sites saying that the ifModified is broken, blah, blah, yet a lot of them seem to be due to a misunderstanding of how it is supposed to work. For several days a couple of weeks ago I was able to use ifModified:true and it would convert the 304 response code to a 200 and it would respond with data from the
  • Charset problem

    im having a problem with the charset, when i set the page to UTF-8 the table head and foot accent marks become strange chars but if i set to ISO-8859-1 the text inside the table and on other field become this strange chars.. screenshots UTF-8 http://img262.imageshack.us/img262/9178/utf8.jpg ISO-8859-1 http://img705.imageshack.us/img705/4682/iso88591.jpg I use .post to run a php page that inserts the values to a sqlite file. Im building the table using php echos and datatables.  Does the post method
  • loop through JSON with .getJSON and $.each

    Hi jQuery folks First question - how you debug in Jquery, i am getting crazy because firebug doesn't give me a response on code lines... I am trying to get the latitude and longitude from a json structure which i got over this google maps geoencode api (v3) - 2 addresses -> it looks like this.... [{"status":"OK","results":[{"types":["street_address"],"formatted_address":"Moserhofgasse 36, 8010 Graz, Austria","address_components":[{"long_name":"36","short_name":"36","types":["street_number"]},{"long_name":"Moserhofgasse","short_name":"Moserhofgasse","types":["route"]},{"long_name":"Jakomini","short_name":"Jakomini","types":["sublocality","political"]},{"long_name":"Graz","short_name":"Graz","types":["locality","political"]},{"long_name":"Graz","short_name":"Graz","types":["administrative_area_level_2","political"]},{"long_name":"Steiermark","short_name":"Stmk.","types":["administrative_area_level_1","political"]},{"long_name":"Austria","short_name":"AT","types":["country","political"]},{"long_name":"8010","short_name":"8010","types":["postal_code"]}],"geometry":{"location":{"lat":47.0609404,"lng":15.4545919},"location_type":"ROOFTOP","viewport":{"southwest":{"lat":47.0577928,"lng":15.4514443},"northeast":{"lat":47.064088,"lng":15.4577395}}}}]},{"status":"OK","results":[{"types":["locality","political"],"formatted_address":"Hermosa,
  • DOM weirdness after a jquery.load() help!

    I'm convinced i never had this problem < 1.4 jquery, but i've tried 1.4, 1.4.1 and 1.5 too. I have an area of my page that i load new html content in. i have an input field that has an autocomplete bound to it.  I'm aware that if i load html content then the event bindings do not work as the elements being loaded have not been bound, they need to be rebound to the elements. I'm aware of 'live' as well but in this case i'm using an instance of autocomplete which internally binds to the keyup events.
  • Selecting Javascript array elements?

    Sure that I'm doing something really dumb.  But I'm trying to add the text of a textarea form to the string that's contained at: myarray[a][b][c] It was easy to pull out the value of the textarea with this: textinput = $('#mytextarea').val(); But then when I try to add the variable into the array, it doesn't work.  I'm not able (apparently) to do this.  Fingers crossed that I'm doing something dumb? This doesn't work: myarray[a][b][c] += newstringvariable; Nor this: myarray[a][b][c] = myarray[a][b][c]
  • Draggable background with jquery?

    I'd like to make it possible to move the background of a site by clicking and dragging it with the mouse. So far I've only found flash solutions and I'd really rather not use flash. If anyone knows of any jquery code that is somewhat similar that I could possibly adapt I'd appreciate being pointed in the right direction. Thanks!
  • How to get dates from a server

    I am writing an ASP.Net MVC application and I want to extract the bank holiday dates from the SQL database and use that to disable dates in my Jquery date picker. -------------------------------------------------------------------------------------------------------- So the Controller looks like this;          [HttpGet]         public ActionResult Get()         {             return BankHolidayViewModel.GetAllBankHolidays();         } ---------------------------------------------------------------------------------------------------------
  • Creating basic menu

    Hi, I'm new to jquery and I find difficult to get working a menu. I have and ul like:     <div id="left">         <div id="menu"> <div class="inside">             <ul>                             <li><a href="#1" title="One">1</a></li>                 <li><a href="#b" title="Two">2</a></li>                 <li><a href="#3" title="Three">3</a></li>                 <li><a href="#4" title="Four">4</a></li>                 <li><a href="#5" title="Five">5</a></li>             </ul>         </div>    
  • How to call a session variable in JQuery

    Hello Group,   I am trying to reference a session variable inside some JQuery code.  These examples below are what I am using currently just to try and see if I can get something to display and nothing shows up.  See anything wrong?   alert(Session("OwnerIndicator").val); alert(Session("OwnerIndicator"));   Just to make sure an alert works, I threw in a alert("hi"); which works fine.  It is when I try to write out the session variable it fails.   Thanks in advance folks...   Lee  
  • search children recursively

    Hi All, This seems like it should be really simple, but it has escaped me. I have a jquery object and I want to start there and search ALL of it's children recursively using a selector. EG. $(this).parent().parent().children('.targetClass').each(..... My problem appears to be that .children only searches the immediate children, not the entire subtree under the node. any advice? Thanks, Dan
  • Malsup Cycle plugin: pager disappears when new element added

    I have been running the cycle plugin with success for a while, using 3 images, a caption, and a pager area (simple dots).  I just added a fourth image/caption.  the pager picks up the fourth image, adding a dot.  However, it now fades in on transition, then immediately out.  no other code changed other than the addition of a fourth image.  Any ideas why this is now malfunctioning? See page at: http://unitedway-pdx.org Thanks, Maria
  • jquery mobile - link to forum is broken

    The nice shiny green 'forum' button on the jquery mobile site sends you to a non-existent forum, and 404s. AJP
  • How do I prevent page loading on link click for an intra page link?

    Hello Everybody! I'm trying to "mobilize" an existing website using jquery mobile. This basicly works but (for now) one problem left: For long pages there are lots of anchors and links to this anchors defined which are hijacked by jqm and prevented from navigating within the page. Instead the link is interpreted as a navigation to another page. I've learned from another post here that the following code enables a scroll the the anchor when clicking on the intrapage link: <link rel="stylesheet" href="css/jquery-mobile/jquery.mobile-1.0a3.min.css">
  • logo on nexted list

    I have a page with nested loops (3 nested). my question is how can I display the logo which I use in the page header?     another question I have, which is also related to nested list. once I use the nested list, from one list to another list, the heading is coming with color theam 'b'. In the headeings I have button, which I want to display in diffent theam. how is it possitble? Please advice
  • Button - User Icon inside the a element automaticaly

    I have the following html throughout my site: <a href="#devices/edit/<?php echo $site['Device']['id'] ?>" class="user" title="Edit this device"><span class="ui-icon ui-icon-pencil"></span>Edit</a>  Seems odd that in the jQuery UI that it wouldn't be considered that people might want to do this. To me this is semantical better as it requires less work.. Is there a way to get the $('a','#main').button(); to use the icon within the elem tags automatically? Really don't want to have to be using {icon:'ui-icon-pencil'}
  • Dynamic Content

    I have a file that contains a list of contacts. Each alphabet letter has its own div with last names that start with that letter.  Like this: Filename is AJAX.htm <div id="A"> Anderson<br> Alliance<br> </div> <div id="B"> Bendover<br> Banson<br> </div> When a user clicks on the appropriate letter I want to pull in just the appropriate div info into the existing page.  So, they would click on one of these two buttons: <a href="#" onclick="showContent('A')">A</a> <a href="#" onclick="showContent('B')">B</a>
  • After dialog closed postback happens

    hi all, from a.aspx im calling b.aspx as a dialog using below code         $('a[id*="anc1"]').click(function () {         var closestTR = $(this).closest('tr');         var a= closestTR.find('input:hidden[id$=a]').val();         var b= closestTR.find('input:hidden[id$=b]').val();         var c= closestTR.find('input:hidden[id$=c]').val();         $.fx.speeds._default = 500;         $("#modalIframeComments").attr("src", "../b.aspx?&a=" + a+ "&b=" + b+ "&c=" + c);         $("#divComments").dialog({
  • Posting each input

    Hi, im trying to post each input element in my form. The elements are generated with a click function. So if there are 2 elements i want to post the values of both to a php script. This is what ive tried so far but it doesnt appear to work. jQuery('#upload_form').submit(function()     {         var list = jQuery('input[id^="uploaded_file_name"]').length;         jQuery.post('process.php',         {             for(var i=0; i<list; i++)             {                 files:jQuery('#uploaded_file_name_'+i).val()
  • Getting info out of SOAP.

    Dear people, I'm using an web service to retrieve information from it. I got an working plugin from here and when i push a simple button I get the information in a string. But, now i need certain things to be shown but can't find the way how. So when i got an success function(data) i want to retrieve the info from (data). When i try some ajax coding like: var strInfo = $(this).find("Code").Text(); When i alert the content in a string, i get absolutely nothing! Can someone help me?
  • How to implement Toggle without using Toggle function

    Hey all --  I'm extremely new to jquery and trying to write a toggle function without using the built-in functionality. From what I've read, this should be a fairly straightforward exercise. However, I'm running an issue. My code doesn't seem to do anything. Not clear to me why because nothing is erroring out? Here's what I've got: <html>                                                                    <head>                                                                    <script type="text/javascript"
  • How do I get position left of a hidden element?

    I know how to get position left - var posLeft = parseInt($('.class').position().left); But the class I am using has the style display:none; Is there a way around this? Why doesn't this work? var posLeft = parseInt($('.class').css('left').replace("px", ""));
  • String Mask Query

    I am using the jQuery string mask for user input, is it possible to allow hyphenated last names ? ie: smith-jones      $(lastName).mask("aa?aaaaaaaaaaaaaaaaa"); cheers mick
  • Yet another question of changePage() method

    Hi list, I went on using this kind of code to call dynamic page content : <script type="text/javascript">             $(document).ready(function(){                 $("#epg").click(function(){                     $.mobile.changePage({                         url: ".cxml",                         type: "post",                         data: "__sequence=getEPG"+"&login="+localStorage.getItem("login")+"&pwd="+localStorage.getItem("pwd")                     },null,false,true);                 });        
  • removeClass() - tag still thinks it has class

    In the following code, clicking on a span with class "qwe" will alert a message. If you then click the first span to remove "qwe" from the other spans, the alert still shows when you click the old "qwe" spans. It's like the spans still think they have the class "qwe". Once a "qwe" always a "qwe"? I've obviously made a mistake but don't understand why. Any suggestions?         $(document).ready(function(){             $(".a").click(function(){                 $(".b").removeClass("qwe");           
  • using Jquery Plugins-Border-Radius CSS

    Am using Jquery plugins in my project , and one of its CSS class in ui.theme.css has Border-radius for getting the Rounded Corners . but currently its working in Firefox. How do i get it to work in IE as well. My manager is so strict on this. Please let me know if there is any latest version of plugins that has this issue Fixed.
  • slider css style not entirely clear

    I coded a slider like following to switch between two options: <div class="ui-grid-a" data-role="fieldcontain"> <fieldset data-role="controlgroup">     <div class="ui-block-a"><label for="check">check</label></div>     <div class="ui-block-b">       <select name="check" id="check" data-role="slider">         <option value="N">No</option>         <option value="Y">Yes</option>     </select>   </div> </fieldset> </div><!-- /grid-a -->It works fine. But the style is not entirely satisfactory. The corners
  • Any ideas why jQuery fails when loaded into div externally?

    Greetings, I'm having an issue which on a broader scope, seems to simply be that jQuery stops working once code is loaded from an external source into a pre-existing page's div element. Is there something I'm missing as this seems pretty straight forward but the only thing I can see in Firebug is there may be a cache issue as a page loaded WITH the code in it contains more cache elements (assuming the missing elements) then the same code placed into a div element. Greater detail is here: http://forum.jquery.com/topic/jquery-animate-fails-when-code-is-piped-in-from-separate-file
  • Simple code add on, I hope!

    Needless to say, I am no coder! I dabble with it only when I have to. I have images/text linked to buttons that fade in “onclick” from “original” images/text  . I’ve gotten this to work great with text or image but… I would like the images/text to fade out and return to “original” images/text  after a time limit and or no mouse use. Here’s the code I have so far: $(document).ready(function(){ $('.image/text1).click(function() {                                 $('#original_image/text).fadeOut(300,
  • 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