Not sure if my problem is the javascript function, or how i have the
PeriodicalExecuter set up. The action works, the element is updated
with new info, but the old contents are not removed.

map.addOverlay(weather_table_one);
         // action when map is moved
        function replace_weather_table(){
             map.removeOverlay(weather_table_one);
             zoomy = map.getZoom();
             new Ajax.Request('/pivrain2/update_weather_tables', {
                parameters: {
                    zoom: zoomy
                }
             })
         };

         new PeriodicalExecuter(replace_weather_table, 30);

would appreciate any help

skrite

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to