ajax image submit button

How to generate image ajax submit button?

SO I need something like




CHtml::ajaxLink(CHtml::image(path, url, ajaxupdate)



but it shoukd be submit button.

Maybe using CHtml::ajaxSubmitButton() with relevant css to show your image will be appropriate for you.

Hi Renathy,

Did you achieve this? I am also looking for solution like this.

Thank you,

Yohan

one way to do this…i was looking for this …here it is


echo CHtml::ajaxButton(' ',$this->createUrl("url"),array(

        'type'=>'POST',

         ajax code

                ),array('style'=>'border: none; background: #FFF url("images path");')); ?>