Hi,
I want to submit a form(CActiveForm) automatically when a popup window is closed. But the form data is missing so it could not pass the form validation.
I use the following jquery function to enable the auto-submission:
<script type="text/javascript">
$(document).ready(function(){
$('#aDialog').dialog({
modal: true,
buttons:[{
text: 'Ok',
click: function(){
//......
$(this).dialog('close');
}
}],
close: function(evt, ui){
$('#parentFormId').submit();
}
});
});
</script>
Could anyone help pls? Thanks