This question has been answered by danilocuculic. See the first response.
When I use this rule in MM_rules: (to get on page Evogallery upload tab)
mm_widget_evogallery('2','','','7');
In Firefox IE there is no problem but in Chrome I get:
ManagerManager: An error has occurred: TypeError - Cannot read property 'hasChildNodes' of undefined and all mm_rules stop working.
<?php //--------------------------------------------------------------------------------- // mm_widget_evogallery //--------------------------------------------------------------------------------- function mm_widget_evogallery($moduleid, $title='', $roles='', $templates='') { global $modx, $content, $mm_fields; $e = &$modx->Event; if (useThisRule($roles, $templates)) { //Include language file $langpath = $modx->config['base_path'] . "assets/modules/evogallery/lang/"; //First include english if (file_exists($langpath.'english.inc.php')) include $langpath.'english.inc.php' ; //Include current manager language if (file_exists($langpath.$modx->config['manager_language'].'.inc.php')) include $langpath.$modx->config['manager_language'].'.inc.php'; $title = empty($title) ? $_lang['mm_tab_name'] : $title; //TODO: Add iframe autoheight if (isset($content['id'])) $iframecontent = '<iframe id="mm_evogallery" src="'.$modx->config['site_url'].'manager/index.php?a=112&id='.$moduleid.'&onlygallery=1&action=view&content_id='.$content['id'].'" style="width:100%;height:600px;" scrolling="auto" frameborder="0"></iframe>'; else $iframecontent = '<p class="warning">'.$_lang['mm_save_required'].'</p>'; mm_createTab($title, 'evogallery', '', '', '<strong>'.$_lang['mm_manage_images'].'</strong>', '100%'); $output = "\$j('#table-evogallery').append('<tr><td>$iframecontent</td></tr>');"; } // end if $e->output($output . "\n"); // Send the output to the browser } ?>
Also when I look at my folders in the ManagerManager plugin I don't see the frametab folder.
(...)
<!--?php $output = "\$j('#table-evogallery').append('$iframecontent');";
You can try wrapping one line of code quoted above with setTimeout.
What do you mean, I don't know how to set timeout. PHP is not my language :0
Do I need to use FramedTab widget instead?