var formData = new FormData($("#post-form")[0]);
$.ajax({
url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
type: 'POST',
data: formData,
datatype:'json',
// as...
var formData = new FormData($("#post-form")[0]);
$.ajax({
url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
type: 'POST',
data: formData,
datatype:'json',
// as...
My goal here is to Open bootstrap modal and load ANY content using ajax response.
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)
There are cases that you want to make an ajax request to another server and get the results.
This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.
1) include the fancybox extesion otherwise fancybox js
I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:
Hi Friends, In this tutorial you can use the eajaxupload-extension ,