replace text information
<p>I would like to replace text information in my (#loader) div. I am using two functions show_info() and replace_info().</p>

<pre><code>$('#measure_submit').click(function(){
        show_info("Sending params ...");
        get_data();
    });

function get_data(){
    $.ajax({
            url: '/controller/view',
            data : { ... },
            type: 'POST',
            typedata: 'text',

            success: function(data){
                hide_info();
            },
            beforeSend : function(data) {
                replace_info("Loading data ...");
            }
        });

function show_info(string){
        $('#loader').text(string);
        $('#info_box').fadeIn(2000);
    }

function replace_info(string){
    $('#loader').fadeOut(2000);
    $('#loader').text(string);
    $('#loader').fadeIn(2000);

}
</code></pre>

<p>But I am able to see only the text "Loading data ...". The "Sending params ..." is totally skipped even if there is fadeOut(2000).</p>

<p>I was even trying setTimeout(replace_info("Loading data ..."),4000); but no LUCK.</p>

<p>Anyone knows where is the trouble?
Any help is much appreacited.</p>

<p>Thanks Peter</p>
