Return Renderpartial Include Widget

Hi guys,

I have a document upload form. it’ll return another upload form view on completed.

I used plupload at for main upload form,

and used eajaxupload at for 2nd upload form.

I tried to return renderPartial which include eajaxupload widget by json_encode. But it’s always display:

<noscript>Please enable javascript</noscript>


$html = $this->renderPartial('success', array('model'=>$model),true, true);

echo json_encode(array('error'=>'none','html'=>$html));


Main upload view:

<?php $this->widget('application.extensions.Plupload.PluploadWidget', array(

	'config' => array(

		'runtimes' => 'html5',

		'url' => $this->createUrl('upload/upload'),

		'unique_names' => true,

		'filters' => array(

			array('title' => Yii::t('app', 'Images files'), 'extensions' => 'pdf,doc,docx,ppt,pptx,pot,potx'),


		'max_file_number' => 10,

		'autostart' => true,

		'jquery_ui' => false,


	'callbacks' => array(

		'FileUploaded' => 'function(up,file,response){completeUpload(response.response);}',


	'id' => 'mainWrap'



<ul id="upload_filelist" class="plupload_done">



    function completeUpload(data){

        data = jQuery.parseJSON(data);




Success view:

<?php $this->widget('ext.EAjaxUpload.EAjaxUpload',









)); ?>

someone can help me resolve it?

I resolved it by write this extension Nava-jcrop