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.
- <div data-role="page" id="one">
- <div data-role="content" >
- <h3>Show internal pages:</h3>
- <p><a href="#two" data-role="button">Show page "two"</a></p>
- </div><!-- /content -->
- </div><!-- /page one -->
- <!-- Start of second page: #two -->
- <div data-role="page" id="two" data-theme="a">
- <div data-role="content" data-theme="a">
- <h2>Two</h2>
- <p>I have an id of "two" on my page container. I'm the second page container in this multi-page template.</p>
- </div><!-- /content -->
- </div><!-- /page two -->