henk wrote:
> Update of /var/cvs/contributions/natmm/templates/editors
> In directory james.mmbase.org:/tmp/cvs-serv25058
> 
> Modified Files:
>       topmenu.jsp 
> Added Files:
>       refresh.jsp 
> Log Message:
> Moved refresh functionality to iframe, so user doesn't loose topmenu when 
> server does not respond to call for refresh


Why don't you move it to settings.jsp of de editwizards itself? Then
everybody will profit from it.

See also wish #6691 in the bugtracker. You would have solved it then.


> diff -u -b -r1.23 -r1.24
> --- topmenu.jsp       25 Sep 2006 19:25:17 -0000      1.23
> +++ topmenu.jsp       27 Sep 2006 13:47:58 -0000      1.24
> @@ -30,29 +30,6 @@
> -          // *** refresh every X minutes , avoid session timeout ***
> -               function check() {
> -                       var request = false;
> -                       if ( window.XMLHttpRequest ) {
> -                          request = new window.XMLHttpRequest();
> -                       } else if ( window.ActiveXObject ) {
> -                          request = new window.ActiveXObject( 
> "Microsoft.XMLHTTP" );
> -                       } else {
> -                          throw "UNSUPPORTED PLATFORM";
> -                       }
> -                 if (!request) {
> -              throw "ERROR";
> -        }
> -        request.open( "HEAD", window.location.href, true ); 
> -        request.onreadystatechange = function() {
> -          if ( request.readyState == 4 && request.status == 200) {
> -            window.location.reload();
> -          }
> -        }
> -        request.send( null );
> -               }

I wonder though if check() should not contain a new setTimeout call?


MIchiel



-- 
Michiel Meeuwissen                  mihxil'
Peperbus 107 MediaPark H'sum          []()
+31 (0)35 6772979         nl_NL eo_XX en_US
_______________________________________________
Developers mailing list
Developers@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to