IE不';t通过jQuery.post接收数据
我遇到了一些奇怪的问题。jQuery.post仅在IE中以静默方式失败,其他浏览器获取信息IE不';t通过jQuery.post接收数据,jquery,internet-explorer,Jquery,Internet Explorer,我遇到了一些奇怪的问题。jQuery.post仅在IE中以静默方式失败,其他浏览器获取信息 jQuery.post( 'index.php', { 'option' : 'com_expautos', 'controller': 'admanager', //'dataType' : 'text', 'task' : 'get_'+name,
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
jQuery.get也失败了。
我绝望了:({
“选项”:“com_expautos”,
“控制器”:“admanager”,
//“数据类型”:“文本”,
“任务”:“获取”+名称,
'id':parent.val(),//什么都没有改变,//selects的->左块上的问题。
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();
}
{
'option' : 'com_expautos',
'controller': 'admanager',
//'dataType' : 'text',
'task' : 'get_'+name,
'id' : parent.val(), // <--
}