Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IE不';t通过jQuery.post接收数据_Jquery_Internet Explorer - Fatal编程技术网

IE不';t通过jQuery.post接收数据

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仅在IE中以静默方式失败,其他浏览器获取信息

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(), // <--
        }