5
と私はユニークな動的URLを追加取得してURLにオプションを選択 - &正規表現
&
で
&
を置き換えるオプション選択機能を作ってい置き換えます。
のjQuery
$("#pageSizeOptions").change(function() {
document.location.href = ('?ViewAction=View&ObjectID=1710211').replace(/(\?|&)(PageSize=[^&]+)(&|$)/, '$3') + $(this).val();
});
Perlのテンプレート(jqueryの)
$("#pageSizeOptions").change(function() {
document.location.href = ('#Pager.URL').replace(/(\?|&)(PageSize=[^&]+)(&|$)/, '$3') + $(this).val();
});
結果:
http://fiddle.jshell.net/RFfXs/5/show/light/?ViewAction=View&ObjectID=1710211&PageSize=40
予想される結果:
http://fiddle.jshell.net/RFfXs/5/show/light/?ViewAction=View&ObjectID=1710211&PageSize=40
私が間違っているのまさに上の誰の助けができ..