shady
(Wattay Shadrack)
1
[font="Tahoma"][font="Verdana"]
Hi All,
I am completely new to Yii and MVC style of coding.
I was wondering on how I could report form validation errors on a popup window instead of the form itself.
I have activated ajax Validation on form but would like to get those errors on a popup.
Please instruct which files to edit and where to put the new code.
Thanks in advance. [/font][/font]
Ankit_Modi
(Ankit Modi)
2
Hi,
please pass the process output after page renderPartial…
like
$this->renderPartial('/liquor/add_new_liquor', array('model' => $model), false, true);
and page sumbit on validation please see it…
http://www.yiiframework.com/forum/index.php/topic/43977-ajax-client-side-validation-without-refreshing-page/page__p__208536__fromsearch__1#entry208536
shady
(Wattay Shadrack)
3
thanks but didn’t work.
Please instruct which files to edit and where to put the new code.
BoogeyMan
(Roman Sdu)
4
I see that it’s an old question, but in case if someone need the answer here you go.
Open yii/framework/web/js/source/jquery.yiiactiveform.js around line 310 change this:
$('#test_es').toggle(content !== '').find('ul').html(content); to alert(content);