I have code similar to that listed below. My Issue is that the
loading_box is not displayed on the subsequent calls. Any suggestions
on how to get it to display for the subsequent calls.


<script type="text/javascript">
    var loaded = false;
    function startLoading() {
        loaded = false;
        window.setTimeout('showLoadingImage()', 500 );
    }
    function showLoadingImage() {
        var el = document.getElementById("loading_box");
        if (el && !loaded) {
            el.innerHTML = '<img src="images/ajax-loader.gif">';
            new Effect.Appear( 'loading_box' );
        }
    }
    function stopLoading() {
        Element.hide('loading_box');
        loaded = true;
    }
    Ajax.Responders.register({
        onCreate : startLoading,
        onComplete : stopLoading
    });
</script>

<script>
    new Ajax.Updater( 'location_1', 'script_1', { onComplete:
function(request){ new Ajax.Updater( 'location_2', 'script_2', {
onComplete: function(request){ new Ajax.Updater( 'location_3',
'script_3' }) }}) }})</script>
-- 
Edward Grant
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to