Hi Eugene

Please try this patch and let me know if it works under a frame now.

I tested it here under Firefox and IE with a frame and a popup and it worked.

Javier

Eugene Turovsky wrote:
Hi,

JFFNMS ver. 0.8.0-rc1. Tools don't work properly.
When Tools was launched from interface pop-up menu it work (but current values shown only after refreshing, may be better load values right away?)
It's loaded in new window.
When Tools was launched from performance window (t.e. inside frame with top menu), it not work. I select some checkboxes and click refresh, window show "Fetching" and that's all. In JavaScript Console I see error: "Error: parent.show is not a function".


Kind regards,
Eugene Turovsky
Inline Group


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ jffnms-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jffnms-users

-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED]

I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate

diff -x'*map' -x'*dot' -x'*ini' -x'*png' -x'*log' -x'*patch' -x'*diff' 
-x'*.mysql' -x'*.pgsql' -x'*rrd' -x'*ini-200*' -x'*.dat' -x'*.ini.old' -Nru 
jffnms-0.8.0-rc2/htdocs/admin/tools.php jffnms-0.8.0/htdocs/admin/tools.php
--- jffnms-0.8.0-rc2/htdocs/admin/tools.php     2005-02-09 18:01:31.000000000 
-0300
+++ jffnms-0.8.0/htdocs/admin/tools.php 2005-02-14 11:36:53.546074680 -0300
@@ -99,7 +99,8 @@
        die();
     }

-    $iframe = html("iframe","","NAME","", "name='NAME' OnLoad=\" if (src!='') 
parent.show(this);\"");
+    $iframe = html("iframe","","NAME","", "name='NAME' ".
+       "OnLoad=\" if (src!='') { frame = (parent.map)?parent.map:parent; 
frame.show(this); }\"");

     $refresh=0;
     adm_header("Tools");
@@ -129,10 +130,10 @@
        "       name = iframe.name;\n".
        "       if (iframe.set == true) { \n".
        "               result = 'result'+name.substr(6,name.length);\n".
-       "               document.getElementById(result).innerHTML = 
parent.frames[name].document.body.innerHTML;\n".
+       "               document.getElementById(result).innerHTML = 
this.frames[name].document.body.innerHTML;\n".
        "       } else {\n".
        "               div = 'tool'+name.substr(6,name.length);\n".
-       "               document.getElementById(div).innerHTML = 
parent.frames[name].document.body.innerHTML;\n".
+       "               document.getElementById(div).innerHTML = 
this.frames[name].document.body.innerHTML;\n".
        "               result = 'result'+name.substr(6,name.length);\n".
        "               document.getElementById(result).innerHTML = '<font 
color=green>DONE</font>'\n".
        "       }\n".

Reply via email to