Detecting div load

Detecting div load

I am using the query mobile multipage template like the code below.  I am trying to populate page two with content once it loads.  What event should I use to do this?  I would like it attached when it loads the second page.  I currently have the populate functions attached to the link on page 1.  I have tried focus but it doesnt seem to have the effect I want.  

  1. <div data-role="page" id="one">

  2. <div data-role="content" >
  3. <h3>Show internal pages:</h3>
  4. <p><a href="#two" data-role="button">Show page "two"</a></p>
  5. </div><!-- /content -->

  6. </div><!-- /page one -->


  7. <!-- Start of second page: #two -->
  8. <div data-role="page" id="two" data-theme="a">

  9. <div data-role="content" data-theme="a">
  10. <h2>Two</h2>
  11. <p>I have an id of "two" on my page container. I'm the second page container in this multi-page template.</p>
  12. </div><!-- /content -->

  13. </div><!-- /page two -->