I have the following AJAX request.

$(document).ready(function() {
        var iconLoading = $(' mini.gif ');
        var pluginLoaded = $('Plugin ready');
        
        var requestScript = function() {
                $(iconLoading).insertAfter('#my_button');
                        $.getScript('http://www.domain.com/jquery.corner.js', 
function() {
                        $(iconLoadind).hide();
                        $(pluginLoaded).insertAfter('#my_button')
                        .css({background: '#ffc', padding:'3px 5px'})
                        .fadeOut(3000);
        // do something using the just loaded plugin
        });
        });
        };
                $('#my_button').bind('click', requestScript);
})

Suppose the requested script is unavailable.
How do I set a time interval in order to abort the request? 


-----
MaurĂ­cio Samy Silva
-- 
View this message in context: 
http://www.nabble.com/aborting-a-%24.getScript%28%29-request-tp22703190s27240p22703190.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to