execute jquery function from another page?
<p>on my page I update a page dynamically, populated by the database. You choose the state and city, and he tells you the stores available in town. Some cities have a pretty extensive list of stores, so I need a scroll bar. I am using the mCustomScrollbar.</p>

<p>For it to work so I call this script:</p>

<pre><code>&lt;script&gt;
    (function($){
        $(window).load(function(){
            $("#exibe_lojas").mCustomScrollbar({
                scrollButtons:{
                    enable:true
                },
                autoDraggerLength: false
            });
        });
    })(jQuery);
&lt;/script&gt;
</code></pre>

<p>But, as I still do not have content, I have to call it after loading my data, and who does this is another javascript file, which makes the query in the database, and displays the result in a div. In view of the result I'm doing this:</p>

<pre><code>function stateChanged()
{ 
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    { 
        document.getElementById("exibe_cidade").innerHTML=xmlHttp.responseText
    }
}
</code></pre>

<p>I think it is here where I put the function of my scroll bar, but as it is in another file; i'm not knowing how to call it. Can you help?</p>
