This particular code in not work IE 6/7 but works in firefox.
Can't get a
demo up right now but any suggestions are welcomed.
<script type="text/javascript">
function ie_fix()
{
//update filters
$('#select_destination_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();
$('#select_travel_week_filter').empty();
$('#select_hotel_filter').empty();
$('#select_travel_week_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});
$('#select_hotel_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});
});
$('#select_travel_week_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();
$('#select_destination_filter').empty();
$('#select_hotel_filter').empty();
$('#select_destination_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'destination',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});
$('#select_hotel_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});
});
$('#select_hotel_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();
$('#select_travel_week_filter').empty();
$('#select_destination_filter').empty();
$('#select_travel_week_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'hotel'
});
$('#select_destination_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'destination',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'hotel'
});
});
};
$(document).ready(function()
{
setTimeout(ie_fix, 5000);
});
</script>