1

I get the error in this questions's title from this page. It isn't a page users see. It is a test page I am working on and I copied the general template from here.

For some reason the latter doesn't get this error and the former does. I checked and I am pretty sure I am importing all the same libraries, so why does the new page give this error?

Any ideas?

2
  • I've seen a lot of questions asked about Problemio. Ironically, it sounds like you're having a lot of issues developing your site :-( Commented Dec 10, 2011 at 2:49
  • @JamWaffles :) well, I am the only developer doing front-end and back-end and database work...and I have to market this thing too. So I can't afford to be stuck on any one thing for too long. As it is I am putting nearly all my waking time into it :) Commented Dec 10, 2011 at 2:56

2 Answers 2

5

The problem is that your index_new includes

http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js

Which overwrites/interferes with the normal .dialog method.

Sign up to request clarification or add additional context in comments.

2 Comments

thanks! Is there a way to make these libraries play nice together? I'd like to try the jQuery Tooltip library.
@Genadinik I'm afraid I don't know. You could try including the tooltip plugin before jQuery UI.
1

You have this block of code:

var $dialog = $('#loginpopup')
  .dialog({
    autoOpen: false,
    title: 'Login Dialog'
  });

$('#loginpopup') is returning an HTML element (a <div/>, specifically), and these don't have any build-in methods called dialog.

5 Comments

his standard libraries do define a dialog method. It's the additional include that is removing it.
@ziesemer not sure I understand. My confusion is that these 2 pages have similar JS imported. Why does one have it and the other not have that error? :)
@Shad you mean the tooltip library that is causing this problem?
oh yeah OMG it was the tooltip library. Wouldn't have thought that jQuery libraries would conflict each other. Thanks!!
@Genadinik - See Shad's answer (+1 for it from me).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.