0
我有這樣的代碼工作..重定向網頁不能在IE
jQuery('#button_search').click(function(event){
event.preventDefault();
var propertyUrl = getBaseURL()+'public/Property/view-property';
var locationUrl = getBaseURL()+'public/Property/view-location';
if($('#propl').is(':checked'))
{
var selectedLoc = jQuery('#select_location').val();
if(selectedLoc == 'default'){
alert('Please Select Location');
}else{
$().redirect(locationUrl, {'arg1': 'value1', 'arg2': 'value2'});
}
}
else if($('#propn').is(':checked'))
{
var selectedProp = jQuery('#select_properties').val();
if(selectedProp == 'default'){
alert('Please Select Property');
}else{
$().redirect(propertyUrl, {'propertyId': selectedProp});
}
}
else{
alert('Select property or location');
}
});
我使用自定義的按鈕,我點擊了event..when的持有人按鈕後,我選擇某一個項目它應該重定向到其他頁面..它在Firefox,Chrome和Opera中運行良好,但它在IE中不起作用。可能是什麼問題呢?
感謝您的回覆..我使用zend框架..該按鈕應該把用戶帶到其他頁面對應於用戶搜索請求..使用jquery.redirect.js我的重定向功能,因爲我需要放置一個參數來過濾結果..它可以在除IE以外的其他瀏覽器中使用。該按鈕在IE中不起作用。 – cfz