Bug Tracker

Opened 13 years ago

Closed 12 years ago

#2102 closed bug (invalid)

UI/Draggables Examples doesn't work

Reported by: adnan Owned by: braeker
Priority: major Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:

Description

I'm getting the error:

this.helper.outerWidth is not a function

URL: http://docs.jquery.com/UI/Draggables

I'm using Firefox 2.0.0.11 with FireBug on ubuntu 7.10

Attachments (1)

d.html (673 bytes) - added by bear.bibeault 12 years ago.
Test file that demonstrates issue

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by paul

Resolution: fixed
Status: newclosed

Fixed. Thanks!

comment:2 Changed 12 years ago by bear.bibeaul

Resolution: fixed
Status: closedreopened

I'm getting this error using newly downloaded scripts: jQuery 1.2.3 and jQuery UI 1.5.b.

Upon any attempt to move a draggable (Firebug cut/paste):

this.helper.outerWidth is not a function
[Break on this error] this.helperProportions = { width: this.helper.outerWidth(), height: this.help...

OS X 10.5.2

Firefox 2.0.0.13, Safari 3.1, Opera 9.26

Output from Opera error console (in case it's helpful):

JavaScript - http://localhost/test/d.html
Event thread: mousemove
Error:
name: TypeError
message: Statement on line 149: Type mismatch (usually a non-object value used where an object is required)
Backtrace:
  Line 149 of linked script http://localhost:8080/itruk.loads/resources/jquery/ui/ui.draggable.js
    this.helperProportions = {width : this.helper.outerWidth(), height : this.helper.outerHeight()};
  Line 130 of linked script http://localhost:8080/itruk.loads/resources/jquery/ui/ui.mouse.js
    if (this.options.start)
          Line 100 of linked script http://localhost:8080/itruk.loads/resources/jquery/ui/ui.mouse.js
    return self.drag.apply(self, arguments);
  Line 27 of linked script http://localhost:8080/itruk.loads/resources/jquery/jquery-1.2.3.min.js
    var val;
event = jQuery.event.fix(event || window.event || {});
var parts = event.type.split(".");
event.type = parts[0];
var handlers = jQuery.data(this, "events") && (jQuery.data(this, "events"))[event.type], args = Array.prototype.slice.call(arguments, 1);
args.unshift(event);
for (j in handlers)
    if (jQuery.browser.msie)
    return val;
  Line 26 of linked script http://localhost:8080/itruk.loads/resources/jquery/jquery-1.2.3.min.js
    var val;
if (typeof jQuery == "undefined" || jQuery.event.triggered)
    val = jQuery.event.handle.apply(arguments.callee.elem, arguments);
return val;
  At unknown location
    [statement source code not available]

Changed 12 years ago by bear.bibeault

Attachment: d.html added

Test file that demonstrates issue

comment:3 Changed 12 years ago by paul

Owner: changed from paul to braeker
Status: reopenednew

comment:4 Changed 12 years ago by scott.gonzal

Resolution: invalid
Status: newclosed

jQuery UI 1.5b requires dimensions. Current SVN does not.

Note: See TracTickets for help on using tickets.