Loading an element. After that loading another element into the loaded element
<p>i built a website where my frame, with the main menue and the banner, is always exisiting.</p>

<p>I created a div element, in which i can load everything i want dynamically. </p>

<p>But now i have a problem. If somebody clicks a link, i want to load a html document into my div-frame. When this has been done, a another html document should be loaded into a part of the new loaded html document.</p>

<p>The rask is now, to check when the first div element has been loaded and load something into this element.</p>

<p><strong>An Example:</strong></p>

<pre><code>$("#examplelink").click(function() 
{

$("#mainsite").load("firstlowerside.html");

$("#firstlowerside_div").load("secondlowerside.html");

});
</code></pre>

<p>Javascript is ignoring the command line:
    $("#firstlowerside_div").load("secondlowerside.html")
, because the "firstlowerside.html" isnt already exisiting at this thime.</p>

<p>Can somebody tell my how i can check is the document has been loaded into my div and start executing the second command after this?</p>
