异常 nsresult: “0x805e0006 (<unknown>)"在 yii 中使用 x-editable 提交更改时的位置 [英] Exception nsresult: "0x805e0006 (<unknown>)" location when submitting changes using x-editable in yii

查看:17
本文介绍了异常 nsresult: “0x805e0006 (<unknown>)"在 yii 中使用 x-editable 提交更改时的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试确定 x-editable 中的值时出现以下异常.[异常... "" nsresult: "0x805e0006 ()" location: "JS frame :: :: .send :: line 8400" data: no]

I am getting the following exception when trying to ok the value in x-editable. [Exception... "" nsresult: "0x805e0006 ()" location: "JS frame :: :: .send :: line 8400" data: no]

    View Code:

<?php $this->widget('bootstrap.widgets.TbGridView', array(
'id' => 'subjectgrid',
'itemsCssClass' => 'table-bordered items',
'dataProvider' => new CActiveDataProvider('Examschedule',array(
'criteria'=>array('condition'=>"examcode=:newexam and sessioncode=:sessioncode",
'params'=>array(':newexam'=>$examcode, ':sessioncode'=>$sessioncode),),
'pagination'=>array('pageSize'=>15),)),

'columns'=>array(
array('name' => 'examcode', 'headerHtmlOptions' => array('style' => 'width: 10px'),),
array('name' => 'sessioncode', 'headerHtmlOptions' => array('style' => 'width: 10px'),),
array('name' => 'subjectcode', 'headerHtmlOptions' => array('style' => 'width: 10px'),),
array('name' => 'groupcode', 'headerHtmlOptions' => array('style' => 'width: 10px'), ),

array('class' => 'editable.EditableColumn', 'name' => 'dateofexam', 'headerHtmlOptions' => array('style' => 'width: 10px'),
'editable' => array('type' => 'date', 'viewformat' => 'dd-mm-yyyy',
'url' => 'Yii::app()->createUrl("examschedule/update",array("examcode"=>$examcode, "sessioncode"=>$sessioncode, "subjectcode"=>$data->subjectcode))',
'placement' => 'right',) ),

array('class' => 'editable.EditableColumn','name' => 'sitting', 'headerHtmlOptions' => array('style' => 'width: 10px'),
'editable' => array('type' => 'select', 'source'=>array('1'=>'First Sitting', '2'=>'Second Sitting'),
'url' => 'Yii::app()->createUrl("examschedule/update",array("examcode"=>$examcode, "sessioncode"=>$sessioncode, "subjectcode"=>$data->subjectcode))',
'placement' => 'right', ) ),
),
));
?> 

推荐答案

这是一个神秘的错误,可能是一个简单的问题 - 您试图访问的资源无法被命中.如果你输入一个无意义的网址,你会得到这个结果.此外,如果浏览器中运行某种连接拦截器(例如广告拦截应用程序),您也会得到此信息.

This is a cryptic error for what may be a simple problem - the resource you're trying to reach cannot be hit. If you put a nonsense URL in, you would get this result. Also, you would get this if there was some kind of connection blocker, like an ad-block app, operating in the browser.

我会检查您尝试访问的 URL,方法是将其转储为文本并手动尝试查看您是否可以访问该资源.

I would check the URL you're trying to hit by dumping it out to text and manually trying to see if you can reach the resource.

这篇关于异常 nsresult: “0x805e0006 (&lt;unknown&gt;)"在 yii 中使用 x-editable 提交更改时的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆