Skip to main content

Search and Top Navigation

#3973 closed bug (worksforme)

Opened January 28, 2009 07:34PM UTC

Closed February 01, 2009 02:35AM UTC

Dialog plugin doesn't work when jQuery UI 1.6 and 1.5 are loaded on the same page.

Reported by: metayii Owned by:
Priority: minor Milestone: 1.7
Component: ui.dialog Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:
Description

jQuery UI 1.5 and 1.6rc5 were loaded by the same page, Dialog stopped working. Details:

With this HTML markup:

<div title="Dialogo hola" id="dialogo">Hola

</div>

And this js code (it doesn't matter where do I place it, it throws the

same error):

$('#dialogo').dialog();

I get:

$[namespace][name] is not a constructor

jquery-ui-personalized-1.6rc5.js

Line 272

Line 272 is:

$.data(this, name, new $[namespace][name](this, options)));

The solution was not to include both versions. It would be nice to have an automatic check.

Attachments (1)
  • ui-versions.html (1.6 KB) - added by scottgonzalez February 01, 2009 02:34AM UTC.

    demo showing 1.5 and 1.6 working together

Change History (1)

Changed February 01, 2009 02:35AM UTC by scottgonzalez comment:1

milestone: TBD1.6
resolution: → worksforme
status: newclosed

Works for me, see attached file.