ajaxSubmitButton

Hi,

I’m just wondering if it’s possible to replace html tag from <input> to <button> for ajaxSubmitButton?

When user input a search string in a searchbox and press enter, then page under IE8 goes to a home page instead of running ajax query (on all other browsers it works fine).

Now, I read about tag property but this seems to not work… or maybe I did something wrong?


echo CHtml::ajaxSubmitButton('',

        array('gatunki/szukaj'),

        array('update'=>'#gatunki'),

		  array('class'=>'searchformbutton', 'id'=>'serachbutton', 'tag'=>'button' ));

		  

Could anyone help?

Thanks,

BarBQ

I’m afraid input is hardcoded in CHtml::button() which is used by ajaxButton and consequently by ajaxSubmitButton. To get a button tag you probably have to overload CHtml::button().