Jquery dialog + Ajax in Grails
Hi, i'm Marcos from Argentina, so my english isn't the best...
I'm working with Grails... and i use jQuery dialogs for some functionalities. My problem is that i can't close the dialogs... only with the X button in the corner... i tried with .dialog('close') .dialog('hide') and .dialog('destroy'). my code is like that:
<html>
...
<body>
...
</g:remoteLink></td>
<td><g:remoteLink
action="action"
controller="controller"
update="dialogTramite"
onLoaded="mostrarDialogo('#dialogTramite')">
text
</g:remoteLink></td>
...
<script type="text/javascript">
$(document).ready(
function() {
$("#dialogTramite").dialog({
resizable:false,
modal:true,
width:400,
height:450 ,
autoOpen:false,
buttons: {"close": function(){ $(this).dialog("close"); }}});
}
);
function mostrarDialogo(dialogoSelector) {
$(dialogoSelector).dialog('open');
}
</script>
</body>
</html>
What i'm doing wrong? comment: after i close with "X" button... i can't reopen it...
thanks
Marcos