0
我遇到了一些奇怪的問題。 jQuery.post只在IE中失敗,其他瀏覽器獲取信息。IE沒有通過jQuery.post接收數據
jQuery.post(
'index.php',
{
'option' : 'com_expautos',
'controller': 'admanager',
//'dataType' : 'text',
'task' : 'get_'+name,
'id' : parent.val(),
},
function(data) {
//alert(data);
item.html(data);
item.attr('disabled', '');
}
);
PHP
function get_markid() {
$id = JRequest::getInt('id', 0);
$db = &JFactory::getDBO();
$items = array();
$null_item = JHTML::_('select.option', '', JText::_('EXPA_SELECT_MARK'), 'id', 'name');
if ($id) {
$sql = "SELECT id, name
FROM #__expautos_mark
WHERE catid = '".$id."' AND published = '1'
ORDER BY name";
$db->setQuery($sql);
$items = $db->loadObjectList();
}
array_unshift($items, $null_item);
echo JHTML::_('select.options', $items, 'id', 'name');
$mainframe = &JFactory::getApplication();
$mainframe->close();
}
jQuery.get失敗了。 。 我在絕望:(
什麼都沒有改變......在HTTP的問題://高速公路。 com.ua - >左選擇塊。 – ZeiN