Missing plugin?

dmower - March 17, 2009 - 23:00
Project:jQuery Update
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

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.

#1

dmower - March 18, 2009 - 00:14

Simplifying the code a little I came up with the following:

$(document).ready(function() {
var options = {};
$("#map_toggle").click(function() {
$("#map_side_list").toggle("fold",options,5000);
return false;
});
});

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

$("#map_side_list").slideToggle('slow');

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

#2

mfer - March 21, 2009 - 15:38
Status:active» postponed (maintainer needs more info)

What version of jQuery UI are you trying to install? Is it compatible with jQuery 1.2.6 or does it require 1.3.x?

 
 

Drupal is a registered trademark of Dries Buytaert.