I just installed the following along with noderelationships 6.x-1.6:

Modal Frame API 6.x-1.7

I already had the following installed:

jQuery UI 6.x-1.3
jQuery Update 6.x-2.0-alpha1
Content 6.x-3.x-dev
Views 6.x-3.0-alpha3

When I set up the relationships on a content type with node references and create a new node, I am seeing the autocomplete field, along with all the "extras" buttons I enabled - View, Edit, Search, and Create. However, the Search and Create buttons are linked to "javascript:void(0);" and do nothing. When I select a node reference via the autocomplete, the View and Edit buttons become active as expected, but the Edit button is also linked to "javascript:void(0);" - yet the View button has a good link and works as expected.

I checked my jQuery + UI versions in status (as I've seen several posts flying back and forth regarding the version differences) and they are:

jQuery UI 1.8.1
jQuery Update 1.3.2

I have also tried this with the 6.x-1.x-dev version of noderelationships with no better results. Any idea what might be causing this?

Comments

markus_petrux’s picture

Category: bug » support
Status: Active » Fixed

jQuery UI 1.8.1 needs jQuery 1.4, which is not completely ready for Drupal. See jQuery Update project for further information.

Try with jQuery 1.3.x and jQuery UI 1.7.x

yan’s picture

Category: support » bug
Status: Fixed » Active

I'm having the same problem with jQuery UI 6.x-1.3/1.7.3 and jQuery Update 1.2.6. When I click on one of the buttons, a window opens and loads, but nothing ever happens. Clicking on the 'X' takes me to the top of the page but nothing is clickable anymore and the pop up window stays open.

markus_petrux’s picture

Status: Active » Fixed

jQuery UI 1.7.x is NOT compatible with jQuery 1.2.6.

Rob_Feature’s picture

Status: Fixed » Active

Ok, reopening because I'm not sure what versions of everything ARE working (Im having the same problem being described).

I'm using:

  • Node Relationships 6.x-1.6
  • jQuery Update 6.x-2.0-alpha1 (jquery 1.3.2)
  • jQuery UI 6.x-1.3 (jquery ui 1.7.3)
  • Modal Frame 6.x-1.7
yan’s picture

I'm sorry markus_petrux, but I'm confused. I am using jQuery UI 6.x-1.3. On the status report page it says "jQuery UI 1.7.3". Additionally I have jQuery Update 6.x-1.1. But it didn't work neither before I installed jQuery Update.

Rob_Feature’s picture

Yan: Note that there's a difference between the version of the drupal module (for jquery ui and jquery update) and the version of the library you're using. If you look at my post you can see that jquery update module is version 6.x-2.0-alpha1 and it's using the jquery 1.3.2 library.

It's really a question of which libraries are working together with node relationships, I believe...and that's what I'm trying to find some clarity on. Hope that makes sense.

markus_petrux’s picture

Title: Modal windows not opening for edit, search or create » Confusion related to which jQuery libraries work together
Category: bug » support
Status: Active » Fixed

Let see if the following helps:

  • Node Relationships module requires Modal Frame API. Node Relationships and Modal Frame API require the external jQuery UI library 1.7+.
  • In Drupal, to use the jQuery UI library, you need to install the jQuery UI module (latest stable version, whichever it is), then install jQuery UI library 1.7+.
  • The jQuery UI library 1.7+ requires the jQuery library 1.3.x. It does NOT work with other versions. As a reminder: each major version of the jQuery UI library works with one particular major version of the jQuery library.
  • Current versions of Drupal 6 ship with jQuery library 1.2.6. This is compatible with jQuery UI library 1.6+, but NOT with jQuery UI library 1.7+.
  • To upgrade the jQuery library in Drupal, we use the jQuery Update module. However, the recommended version of jQuery Update module ships with the same exact jQuery library as Drupal 6 core, that's jQuery library 1.2.6. So, we need to use jQuery Update 6.x-2.x, which is currently beta and ships with jQuery library 1.3.x.

If still in doubt, please open issues to the jQuery UI and/or jQuery Update modules. I'm afraid these modules need better documentation so that all the modules that require them do not have to repeat the same thing over and over. :(

Rob_Feature’s picture

Title: Confusion related to which jQuery libraries work together » Modal windows not opening for edit, search, or create
Status: Fixed » Active

markus:
Thanks for clearly stating which libraries should be used. However, if you take a look at my comment #4 above you'll see that I'm doing exactly what you suggest and using the exact versions you say should work. Yet, the popup still isn't working.

Reopening this issue and retitling it to see if we can find the cause. Thoughts on what may be happening if all the proper libraries are being used, yet the popup still is empty?

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

Oh, I read #5 and #6, but missed #4. Sorry for that.

Well, it should work. It does for me, also on the sites where I've seen this installed, and I guess it does for a lot of other sites out there, so it seems your installation has something particular that breaks this module. Once verified the versions are ok, this needs to be investigated on site. Options: a) debugging, b) fresh installation + minimal requirements to run Node Relationships and try, works? ok, so keep adding stuff or combine modules until you can see which one causes the problem.

Rob_Feature’s picture

Yup, it seems you're correct...something specific is conflicting in my install. I'm going to keep this issue at it's current status until I figure out what exactly is conflicting. Then I'll report back and close the issue.

yan’s picture

Thanks markus_petrux, great explanation in #7. I tried 6.x-2.0-alpha1 but it broke my site.. I'll try again in another occasion.

dereks8443’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I'm getting the same thing on two fresh installs of Drupal. The lightbox-styled window opens, and the "loading" spinner GIF is there, but then it just sits there forever. Closing the "window" by clicking the X just jumps to the top of the page... the page itself is completely unresponsive. I have been testing this with my simple CCK types "Contact" and "Customer", where "Customer" has a node reference to zero or more "Contacts".

Here are my versions:

OS: Ubuntu 10.04
PHP Version (from dpkg): 5.3.2-1ubuntu4.2

Installed Drupal using the following downloads (NOT using dpkg):

drupal-6.17.tar.gz
views-6.x-2.11.tar.gz
cck-6.x-2.7.tar.gz
jquery_update-6.x-1.1.tar.gz
jquery_ui-6.x-1.3.tar.gz
ALSO DOWNLOADED FROM GOOGLE: jquery-ui-1.7.3.zip (unzipped into modules/jquery_ui/jquery.ui)

If I turn on my Error Console in Firefox, then I get these two errors when I click on the "+" button:

Error: c.Event is not a function
Source File: https://myserver/drupal-d2/sites/all/modules/jquery_ui/jquery.ui/ui/mini...
Line: 10

I believe that error message is the root cause of the failure. I noted that same error has shown up before: http://drupal.org/node/638252 and the solution was to update the "Jquery Update" module to jquery_update-6.x-2.x-dev.tar.gz.

...

Ok, so I just updated to jquery_update-6.x-2.x-dev.tar.gz and it fixed it! I now get the "Add New Contact" form when I click on the "+". w00t!

REPEAT: jquery_update-6.x-1.1.tar.gz DOES NOT WORK. USE jquery_update-6.x-2.x-dev.tar.gz INSTEAD.

I also needed to clear all my caches (using the Admin Menu->Flush all caches).

Now that I know what the problem was, I can see on the Node Relationships module that it specifically recommends jquery_update-6.x-2.x-dev.tar.gz. I don't know how I missed that when doing my Drupal install, I'm usually very careful about R'ing TFM.

yan and Rob_Feature: Don't use 6.x-2.0-alpha1 of JQuery Update. Use jquery_update-6.x-2.x-dev.tar.gz instead (the -dev release!).

yan’s picture

Ok, the problem really is the jquery version. I just installed jquery_update-6.x-2.x-dev.tar.gz and that made the Modal window open correctly. Actually, alpa-1 also works. But I'm also using lightbox2 on my site, which is not (yet) compatible with jquery_update 6.x-2.x... With that version enabled, all the links on my site try to open in a lightbox. This has been solved in Lightbox's dev-version and will be in Lightbox2 6.x-1.10. These are the related issues:

In lightbox's issue queue: #411162: Problem with 'automatic image URL re-formatting' with jQuery 1.3.x
In jquery_update's issue queue: #446862: Conflict with Lightbox2 6.x-1.9

BenStallings’s picture

I'm sad to say I'm having the exact same issue -- running jQuery UI 1.7.3 and jQuery Update 1.3.2 -- but I'm not running Lightbox, so there's apparently another conflict. I'll copy my site and start disabling stuff and report back... :-(

This is a terrific module and exactly what I need, if I can just get it working!!

BenStallings’s picture

After some experimentation, I found that my custom theme (based on Marvin) is the problem. Specifically, jquery_update_preprocess_page() is not running consistently when the custom theme is enabled.

Related issue: http://drupal.org/node/786938

I tried checking the theme registry and modifying jquery_update.module to add jquery_update_preprocess_page as a preprocess function for the maintenance_page, update_page, and admin_page parts of the registry as well as just 'page', but it seems that *none* of these preprocess functions are being run on the node creation form. I don't understand the theme registry enough to know why not.

Since I don't have all week to work on this, I'm just going to replace my default jquery.js with the updated one for now, and when a Drupal update overwrites it I'll revisit the problem... meantime suggestions are welcome!

iratau’s picture

I was experiencing the same problem. The modal window would open but just spin and spin with nothing loading in it. Changing to jquery_update jquery_update-6.x-2.x-dev fixed the problem

BenStallings’s picture

Status: Closed (fixed) » Active

I'm reopening this issue to try to attract more attention to it... just to clarify, I was running the most recent jQuery Update dev in #14 & #15 above; the mismatched version numbers are confusing. Any help in figuring out how to get jquery_update_preprocess_page() to execute on the node creation form would be greatly appreciated... where does it need to be listed in the theme registry in order to run at that time? Am I even on the right track? Many thanks in advance.

markus_petrux’s picture

Status: Active » Closed (fixed)

@BenStallings Yours seems to be an issue with jQuery Update module, so you should check on that issues queue.

BenStallings’s picture

OK, for what it's worth this bug is "by design" in jQuery Update: http://drupal.org/node/786938

Melissamcewen’s picture

Switching to UI 1.7.2 (I had 1.7.3) and the dev version of modal frame fixed this for me.

chunty’s picture

Switching the Jquery update module for the 6.x-2.x version fixed this for me as well

C

BeatnikDude’s picture

Modal window opens, shows spinner and does not load. Using:
• jQuery UI 6.x-1.4 module
- w/ jquery 1.7.3 lib
• jQuery Update 6.x-1.1 module

I tried the jQuery Update 6.x-2.x version and now my modal windows work. Using:
• jQuery UI 6.x-1.4 module
- w/ jquery 1.7.3 lib
• jQuery Update 6.x-2.x module

thommyboy’s picture

can confirm that everything works fine after upgrading jQuery Update from 6.x-2.0-alpha1 to 6.x-2.x-dev (april 20. 2011)