最近、ネイティブ Android アプリ (phoneGap を使用) に jQuery Mobile を使い始めました。
これは私の index.html です:
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/rtl.jquery.mobile-1.2.0.min.css" />
<link rel="stylesheet" href="css/style.css">
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="js/rtl.jquery.mobile-1.2.0.min.js"></script>
<title>Untitled Document</title>
</head>
<body>
<div class="all_app_position" data-role="homePage">
<div data-role="header" class="header">
header
</div>
<div class="middle">
Middle contnet
</div>
<div class="footer">
footer content
</div>
</div>
</body>
</html>
2 番目の html ファイルからコンテンツ (以下) を中央の div にインポートしたいと考えています。
<div data-role="page" id="about">
<div data-role="header"><h1>Page 2</h1></div>
<div data-role="content"><p id="deviceProperties">Loading device properties...</p></div>
<div data-role="footer"><h4>Footer</h4></div>
</div>
どうすればできますか?いろいろな方法を試しましたが、できませんでした。
リンクがAjaxを使用することは私にとって重要です。
私の英語でごめんなさい
ありがとう :)