型:文字列またはオブジェクト
次のいずれかの方法で、遷移先のページを指定します。
型:オブジェクト
ページ遷移に関わるさまざまなオプションを指定します。
$.mobile.changePage("target.html");
$.mobile.changePage("target.html",{ transition:"pop", changeHash:false });
var $pg = "ページの内容..."; $.mobile.pageContainer.append($pg); $.mobile.changePage($("#target"),{ dataUrl:"/target.html" });
型:文字列
読み込むURLを指定します。絶対パス、相対パスのいずれでも指定可能です。
型:オブジェクト
ページ読み込みに関わるさまざまなオプションを指定します。
$.mobile.loadPage("target.html");
$.mobile.loadPage("target.html",function(){ type:"post", data:$("for#search").serialize(), reloadPage:true });
$.mobile.showPageLoadingMsg();
$.mobile.hidePageLoadingMsg();
型:boolean
省略時の値:false
通常、固定ツールバーは100ミリ秒かけてフェードインで表示されます。この引数にfalseを指定すると、そうした効果なしに即座に表示されます。
$.mobile.fixedToolbars.show();
$.mobile.fixedToolbars.show(true);
型:boolean
省略時の値:false
通常、固定ツールバーは100ミリ秒かけてフェードアウトで表示されます。この引数にfalseを指定すると、そうした効果なしに即座に非表示になります。
$.mobile.fixedToolbars.hide();
$.mobile.fixedToolbars.hide(true);
型:文字列
パースしたいURL文字列を指定します。
$.mobile.path.parseUrl("http://example.com/search?q=keywords");
型:文字列
絶対パス化したい、相対パスです。
型:文字列
相対パスの起点となる絶対パスです。
var path = $.mobile.path.makePathAbsolute("d/target.html", "/a/b/c/example.html");
型:文字列
絶対URL化したい、相対URLです。
型:文字列
相対URLの起点となる絶対URLです。
var path = $.mobile.path.makeUrlAbsolute("target.html", "http://example.com/");
型:文字列
比較するURLその1です。
型:文字列
比較するURLその2です。
var path = $.mobile.path.makeUrlAbsolute("target.html", "http://example.com/");
型:文字列
判別対象のURLです。
var isRel = $.mobile.path.isRelativeUrl("http://example.com/target.html");
型:文字列
判別対象のURLです。
var isRel = $.mobile.path.isAbsoluteUrl("http://example.com/target.html");
型:数値
省略時の値:0
スクロール先のY座標です。
$.mobile.silentScroll(450);