Hi all, and thanks for this project. I'm working on a site which does a heavy use of references, and your module is a bless.

Unfortunately, it worked at some time of my development, but not anymore. I have a hard time wondering what I changed.

According to Firebug, there isn't even an Ajax request emitted when I click the 'Search and reference' button. The modal frame opens, the loading icon starts spinning, but nothing ever arrives in the window.

My question is the following : could you give me a clue about where I should look and what step I could take to chase the source of the problem ? I searched the issue queue but found none which could be related to mine.

I'm using the following modules :

- Jquery 6.x-1.3
- Jquery update 6.x-2.x-dev
- Jquery UI 6.x-1.3
- CCK 6.x-3.x-dev
- Views 6.x-2.8

Thanks for your time.

Comments

Countzero’s picture

Title: Modal windows loads forever » Modal window loads forever
markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

1) While we see the loading animation, it does not mean we have received a response from the server. It just means the iframe is hidden. This could happen for a myriad of reasons.

If you haven't already try to upgrade Modal Frame API to the latest stable release. It contains better code to detect if an iframe has been loaded without the javascript file for the child document. With this, there are more chances to see the contents of the iframe. Maybe there's something odd there.

Also, you may try looking at the Drupal/Apache logs to see if the child document failed for some reason.

2) I'm not sure to understand what you mean by "Jquery 6.x-1.3". Please, make sure your version of jQuery is compatible with your version of jQuery UI. I mean the javascript libraries. Drupal 6 ships with jQuery 1.2.6, which is compatible with jQuery UI 1.6.x. If you want/need jQuery UI 1.7.x, then you need jquery_update module too, which replaces the jQuery library in Drupal 6 core with a new one, though make sure you install jQuery Update 6.x-2.x.

Countzero’s picture

I'm sorry for the ambiguous line with jquery 6-x-1.3. Discard it.

Modal Frame API is the latest version : 6.x-1.6.

Jquery Update module is the dev version, giving Jquery 1.3.2.
Jquery UI module is 6.x-1.3, which gives Jquery UI 1.6.

Could it be a problem between UI 1.6 and Jquery 1.3.2 ?

markus_petrux’s picture

Yes, that could be it.

Countzero’s picture

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

Well, that was it. I'm sorry for having wasted your time. I thought ascending compatibility was assured with any version of jquery.

Your module wasn't to blame at all.

Thank you very much.

aleksey.tk’s picture

Status: Closed (fixed) » Active

This is a bug actually, and it should be fixed. I'm getting the same problem with the same modules and versions of jquery and jquery.ui.

The problem in this case is not complex. You cannot use jQuery 1.3.x and jQuery UI 1.6.x here, and it can easily be seen in documentation of Modalframe API.

So what i did:
1. Clean Drupal install with CCK
2. Installation of Noderelationships 1.5, Modalframe 1.6, jQuery Update 2.x (provides jQuery 1.3.2 at the moment), jQuery UI 1.3 (and dowloaded jQuery UI 1.7.2 from the jQuery UI site)
3. Added nodereference field to the story node type
4. Configured Noderelationships to be active with this the new nodererence field
5. On the node add page i see the buttons to view, search and add near nodereference but none of them are working and i'm getting this javascript error in firebug:

self.iframe.$container.dialog is not a function
self.iframe.$container.dialog(dialogOptions);

Do you have any thoughts on this issue? If you need more information i will provide it.

aleksey.tk’s picture

Status: Active » Closed (fixed)

Sorry for misleading. The problem exist if you download jQuery UI 1.7.2 from the main page http://jqueryui.com/download (which is actually a development bundle).

When i replaced it with 1.7.2 version from http://code.google.com/p/jquery-ui/downloads/list everything works fine.

doublejosh’s picture

I also solved this problem with jQueryUI 1.7.2 while using ModalFrame 6.x-1.7 and NodeRelationships 6.x-1.6

However other things, like CCK Fieldgroup Tabs rely on the older version :(