I installed modal frame module and jquery_ui(+jquery ui package) But when I go to modalframe-example page; after clicking on Items a dialog box appears for 1 or 2 seconds and then it opens the content in a new page instead of dialog box.
JavaScript and Jquery_ui are both enabled.
What's wrong?

Comments

trevorleenc’s picture

I am having a similar issue, but with blocks.

When I am viewing a page on my site, and I click on the block config link (which appears at the corner of my blocks), it opens the dialogue as a new page, instead of the modal frame.

-Trevor

bryan kennedy’s picture

Category: support » bug

I am having the exact same issue with the example modules. All of the modules in the Modal Frame Contrib package work just fine, but the modal frame example module behaves as described above.

lizuka’s picture

I got this problem on Mac osx Firefox and Safari using the Modal Frame API in a custom module calling it from a block.
what fixed it was to use the hook_init() function to call the js and css :

/**
 * Implementation of hook_init().
 */
function modal_block_init() {
  if (!empty($_COOKIE['has_js'])) {
     // Send the Modal Frame javascript for parent windows to the page.
                    modalframe_parent_js();
                    // Add the client-side behaviors.
                    drupal_add_js(drupal_get_path('module', 'modal_block') .'/modal_block.js');
                    drupal_add_css(drupal_get_path('module', 'modal_block').'/includes/modalframe.parent.css');
                    drupal_add_css(drupal_get_path('module', 'modal_block').'/includes/modalframe.child.css');
  }
}

hope this will help.

markus_petrux’s picture

Project: Modal Frame API » Modal Frame Contrib Package
Version: 6.x-1.x-dev » 6.x-1.0
Component: Miscellaneous » modalframe_blocks.module
Status: Active » Needs work

Can anyone confirm #3 works?

Lack of proper patch. Setting to "needs work". Sorry I do not have time right now to work on this. Patch is welcome. Thanks!

ryan_courtnage’s picture

I was just having the same issue and then realized I failed to read jquery_ui.module's README.txt.

#790918: modalframe does not open dialogs. (Error: self.iframe.$container.dialog is not a function)

markus_petrux’s picture

Status: Needs work » Closed (fixed)

Please, read #4. Also... hmmm... I think there are different things here. One of which is probably solved using the proper versions of jQuery/jQuery UI, and the other (#3) seems to be related to some kind of custom implementation of Modal Frame API.

I'm closing this issue because, AFAICT, there's nothing else to fix here. Rather than re-opening this issue, please create separate issues with instructions to reproducte the issue. Thanks.