Dialog After Submit

Hi everyone Im new using and I would like to know how to make a custom dialog message, my actual code is:

<?php echo CHtml::submitButton('Login',   array('confirm'=>"are you sure?")) ?>

I would like to do the same with CJuiDialog, I would really appreciate if you help me,

Thanks in advice![

I had a similar issue once and solved by googling a bit, hope this helps:


I found a great solution here:

at stack overflow look for jqueryui-modal-confirmation-dialog-on-form-submission

Thanks anyway :)