Hello, I want to use image as a button which send ajax request. Help me.
Hello, I want to use image as a button which send ajax request. Help me.
You can use CHtml::ajaxLink and CHtml::image
CHtml::ajaxLink(CHtml::image(’/path/to/image.jpg’, ‘alt’), ‘/link/ajax.php’);
Reference follow link for details ajax options(jquery ajax option):
http://www.yiiframework.com/doc/api/1.1/CHtml#ajaxLink-detail