Hello,

i think the implementation is pretty easy. It would be great if the user can provide a switch to let the Drupal.modalFrame.load method load the URL using post. Of couse we would need to add a data options, so that we can also pass data here. This is especially usefull when using modalframe with drupal FAPI, where you want to initialize the form using that method. You cant initiaize before, as the values you initialize with are computed by JS, then passed to the dialog.

Thank you

Comments

EugenMayer’s picture

Well i used this implementation, but it will not work. While the content is loaded, it is hidden ( display:none). Any ideas?

Drupal.modalFrame.load = function(url) .. below

  if(self.options.customDialogOptions.loadPost == true) {
    $.post(
            url,
            self.options.customDialogOptions.postData,
            function(data,textStatus) {
              doc.write(data);
            },     
            'html');
  }
  else {
    doc.location.replace(url);
  }
EugenMayer’s picture

Status: Active » Closed (works as designed)

Well yeah its obvious what is wrong. As i inject the document using javascript, its not loded and therefor all those javascript includes are not working..including the modal_frame_child_js()..

So i guess this can be resolved due to browser limitations. Guess i have to go a huge workarround using the cache.

Thanks anyway