CMultiFileUpload not working in an Ajax div

i am using a dropdownlist to call a view file of a model where i have used CMultifileUpload.

if i use the model directly where CMultifileUpload is used.then its works fine.But when used in an ajax div the prompt for added file is not coming also not able to add multiple file.

please help.


<div class="row">

    &lt;?php echo &#036;form-&gt;labelEx(&#036;b, 'image_name'); ?&gt;


    &#036;this-&gt;widget('CMultiFileUpload', array(

        'model' =&gt; &#036;b,

        'attribute' =&gt; 'image_name',

        'name' =&gt; 'image_name',

        'accept' =&gt; 'jpg|gif|png',

        'options' =&gt; array(

            'onFileSelect' =&gt; 'function(e, v, m){  }',

            'afterFileSelect' =&gt; 'function(e, v, m){  }',

            'onFileAppend' =&gt; 'function(e, v, m){  }',

            'afterFileAppend' =&gt; 'function(e, v, m){ alert(v+&quot; has been added&quot;)}',

            'onFileRemove' =&gt; 'function(e, v, m){ }',

            'afterFileRemove' =&gt; 'function(e, v, m){ alert(v+&quot; has been removed&quot;) }',




    &lt;?php echo &#036;form-&gt;error(&#036;b, 'image_name'); ?&gt;


If you are rendering the view containing the upload-element with a call to renderPartial, remember to set the fourth parameter to true to embed all necessary javascript directly into the views output.

Thanks for Immediate Reply…its working fine.