Joomla 2.5 と JA K2 フィルターおよび検索コンポーネントを使用しています。モジュールを変更しようとしています。カテゴリを選択すると、 という別のファイルが表示されますcustom.html
。
<script type="text/javascript">
jQuery(document).ready(function() {
//disable the dynamic select list
jQuery('#extraList').attr('disabled', 'disabled');
//hide the dynamic select list
jQuery('#extraList').hide();
WireEvents();
});
function WireEvents() {
jQuery('#category_id').change(function() {
var value = jQuery('#category_id').val();
if (value > 0) {
//show the dynamic list
jQuery('#extraList').removeAttr('disabled');
jQuery('#extraList').show();
jQuery.get("<?php dirname(__FILE__) . '/' . 'custom.html'; ?>",
function(data) {
jQuery('#outPutDiv').html(data);
}
);
} else {
//disable the dynamic list
jQuery('#extraList').attr('disabled', 'disabled');
//hide the dynamic list
jQuery('#extraList').hide();
}
});
}
</script>
問題は、返す代わりにcustom.html
ホームページを返すことですか? どうすれば修正できますか?これはいくつかのスクリーンショットです: