• Why selecting first element from wrapped set is giving error ?

    Please see this code: $(function(){ $("div.expandable").css("width",$("div.expandable")[0].width()+200) }); as you can see i am first of all getting a wrapped set of all div whose class is set to expandable, and then calling method css to set width property of those all div to present width plus 200 pixel more. The inner jQuery selector $("div.expandable") will also return a wrapped set so i used element at zero index to get its width  $("div.expandable")[0].width() . But this is returning error:
  • Problem with Visual Quickstart Guide

    I'm working thru the jQuery Visual Quickstart Guide by Peachpit Press.  I got to chapter 9, which deals with Widgets, and I'm stuck. I copied the links to the the jQuery UI codes, but the accordion plugin is not working <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script> <script
  • UI Tabs- Internet Explorer Crushes Form Dropdown Box!

    This is driving me crazy. The search form is only crushed in IE! Page Link
  • $org field value don't save into database? JQuery

     Hi guys, These are my codes below, [B]index.php[/B] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Submit form using Jquery to MySQL with PHP</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script src="jquery-1.4.2.js" type="text/javascript"></script> <script src="jquery.js" type="text/javascript"></script> </head> <body>    <div
  • Confirmation box for <s:submit name="ActionClass" ...>

    Good morning, From the link, http://plugins.jquery.com/project/confirmation I downloaded .css & js. But could someone provide an example how to use confirmation box please? Most of the google results show confirmation box for link "<a>", but I need it for <s:submit>. A <s:submit> action, before calling the real method, popup a confirm box msg. What I need is: =================== <s:submit onclick="return jquery_method()" action="DeleteRecord"... > When clicking the button, popup a dialog for confirmation.
  • Forum Link on main page is wrong.

    Don;t know if anyone has mentioned this yet or not. On the main page for jqm, the forum link in the green navigation bar seems to link to this..  http://forum.jquery.com/jquery-mobile  Get a 404 on that link. The correct link should be... http://forum.jquery.com/using-jquery-mobile/  Not a big deal but i figured i'd let you guys know. I thought the forum was down the last couple of days.
  • Do any plugins exist for blocking all of a page except for a particular element and it's contents?

    Hi, I have a need to do what I'm kind of terming as reverse-blocking.  It's very similiar to what occurs when you open a modal dialog, except that I don't want to open a dialog but rather apply it to an element on the page such as a div.  I'm wondering if any plugins exist that can do this, or if I need to create something new.   To give a little more background, I have a page with several 'modules' on it that are basically div containers with a bunch of input controls within each one.  Each 'module'
  • Event namespaces are ignored when bubbeling up!

    Hi, I've found some strange behaviour with event namespaces. Simple example: $( "body" )       .bind( "testevent", function () {             alert( "should not trigger in body" );       })       .bind( "testevent.active", function () {             alert( "should trigger in body" );       }); $( "#test" )       .bind( "testevent", function () {             alert( "should not trigger in #test" );       })       .bind( "testevent.active", function () {             alert( "should trigger in #test" );
  • Preload image and then fadeIn?

    Hi, I have a large image that I change by clicking on some small images to change it. I use this code to preload images and then fade in, but it doesn't look nice. Once the images are cached into the computer the fading is perfect, but the first time it seems like it fades at the same time as it loads. I wonder if it could be done in some other way? Perhaps use a callback or preload all images into an array, but I'm new and don't really knows how to put i together yet?  $("#bild1").click(function(){
  • must use "var" to declare a variable?

    must use var to declare a variable or just type the variable only? example: var myvar = this.val(); or myvar = this.val(); What is the right to use? I tested both and it worked, but it may be that some of the two is the safest and most advisable to use.
  • Random background Image Function Issue

    I have the below function but its not giving any errors or outputting anything, any ideas? <script language="Javascript"><!-- function getHeaderImg() {   images = new Array(8);   images[0] = "image1.jpg"; images[1] = "image2.jpg"; images[2] = "image3.jpg";     index = Math.floor(Math.random() * images.length);   document.write(images[index]); } $('.headerBKG').css({ backgroundImage: "url("+getHeaderImg()+")" }); // --></script>
  • ajax event when partial response chunk done

    I have a page that takes about 15 seconds to complete. But the page starts outputing content after a half second. Is there a way for jquery to throw an event at that time? For every chunk? Maby there is a plugin that I can use where I can define "chunk"? Maby an event when there is a newline or some other marker. My visitors would rather see something else than "please wait", if possible.
  • Validation on click Submit

    I have two selection and one input box on click submit button I want to check if selctor1 value is none then alert some thing. If selctor2 value is none then alert some thing and if input box is empty  then alert some thing and stop submit or else submit.how can I do this? Can any one help me with this please? Thanks,
  • Why happen this with buttons

    Hi every: I'm trying to use Buttons Widget following every as docs said but I'm getting problems when it's showed. The HTML is as follow: <div class="buttons">  <button onclick="$('#form').submit();"><?php echo $button_save; ?></button>  <button onclick="location = '<?php echo $cancel; ?>';"><?php echo $button_cancel; ?></button </div>And the jQuery code is this: $(".buttons button:first").button({         icons: {             primary: "ui-icon-check"         }     }).next().button({         icons:
  • Magic jQuery plugin

    Hello, I am Bastien. i'm the front-end dev/designer at CBS in france (cnet, zdnet, gamekult etc). For more than one year i am developping a jQuery plugin which goal is to have an easy to use, flexible & optimized plugin for web Layout management & User Interaction Management. It is compatible until ie6 and mobile browsers such as iPad, iPhone etc... Simple position fixed even for non supporting browsers. (ie6, iPhone iPad etc) Automatic alignment of the elements of the page (other elements, screen
  • Sudden Blank / White Page

    Hi Guys - really struggling with this issue. The page loads fine and sits there for an amount of time (5 minutes, 5 hours - unsure) and randomly the whole page will just turn white as if it's being blanked. I thought perhaps this was a Chrome issue at first - but it's happened on FireFox too.  I's firing off Ajax requests probably once a second (I queue them to stop overloading the server).  I'm not even sure where to look. Once it blanks - sometimes, it'll just reload all by itself as if it's been
  • UI slider stop callback not firing

    Hi, I have an issue I can't figure out for the life of me, the stop, slide or change callback functions are not firing for some reason... I think my code is correct, I really don't know what's going on... Here is the page where I use the slider : http://bit.ly/fX5Bck And here is the specific code I use :             $("#unlock-slider").slider({                 handle: "#unlock-handle",                 animate:true,                 slide: function(e,ui)                 {                     $("#iPhoneForm
  • Fade in image after laod?

    Hi, I try to get an image to fade in after it has been loaded, but I can't get it to work. This is how the code look with the loading part: $("#bild1").click(function(){     $("#main_image").attr("src","bild1.jpg");   }); After the image is loaded, I want it to fade in. How is that done? I have tried to add fadeIn but not working. Preciate som help. Thanks!
  • Remove div on hover off?

    Hi, I'm a relative beginner to Jquery so apologies in advance if this is really obvious but would appreciate any advice! :) The aim of the exercise is to be able to hover over a hyperlink in a dataview table and load the content of one of that page's paragraphs into a div (#notes) on the current page (I may want to load that into a tooltip later but I'll walk before I can run!) and then when I hover off the hyperlink, the loaded content is removed again. I'm using a combination of .hover and .load
  • [jme] Problem integrating controls with API

    Hello. I have a problem when trying to use both controls an API to control my audio element - It seems as if the connection between the controls and the element is lost. I have the following code copied from one of your demos for the audio player slightly modified (no sources inside the audio element): <div class="media-player">     <audio id="auscplayer" controls="controls">     </audio>     <div class="media-controls">          <a class="play-pause"><span class="ui-icon"> </span><span class="button-text">play
  • Cycle plugin IE7/8 1 pixel shift

    I am using cycle to animate 4 div's on a website I am working on. On some versions of IE 7 and 8 as the cycle plugin animates between 'slides' it appears to shift the slide 1 pixel to the right then back 1 pixel to the left. http://westfield.peex.co.uk/ I cannot get to the bottom of this issue as the CSS all validates and I have implemented Cycle correctly. Any help would be really appreciated as I am now stuck for a solution.
  • Setting direction for rtl languages

    How can i set the direction of the page to support rtl based languages (Arabic, Hebrew,etc)?
  • Jquery Google Feed Plugin

    How do i get images with jquery google feed plugin, not just text? Thanks!
  • jQuery quicksearch new version

    Hi guys I've been busy developing a new version of my quicksearch plugin. it's now a lot more flexible, plus lightning quick! Please try it out: http://lomalogue.com/jquery/quicksearch/ http://lomalogue.com/jquery/quicksearch/super_table.html There's more information over at Github too: http://github.com/riklomas/quicksearch Any comments would be very helpful! Rik
  • How to find out the previously selected option

    Hello everybody, I wonder if anyone can help me with this issue: How to find out the previously selected option value in a select list? For example: I have a list with 3 options <select id="test">   <option value="1">Option 1</option>   <option value="2">Option 2</option>   <option value="3">Option 3</option> </select>When user select, for example, option 3, how can i find which was the previously selected option? etc... I've found some javascript example that evaluate "previousIndex" property of
  • Some Methods

    I am creating with many different functions into one, example: Walk, run Each of these is a function, let's assume for a human. He walks or runs. I want to make whoever is using the plugin to decide what he wants to do, example: $ ('# human').MyPlugin('run'); note: I do not know if it would be like that: MyPlugin('run'); How do I put several functions in my plugin? Iwould have to to use methods ? Thanks ;)
  • Ways to make on-hover content stay in place when you stop hovering?

    Hello, I have my site setup to display its content when you hover over the buttons on my nav bar using css. Once you hover over the button the content will stay up as long as your mouse pointer is over the content box. I'm running into two problems that make me want to get the content box to stay open unless you click off of it. The first issue is that some of my buttons are close the the bottom of the content box and its not very hard at all to let the box close by mistake. I could fix this by making
  • Halfway through fadeOut callback

    I want it so a fadeIn occurs halfway through a fadeOut Obviously this won't work via the callback because it waits for the fadeOut to complete entirely. I just want my list item to fade in halfway through the current fade out so there is a nicer transition. Heres my code:     <script type="text/javascript">     function switchSlide ()     {         var current = ($('.slider ul li.current'));         var next = (current.next().length) ? current.next() : $('.slider ul li:first');         current.fadeOut(1000,
  • Jquery CSS help Placing codes

    I'm having difficulties figuring out where to place each of the codes that this website provides >>> http://web.enavu.com/tutorials/making-a-… I have downloaded all the files but can't figure out where to place codes HTML CSS and Jquery Please tell me where the code goes, I don't need a full tutorial all I want to know is where goes where!
  • $ajax my script dosent Works, help.

    Hello i use $ajax function for my website but the script which I have write works not correctly Here is the script: <script src="jquery-1.4.2.js"></script> <script language="javascript"> $().ready(function() { function get_tableau(client, responsable, present, tri, sens, tri2, sens2, ladate) { $.ajax({ type:"POST", url:"tab.php", data:"client="+client+"&responsable="+responsable+"&present="+present+"&tri="+tri+"&sens="+sens+"&tri2="+tri2+"&sens2="+sens2+"&ladate="+ladate+"", dataType:"html", success:
  • How can I get the canonical address for the current page after it is loaded?

    I want to get access to the actual address for the page that is current visible. Is there a way to do this? I'm thinking for purposes of Google Analytics page tracking.
  • Progressbar always has Height of Zero

    Hi There, wanna give jQuery UI Progressbar a try and simply paste the sample code to my project. jQuery and the Full UI-Package are included. It seems to work, but the ProgressBar always get's a height of zero - so nothing's visible. Any Idea, what went wrong here?  I'm using this demo code: http://jqueryui.com/demos/progressbar/#default Thanks for your support Chris
  • How to find out how many times my plugin has been downloaded

    H everyone,   I have created the horizontal tree plugin a few months ago and now that my knowledge has grown even more i am thinking of now doing an update to the plugin. Before i do this i would like to see how many people have actually downloaded the plugin. Can someone point me in the direction to find out this info. Thanks. Steve.
  • Jquery UI datepicker

    How do i make sure someone picks a date before the form submits I tried java script on the input name but it does not work... I cannot find anything on google either. any help would be greatly appreciated.
  • updating children elements in cloned div

    Basically, I have a button and a table that I want to clone when "Add new" button is pressed, and then append the cloned elements to the "items" container, but with updated id's and names - the update is done by appending the value of "num" attribute of "items". In the end I'll have to clone and update the id's and names for multiple input elements in the table found in the "default_container" - but right now it doesn't work even for direct children. HALP pls :( The problem (one of them at least)
  • jquery selector/wordpress problem

    Hi there, I'm trying to piece together a WordPress theme and am teaching myself a bit of jQuery in the process, however, I'm slightly stuck on something desirevo dot com In the top menu at the above address I just want those initial, big links (inline list-items) to drop down. However, because there are aspects of WordPress that are automated, it's not proving as straight-forward as I'd like to achieve that, and instead it's affecting every consequent list-item beneath it. Does anyone know how I
  • Jquery UI-Datepicker - today button?

    hi all,      when i click on today button in jquery date picker control today date should be the value for the date text field. How do that? Advance thanks...
  • Problems with submit button reloading page when there is an if...else statement.

    Hey guys, I have a form that I perform some AJAX business on when it is submitted. However, I wanted to have an if...else statement but when I add it it allows the page to refresh upon submit. For example... $(document).ready(function() { // register form onsubmit function $('#register_form').submit(function() { // declare variables                 var input_email; input_email = $("#register_form_input_email").val(); // verify email   $.post("emailverifier.php", { email: input_email }, function(data)
  • Hello All - Need Help

    Is there any way and how to implement google map of my town in background of my website, and without zoom in and zoom out tool. Tnx in advance.
  • iPhone (Safari) prompts to add contact rather than just going to the phone call screen

    Hi All, I have an a tag as follows:  <a  href="tel:1300 111 222">1300 111 222</a> on my HTC phone, it goes to the phone call screen as expected.  On the iPhone/iPod, it prompts to add as a contact and you can't seem to skip this.  Does anyone know if there's a way around this?  i.e. so it goes straight to the phone screen? thanks Matt
  • 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