jquery

Jquery sortable , Draggable , Droppable problem

I have a list what I want to be droppable , and its items to be sortable and dragable but when enable the sortable it now longer work sortable + dragable not working any help will be appreciated ...

jquery load event sometimes dont work, why?

hi! i use something like this $(img).bind('load',function(){ console.log('loaded'); }); and obviously it works, but when the page is loading images from cache the event isn't triggered. how can i fix this situation? ...

jQuery: I need something like ':visible' that works even if the parent is display=none

I have a list where elements are hidden for multiple reasons, each corresponding to a css class i.e: <style> .filteredOut { display: none; } .somethingElse { display : none; } ... </style> I want to apply alternating css classes via .filter(':even').addClass('even') but only to classes that are visible. The problem is tha...

JQuery - add/remove forms and divs

Hey I'm sure I've seen examples somewhere before, but I can't seem to find them. I have a page which has 5 buttons. I'd like each button to load up a different form, without refreshing. I could use UpdatePanels, but it sounds overkill for this (and bandwidth-costly). I'd like to load all the forms in one go, so clicking through the but...

jquery Ajax $.ajaxError

I have a bunch of ajax calls that contain success and error conditions like this one: $.ajax({ url: 'Remote/State.cfc' ,type: "POST" ,data: { 'method': 'UpdateStateName' ,'StateID': StateID ,'StateName': StateName } ,success: function(result){ if...

$.ajax try catch

I have an $.ajax call that includes both a success and error condition: $('input[name="StateName"]').live('change', function() { var StateID = $(this).parents('tr').attr('id'); var StateName = $(this).val(); $.ajax({ url: 'Remote/State.cfc' ,type: "POST" ,data: { 'method': 'UpdateStateName...

jQuery event fires on doc ready

I am trying to set the click event of a button on my form and for some reason I am getting weird behavior. When I bind the click event to a function that takes no arguments, things seem to work fine. But when I bind the event with a function that takes an argument, the event fires on document ready and on click. Any ideas? Example 1: T...

How to implement "mustMatch" and "selectFirst" in jQuery UI Autocomplete

I recently migrated a few of my Autocomplete plugins from the one produced by bassistance to the jQuery UI autocomplete. Does anyone know how to implement the "mustMatch" and "selectFirst" with just callbacks and other options without modifying the core autocomplete code itself? ...

jQuery related item table highlighter

I have a table fill with cell items. If I click on a cell item, that cell item is 'linked' or related to other cell items, which need to be highlighted. If another cell item is clicked, that cell's related cells need to light up. Is there a jQuery plugin to accomplish something like this? Or would I have to look into writing one mysel...

jquery draggable accept: classpath

Hi guys.. I have problems with the following bit of javascript/jquery code: this.droppable = function(){ $('.imageWindow .body .item').draggable(); $('.groupWindow .body .item').droppable({ accept: $(".imageWindow .body .item"), over: function(event, ui) { alert("this is valid!"); }, drop: f...

jQuery cycle floats on top of other content

I tried to replace my Flash video with a jQuery cycle. The cycle works, but the images will not stay in the editable region I placed them in. Instead they are floating on top of other content. Any ideas? This is happening on the home page of massageeducator.com There are 2 cycles on the page. “Slideshow1” and “slideshow2”. “slides...

IE 8 and jquery problem

I have such div: <div class="box"> <div id="myid" style="display:hidden;"> <p>some stuff here</p></div> </div> when I execute $("myid").slideToggle("slow"); on the html above (div "myid" is hidden) , if the content of has bigger height over box, my content overflows from the bottom of the "box" class, weirdly this doesn't happen ...

jQuery Cycle Plugin: How to preload first images with a loading background gif then fade in Cycle Slideshow?

Hello all, I'm struggling with this, maybe some of you can help... I have a home page slideshow with large images at www.theoribeiro.com using jQuery Cycle plugin Images are large and sometimes with slow connections (but even in fast ones) the behavior of the slideshow start is pretty ugly, showing the image all of a sudden or half-lo...

cannot display json data returned from jquery ajax call

Hi, can somebody please tell me, how can I display json data returning from the ajax call. I am new to this. $.ajaxSetup({ cache: false, timeout: 5000 }); //String.prototype.toJSON; var the_object = {}; function concatObject(obj) { strArray = []; //new Array for (prop in obj) { strArray.push(prop + " value :" + obj...

Jquery Validation Plugin - Require 2 checkboxes

I have a group of 12 checkboxes, all with the same name (name="4_RepPeriods"). I am using the Jquery validation plugin and i want the user to select no more or less than two of these check boxes. If possible I also want the other check boxes to become deactivated (unclickable) after two have been selected. I appreciate the help! Thanks...

Jquery simplemodal call another simplemodal

HI, I want to call another simplemodal from a link in existing modal. how can i do this. im using the OSX modal. ...

Help me to simplify my jQuery, it's growing huge and redundant!

Hey all, I am no jQuery expert, but I'm learning. I'm using a bit (growing to a LOT) of jQuery to hide some images and show a single image when a thumb is clicked. While this bit of jQuery works, it's horribly inefficient but I am unsure of how to simplify this to something that works on more of a universal level. <script> $(document)...

Ruby and jQuery -- $(document).ajaxSend() not modifying the params as expected

I cannot get jquery's ajaxSend (http://api.jquery.com/ajaxSend/) to properly modify the parameters. I have: $(document).ajaxSend(function(event, request, settings) { settings.data = $.deparam(settings.data); settings.data['random'] = new Date().getTime(); settings.data['_method'] = 'get'; settings.data = $.param(settings...

How to capture 'Update' click event in ASP.NET GridView with jQuery

I need to capture the 'Update' click event with jQuery in an asp.net GridView and have no way of knowing where to start. I'm still rather new to jQuery. My GridView is attached to a SQLDataSource and, naturally, has all the bells and whistles that that combination affords. Any help would be greatly appreciated. ...

jquery map mousemove

Hi I have made a map qith juqery, which is split up in many regions, and which uses the map cordinates to make hover areas. On hover a tooltip appears for every region. Everything works great, but there is one problem. The tooltip should follow the mouse cursor. This, I have done with mousemove, but if my map is in a div, which is fx cen...