メソッド名はchangepage index2.htmlです...このページ内でデータベースを呼び出してリストビューを動的に入力したいのですが、ページを変更するだけで関数を呼び出すことができません..
メインページには、次のスクリプトがあります。
$(document).live( 'pageinit',function(event){
$("#changePageButton").click(function() {
$.mobile.changePage("index2.html", { transition: 'slideup'});
});
index2 で
$(document).live( 'pageinit',function(event){
alert("OK");
});
ただし、アラートは表示されません