Skip to main content

Bug Tracker

Side navigation

#2115 closed bug (duplicate)

Opened January 04, 2008 11:59AM UTC

Closed March 15, 2008 04:39PM UTC

Last modified March 15, 2012 07:13PM UTC

draggable error "$.ui[module] has no properties"

Reported by: peterbe Owned by: john
Priority: minor Milestone: 1.2.1
Component: ui Version: 1.2.1
Keywords: ui Cc:
Blocked by: Blocking:
Description

I used the widget on ui.jquery.com to download a jquery-ui.min.js that was generated from only selecting Draggable.

When I deploy this on my site, when the page loads I get this error:

$.ui[module] has no properties [line 8]

Since the file is minified, the first line (line 8) is 722 characters wide so I can't help more than that.

The odd thing is that the draggable is working fine on this page. Just the ugly error.

Perhaps I've misunderstood the documentation in that some other script is supposed to be loaded when all I have also loaded was jquery 1.2.1 min.

Attachments (0)
Change History (3)

Changed January 09, 2008 05:58PM UTC by peterbe comment:1

Here's possibly an explanation for the eventual solution. I checked out the latest trunk today and tried to break ui/current/tests/draggable.html and see what happens. First of all, I changed all reference to jquery/src/*.js to instead use my prefered jquery-1.2.1.min.js but it continued to work just fine. Long story short, you get the above mentioned error if you change the order so it's like this:

        <script type="text/javascript" src="../../../../jquery-1.2.1.min.js"></script>
        <script type="text/javascript" src="../../../plugins/dimensions/jquery.dimensions.js"></script>
        <script type="text/javascript" src="../ui.mouse.js"></script>
        <script type="text/javascript" src="../ui.draggable.ext.js"></script>
        <script type="text/javascript" src="../ui.draggable.js"></script>

When it should be:

        <script type="text/javascript" src="../../../../jquery-1.2.1.min.js"></script>
        <script type="text/javascript" src="../../../plugins/dimensions/jquery.dimensions.js"></script>
        <script type="text/javascript" src="../ui.mouse.js"></script>
        <script type="text/javascript" src="../ui.draggable.js"></script>
        <script type="text/javascript" src="../ui.draggable.ext.js"></script>

(note: ui.draggable.js is loaded BEFORE ui.draggable.ext.js)

Possibly the generated jquery-ui.min.js from ui.jquery.com suffers from the same error, that ext isn't loaded last?

Changed February 07, 2008 04:59PM UTC by paul comment:2

owner: pauljohn

Changed March 15, 2008 04:39PM UTC by scott.gonzal comment:3

resolution: → duplicate
status: newclosed

Same problem as #1952.