Your second document has two pages in it. That won't work, because
when jQuery Mobile uses Ajax to load a document, it only load the FIRST
page found in the document.
Either:
- put ALL of your pages in ONE document (which I do not recommend)
- put each page in a separate document
Also, you should not use $(document).ready(),
.load(), etc. in
JQM projects. Use JQM page or pagecontainer events.