weixin_33737774 2014-03-06 15:27 采纳率: 0%
浏览 11

Yii vs Highcharts vs Ajax

here is a part of my view:

<?php
echo CHtml::dropDownList('al_ev_id', $model->al_ev_id,$listaDateAl,
                              array(
                                 'ajax' => array(
                                 'type'=>'POST',
                                 'url'=>CController::createUrl('stat/ajaxStoricoSubDetails'),
                                 'update'=>'#storicoSubDetails',
                                 ),
                                 'class' => 'rowform',
                        ));
...
?>
<div id="storicoSubdetails">
...
<?php
$this->Widget('ext.highcharts.HighchartsWidget', array(
   'options'=>array(
      'title' => array('text' => 'A title'),
      'xAxis' => array(
         'categories' => $model->streamLabel
      ),
      'yAxis' => array(
         'title' => array('text' => 'another title')
      ),
      'series' => array(
         array('name' => $model->labelGraph, 'data' => $model->streamData)
      )
   )
));     

?>
...
</div>

the controller in the action 'ajaxStoricoSubDetails' reload the same $this->Widget('ext.highcharts.HighchartsWidget' etc, etc

the objective of this code is to update the starting x-value of the graph, modifying it with the dropdown

and here is my problem:

the first rendering of highcharts graph is ok; but, when I change the value in the DropDown, thus starting the ajax part, graph is not rendered

highcharts return an error 16 code, that means

Highcharts already defined in the page

in fact in the second rendering code (the ajax fired part) I find

<script src="http://code.highcharts.com/highcharts.js"></script>

that I think is the problem

is there any way to avoid this

Any other suggestions?

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 使用自定义的类型代替内置类型可行吗
      • ¥15 关于STM32的SPI和ENDAT接口编码器通信的问题
      • ¥15 关于#pdfbox#生成的PDF文件正常,转图片中文乱码的问题,如何解决?
      • ¥15 ADS中有关DAC控件的使用问题
      • ¥15 win11如何运行geoserver
      • ¥15 审稿意见请教-用ERNIE进行小样本分类的对比实验问题
      • ¥15 gem5搭建arm v8
      • ¥15 安卓时间管理APP,怎么做
      • ¥15 这段有什么bug 为什么总报错
      • ¥15 Intel Realsense深度相机(D415/D435)拍摄梯子获取梯子点云