Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

jquery - Exception nsresult: "0x805e0006 (<unknown>)" location when submitting changes using x-editable in yii

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', ) ),
),
));
?> 
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...