I've noticed that in my modalframes certain things aren't working (e.g. openlayers maps, date popups, etc.). I first thought it was javascript stuff, but I have some jquery which hides or unhides HTML elements and that works ok...

I couldn't find any other issues relating to this, so am not sure if the problem lies with ModalFrame or the other modules. Any help in fixing this would be much appreciated!

Comments

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

Date popups work for us. For example, we have nodes with date fields configured with Date popup widget, and we can use the "Create and reference" feature in Node Relationships module, which is based on Modal Frame API. Date popup widgets work here.

I haven't tested with OpenLayers maps, however. Anyway, editing nodes with almost all kind of fields and javascript stuff work for us, including Ajax Views, File uploads, SWFUpload, "Add more" buttons for multiple value fields and multigroups, Wysiwyg, and so on.

This is because Modal Frame API uses an iframe, and that isolates the content of the child window to a separate document, independent from the parent window, while still providing methods to sync the events from one to the other.

If problems arise, the source could be related to almost anything, not just Modal Frames. It could be that other modules are not coded using Drupal javascript guidelines (Drupal behaviors), incompatibilities with jQuery or jQuery UI, or who knows... You'll have to debug the flow of execution with javascript aggregation disabled to find out what's going on. Also, without a step by step method to reproduce the issue, it's hard to guess.

markus_petrux’s picture

Try with latest dev versions, and use jQuery UI 1.7.x with jQuery 1.3.x.

Closing due to lack of further activity.

markus_petrux’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.