confirmation in ajaxLink

Hi,

how can I add some javascript code to link generated by ajaxLink? I need create confirmation before ajax section will be updated but i have to check earlier items selected by user.

Is it possible with CHtml::ajaxLink?

Thanx!

Yes, it's the same as you do with regular link() call, i.e., via the option 'confirm'.

And what should I do to add the code that hide div and show confirm box?

Hide div before showing confirm box? Nope, the existing confirm implementation doesn't support this. You would need to manually write js code for this purpose.

I thought so, and so I do:) I thought that this could be improved.

Thanx.