• textStatus unavailable from ajaxError

    The value of textStatus doesn't seem to be available when using the global handler ajaxError, so it doesn't appear to be possible to determine what the reason for call failure is - this is probably most evident when defining a timeout through ajaxSetup. Is anyone aware of a workaround for this, and/or is this omission slated to be addressed any time in the near future? Thanks.
  • Form Submission

    Form submission seems could use a little more flexibility.  Would be nice if: 1.  Could decide whether to submit a form using AJAX or HTTP on a form-by-form basis 2.  Sometimes when submit a form, may want to go to an arbitrary "page" (i.e. already loaded subpage).  But seems can't do this since action determines both the AJAX call and the page you go to next (if i understand things correctly).  May be better to separate these things into separate variables. 3.  Formally exposing a callback from
  • Integrating the path/bezier plug-in

    I thought I had posted this but I can't find it. I'm trying to accomplish four things upon clicking: 1. hide a div 2. show a div 3. initiate an animation sequence 4. replace a graphic This all works fine. Now, I'm trying to replace the animation that I have with animation based on an arc so I'm using the bezier/path plugin. I was told my variables had to be declared outside the function which contains the animation action but I've had no luck putting those two lines of code into what I have. Here
  • Two or more form submit buttons value.

    I am troubled by proper use of two or more form submit buttons. <form action="index.php" method="post">     <button type="submit" name="Options" value="Option1">Option1</button>     <button type="submit" name="Options" value="Option2">Option2</button>     <button type="submit" name="Options" value="Option3">Option3</button> </form> The following results are obtained when requests by pushing a "Option1" button by the usual html. $_POST -> { ["Options"]=> string(7) "Option1" } However, when jQuery
  • validating checkboxes

    I have a jsp page that contains 2 set of check boxes (these are generated with a for loop, so values are assigned at runtime). I want to make sure that at least one check box is selected from either set. I have this for validation: [code] $(document).ready( function() { $("#aForm").validate({ rules : { 'aCheckbox':{ required : { depends: function(element) { return $("#bCheckbox:not(':checked')") } } } }, messages : { aCheckbox: "select a box." } });[/code] This does not seem to work. Please help.
  • [jQuery] what is the license of this beautiful plugin innerfade

    Under what license is innerfade plugin. This is really a beautiful plugin. Unfortunately the plugin file does not mention the license of the plugin. Thanks
  • jquery validate breaks when supplying additional metadata

    Hi, I am working on a web form which uses jquery validatate for validation and a (custom-built) plugin for ajax support. My plugin supports metadata (using the jquery metadata plugin) for supplying information about the form and how the ajax request should be handled. The problem is that when I add such metadata to the form, jquery.validate tries to find matching rules and crashes because those don't exist when validating the form. For example my form tag might look like this: <form class="{this_is_just_some_random_metadata:true}"
  • how to get onchange select id

    Hi, In my page i have 4 dropdowns when on change event occurs, i want to know from which select box it is fired. How to know that? Help me. Thanks, Mohan
  • [jQuery] append mailto link to orphan plain text email address

    Hi, I have a div that contains simple text data with line breaks. I want to append a mailto link to the email address but so far I have not been able to select the email. The container looks something like this: <div id="myId">     Username: Johnny<br />     Email: john@organization.com </div> With the help of jQuery it should look like this: <div id="myId">     Username: Johnny<br />     Email: <a href="mailto:">john@organization.com</a> </div> My first intention was to use a filter like: $('#myId').contents().filter(':contains("@")');
  • [jQuery] Advanced Problem - Any takers?

    I'm dynamically inserting html into a page that only contains an image. Such as... <html> <body> <img src="http://my_domain.com/my_image.jpg"/> </body> </html> my script has a large amount of html that i want to insert. the html is stored in a variable . Such as.. var my_var = "<div>HI</div>"; (the actual html is much larger and more complicated than my example) I then have.. $('body').append(my_var); which you would think would insert the html into the page. it doesn't, instead it just inserts it
  • [jQuery] pulling my hair out with validation plugin and radio/checkboxes

    I'm using Jorn's validate plugin and have everything working great except for the 'required' error messages for radio and checkboxes. I've dug through the comments, API and examples but am stuck... What I want: o Item 1 o Item 2 Error message goes here... What I'm getting: o Error message Item 1 o Item 2 Any ideas what I could be doing wrong??? Jim
  • autosave to mysql DB with Jquery using Ckeditor

    Hi Everyone, Not sure where i was meant to post this but i thought this area was the best for it. Just having one issue and is probably a simple fix. I am using the ckeditor in a form that push the content to a mysql database using php. I am also using a jquery function that autosaves using ajax every 20 secs. the autosave function put all the content into the DB except for the textarea that has the ckeditor applied to it. If i submit the the form by pressing the sumbit button everything works how
  • [jQuery] Tablesorter UI Theme Support

    This is a double post, at least going to be a double post from in the jQuery Plugin list. I'm being moderated yet on that list, and it doesn't seem to get much activity. -------------------------------------------------------------------------- Hi, I'm going to post this here since the Tablesorter developer hasn't gotten back to me yet. I took a copy of the latest version in SVN and modified it to have jQuery UI Theme support. It seems to work very well and anyone is welcome to use it. Here are the
  • Display jquery-ui-tooltip when jquery-validation detects form errors (almost there)

    I'm trying to display a jquery-ui tooltip when validation detects form errors. I can make it happen using the following code, but the effect is that a new tooltip gets created each time validation fails. Any idea how I can either tell ui-tooltip to reuse the existing tooltip OR tell validate to clean up the old tooltip first? $('form').validate({   errorPlacement: function(error, placement) {     var text = error.text();     placement.tooltip({       content: function(){ return text; }     }).tooltip('open');
  • Ajax navigation problem. ajaxLinksEnabled/ajaxFormsEnabled not working?

    Hi! I'm trying to convert an existing data collection system to jQuery Mobile: it is based on CGI Perl scripts which produce HTML forms. It was working quite well with Alpha 1 but it is broken since Alpha 2. I think that the problem is due to the Ajax navigation system: it duplicates the forms in the same DOM tree and, for example, some tags exist with the same ID which is weird. I've tried to fix the problem by disabling Ajax links and forms by using mobileinit as follow: $(document).live("mobileinit",
  • Validation Plugin, changing message with addMethod

    Hi, I've written my own custom validation method using addMethod which works great. But what I'd like to do is change the error message depending on which part of the validation it fails on. I've tried defining & using a var for the message but the message never changes, a very simple cut-down example: var customError = ""; $.validator.addMethod("myvalidator", function(value, element) {     var returnVal = true;         if (value.length === 0) {         customError = "cannot be blank";         returnVal
  • What is A02 equivalent of customButton?

    I can't figure out how to style a button (or other control) that is created dynamically.  in alpha 1, it was customButton(). Is the change because of the move to widget factory? In any case, what is the equivalent for alpha 2?
  • Building out .live() and .die()

    In building a large Rails 3 / jQuery application, I've been running into some limitations of jQuery's .live() and .die() methods.  For anyone who is unfamiliar, Rails 3 uses .live() extensively to enable all the AJAX functionality for an app. The Problem: $(document).ready( function() {   $('a,form').live( 'click', function() {     alert("You are going to a different page");     return true;   }); }); // NEITHER of these will work $('a').die(); $('form').die(); // ONLY this will work $('a,form').die();
  • Add link buttons and Collapsible content dynamically and icons

    I am a newbie for JQuery Mobile.   I  tried adding link buttons and Collapsible content dynamically with javascript. They do not render formatted. What else should I be doing? I have given below the code snippets. Any example will be useful for me. Thanks.   page markup   <ul id= "data_list" data-role="listview"  data-inset="true" data-theme="a" data-dividertheme="b"> </ul>   javascript   var buttonstart= "<li><a   href="#About">"; var buttonend = "</li>"   $(result.camp_list).each(function (index,
  • .css() reports value of "clip" inconsistently

    Given: a CSS definition of this sort: div {clip:rect(0px 30px 30px 0px); /* (values set arbitrarily) */ } Using IE 8, if I attempt the following: $(document).ready(function () { alert( $("div").css("clip") ) }); The alert reports "undefined" unless the clip is defined in an inline style, i.e. <div style="clip:rect(...);"></div>. When the style is inline, it returns space-separated values, e.g. "rect(0px 30px 30px 0px)," even if the clip is defined with comma-separated values. In FireFox 3.6.12
  • innerHTML and 'unknown runtime error'

    why this always throws "unknown runtime error" ? looks like the innerHTML has something wrong . Thanks. <div id="pageDiv"></div> $("#pageDiv").attr("innerHTML", "<a href='#' onclick='ddddd();return false;'>ddd</a>"); 
  • Multiple ajax request

    Hi, I'm trying to launch two ajax requests at same time. I'm expecting result from the first later than the second. The problem is, it won't return me any result from the second request untill first one is returned. Check it out : $.post("sendMail.php"); getSendInfo(); setTimeout(getSendInfo,5000); function getSendInfo(){         $.getJSON("getSendInfo.php",         function(data){                 console.log("done"); }); } I'm getting response from the $.getJSON function only when the $.post is
  • IE UI Button refuses to work as link.

    I wrap the button with an <a href... but it does not work in IE. Is there a jQuery UI way to make these links work?
  • dialog issues - accessing the dialog object, scrolling inside the container...

    Hello, I'm having some troubles getting going with the ui.dialog widget. I'm using it to display content that often extends beyond the bounds of the dialog. I've tried putting the content in a div with overflow:auto, and creating a dialog from that div element, but I still need to resize the height of the div element to match the dialog when it is opened/resized. Here's what I have at the moment, which resizes the contained div based on the dimensions of the elements within the dialog on resize/open
  • having a form.post refresh the page

    I might be trying to tackle this the wrong way- but I'm looking for a way to have a <form method="POST">...</form> refresh the view. The use case is a login page - I'm using Django back end, and the default login setup logs in and redirects you to a default page, or a specified page if you're provided a URL. WIth the default jQueryMobile setup, that leads you to a navigation push - which in the case of a login I'd like to disable, since navigating back to the login page isn't intended or desired.
  • cycle plug-in - creating links to specific slides

    hi, i'm hoping someone can look over this code and tell me if it is right; i'm not a programmer, and although this works (at least in safari and chrome), i'm worried that it is bad code.   what i'm trying to do is add a function to the cycle plug-in where the address bar reflects a link to the specific image in the slideshow using #1, #2, etc.  not quite a history function, as i'm not concerned with back/forward buttons.  (this code also includes for a 'position', i.e. 1/7, 2/7, etc., and a caption
  • Problem with Multi Select Move Up/Down in IE7

    Hi, I am trying to write a multi select listbox where you can reorder the items in it by pressing "up" or "down" button. It seems to be running fine on most browsers but not Internet Explorer 7 though. It seems that I am not able to move the second item to the first, but if you move your mouse over to the listbox immediately after clicking the "up", the second item will move to the first. The same applies if you select multiple items and move up/down. You need to mouse over to the listbox immediately
  • jQuery Plugin Validation + Date Picker jQuery UI

    I've got a form with a textbox in it and this textbox is readonly. If you click on the textbox you get a DatePicker. When a date is selected you see the date appearing in the readonly textbox. Now I wanted to use a required validation on the textbox but when there is no date selected I get a correct error message saying I have to choose a date so that's in order but when I then click on the textbox and select a date it doesn't update. It keeps saying that there's an error.But when I do it a second
  • New Alpha release problem

    I've updated to the brand new Alpha release, I just changed the CSS and the jQuerys like this: <link rel="stylesheet" href="jquery.mobile-1.0a2.min.css" />     <script src="jquery-1.4.4.min.js"></script>     <script src="jquery.mobile-1.0a2.min.js"></script> And my main page appears like before But when I click "Settings" (with this code) <!DOCTYPE html> <html>     <head>     <title>Settings</title>     <link rel="stylesheet" href="jquery.mobile-1.0a2.min.css" />     <script src="jquery-1.4.4.min.js"></script>
  • Detect http headers?

    Can jQuery detect 404 http response headers and then display a hidden div?  My case is:  In htaccess I've set my homepage as the 404 error document. The page contains a hidden "Oops not found" text that I want to show in the case of a 404.
  • encodeURIComponent isn't sufficient for encoding application/x-www-form-urlencoded

    Heya, I'm struggling with form serialization in jQuery 1.4.2, in a Rails 2.3.8 project. I'm ajax-posting a form containing a textarea, grabbing the form contents using $(form).serializeArray().  $.ajax uses $.param to serialize the contents, which in turn uses encodeURIComponent. If my textarea contains: foo "bar" baz  then the resulting request body contains   text=foo "bar" baz   which Rack/Rails manages to deserialize as simply "text"=>"bar".  *  The spec - http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
  • Superfish menu Open UP?

    I've posted my question on stackoverflow.com and you can see the code there, but essentially I'm wondering if there is a way to open (I know there is, I just can't) the superfish menu plugin "up" rather than down which it does by default.  I think it's a css/jQuery animation issue but I can't seem to get it. Thanks in advance.
  • Using .queue()

    Hello ! I'm using queue to do a non stop animation (a blink animation), but when I try to stop it, I'd like that the animation runs until the stack end and not stop immediatly. My code : <html> <head>     <script src="http://code.jquery.com/jquery-latest.min.js"></script>     <style>         div {             position: absolute;             top: 0px;             left: 0px;             width: 200px;             height: 200px;             border: 2px black solid;             background-color: green;
  • Themeroller as basis for own custom themeing service (OS)

    Hi Is the whole themeroller website script downloadable so that i can take this as a basis to further work on? This would also make the documentation for some of us jquery-newbe's redundant since its pretty easy to understand the processes behind the scene if we face such a complex/big demo with structured code-view. Thx for any hint on this. Regards
  • jQuery UI datepicker - not working in IE6?

    Hello. I have a problem with jQ UI datepicker in IE6, it's positioned just fine, generate the image fine and shows the calendar perfect. But can't pick the date, nothing happens on click, the date isn't showed in input field nor highlighted on the calendar. Any idea what could cause this behaviour? The code I'm using is: $(document).ready(function(){           $("#depart").datepicker({buttonImage: 'images/calendar.gif', buttonImageOnly: true, constrainInput: true, dateFormat: 'dd/mm/y', duration:
  • Alpha 2 form submit not posting

    Since moving to Alpha 2 experienced problems with form submits. Looks like jquery hash navigation taking over
  • Accordian Example Non-Functional

    Hi and thanks I have worked with jQuery for years and I am a big fan, I tried the accordian finally and I can't get the basic example working, I used the code below, if there is something I missed I apologize but I get no response at all and I tried on multiple browsers, Safari, FF, IE,Chrome,Opera. Any help would be appreciated thanks $(function () { $('#accordian').accordion(); }); <div id="accordion"> <h3> <a href="#">First header</a></h3> <div> First content</div> <h3> <a href="#">Second header</a></h3>
  • jqPlot does not show graph

    Hi, I'm having trouble with jqPlot which is not showing the graph as expected. http://sinope.c0demonkey.com/~halfdan/stats/ Basically I request some JSON data from my Server using jQuery Ajax: function updateGraph() {         $.ajax({                 type: "GET",                 url: "<?php echo $_SERVER["SCRIPT_NAME"]; ?>",                 data: 'vhost=' + $('#vhost').val()                         + '&period=' + $("#period").val()                         + '&scale=' + $('#scale').val()                        
  • What grid?

    Hi I would like use a grid for my apllication (symfony) but i have seen many grid on the web. What is the best grid? Could you give the advantage and disadvantage of grid? Thanks !
  • How to post entire JQGRID data to server

    Hi,   I have a JQGRID table and when I click submit I wanna post entire grid data to server.   Thanks, Jim
  • 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