Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Was trying to add some jQueryUI code to my site and can't get it to actually use the effect I want. Instead I see a bunch of errors in firefox saying
Error: jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")] is not a function
Source File: modules/jquery_update/replace/jquery.min.js
Line: 32
This is the code that triggers the error:
$(document).ready(function() {
function runEffect(){
var options = { mode: "hide", direction: "right" };
//run the effect
$("#map_side_list").toggle("fold",options,5000);
};
$("#map_toggle").click(function() {
runEffect();
return false;
});
});
Only thing I could find searching around is vague references to a jquery plugin called Easing, but I can't find anything about adding it to drupal, or if that's even the solution.
Comments
Comment #1
dmower CreditAttribution: dmower commentedSimplifying the code a little I came up with the following:
This code still doesn't work, but it's cleaner than the first post and maybe easier to read.
I found that replacing the toggle line with
this actually functions the way I intended.
Although this solves the issue for now, I'm curious to know why the examples on the jqueryUI page (where I got this snippet) don't work.
It seems that only the jquery effects are working, and none of the jqueryUI effects
Comment #2
mfer CreditAttribution: mfer commentedWhat version of jQuery UI are you trying to install? Is it compatible with jQuery 1.2.6 or does it require 1.3.x?
Comment #3
mfer CreditAttribution: mfer commentedClosing due to lack of activity.
Comment #4
FiNeX CreditAttribution: FiNeX commentedSame error using 6.x-2.0-alpha1 and hierarchical select 3.3
Comment #5
FiNeX CreditAttribution: FiNeX commentedComment #6
mfer CreditAttribution: mfer commented@FiNeX is hierarchical select 3.3 compatible with jQuery 1.3.2? If not, there need to be an issue filed with that module or it is incompatible with jQuery Update 2.x.
Comment #7
FiNeX CreditAttribution: FiNeX commentedI'm sorry, I've wrongly installed jquery.ui module. I've set this bug back to "closed". Sorry again.