After navigating from single page to multiple page, Multiple page internal navigation is not working.

After navigating from single page to multiple page, Multiple page internal navigation is not working.

Hi,

I am using jquery-2.1.0.js and jquery.mobile-1.4.2.
I have singlePage.html. On a button click handler, I navigate it to multiplePage.html using  following code:
$( "body" ).pagecontainer( "change", "multiplePage.html", {dataUrl: "http://localhost:8080/SomeProject/index.html"});

Now In my multiplePage.html when I click on a link having internal references, it does not navigate. Nothing happens.

multiplePage.html:



<body>

<!-- Start of first page: #one -->
<div data-role="page" id="one">

<div data-role="header">
<h1>Multi-page</h1>
</div><!-- /header -->

<div role="main" class="ui-content" >
<h2>One</h2>

<p>I have an <code>id</code> of "one" on my page container. I'm first in the source order so I'm shown when the page loads.</p>

<p>This is a multi-page boilerplate template that you can copy to build your first jQuery Mobile page. This template contains multiple "page" containers inside, unlike a single page template that has just one page within it.</p>
<p>Just view the source and copy the code to get started. All the CSS and JS is linked to the jQuery CDN versions so this is super easy to set up. Remember to include a meta viewport tag in the head to set the zoom level.</p>
<p>You link to internal pages by referring to the <code>id</code> of the page you want to show. For example, to <a href="#two" >link</a> to the page with an <code>id</code> of "two", my link would have a <code>href="#two"</code> in the code.</p>

<h3>Show internal pages:</h3>
<p><a href="#two" class="ui-btn ui-shadow ui-corner-all">Show page "two"</a></p>
<p><a href="#popup" class="ui-btn ui-shadow ui-corner-all" data-rel="dialog" data-transition="pop">Show page "popup" (as a dialog)</a></p>
</div><!-- /content -->

<div data-role="footer" data-theme="a">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page one -->

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

<div data-role="header">
<h1>Two</h1>
</div><!-- /header -->

<div role="main" class="ui-content">
<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>
<p>Notice that the theme is different for this page because we've added a few <code>data-theme</code> swatch assigments here to show off how flexible it is. You can add any content or widget to these pages, but we're keeping these simple.</p>
<p><a href="#one" data-direction="reverse" class="ui-btn ui-shadow ui-corner-all ui-btn-b">Back to page "one"</a></p>

</div><!-- /content -->

<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page two -->

<!-- Start of third page: #popup -->
<div data-role="page" id="popup">

<div data-role="header" data-theme="b">
<h1>Dialog</h1>
</div><!-- /header -->

<div role="main" class="ui-content">
<h2>Popup</h2>
<p>I have an id of "popup" on my page container and only look like a dialog because the link to me had a <code>data-rel="dialog"</code> attribute which gives me this inset look and a <code>data-transition="pop"</code> attribute to change the transition to pop. Without this, I'd be styled as a normal page.</p>
<p><a href="#one" data-rel="back" class="ui-btn ui-shadow ui-corner-all ui-btn-inline ui-icon-back ui-btn-icon-left">Back to page "one"</a></p>
</div><!-- /content -->

<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page popup -->

</body>





This is the same html which is present in the jquery mobile demos, SO I assume there is no issue in it.
When I view the DOM in chrome developer tool, it shows only first page is loaded from the multiplePage.html.

So I think I am doing something wrong while navigating to multiplePage.html in my javascript code:
$( "body" ).pagecontainer( "change", "multiplePage.html", {dataUrl: "http://localhost:8080/SomeProject/index.html"});

Please guide me what is wrong here.