Question about a dialog form and submit errors

Posted by user248959 on Stack Overflow See other posts from Stack Overflow or by user248959
Published on 2010-06-16T12:29:05Z Indexed on 2010/06/16 12:32 UTC
Read the original article Hit count: 210

Filed under:
|
|

Hi,

I have the link below that executes the action message/new which shows a form inside a jqueryui modal dialog.

<div id="myDialog">

</div>

echo jq_link_to_remote('Enviar mensaje', array(

             'url' =>
'mensaje/new?receptor='.$miembro->getId().'&tipo=0&estado=0',

             'update' => 'myDialog',

             'complete' => "jQuery('#myDialog').dialog({ width:375,
height:220, top:123,

                                                 resizable:false,
modal:true, autoOpen: false });

jQuery('#myDialog').dialog('open')"
                                     ));

The point: if there are submit errors the form is not showed inside the dialog form but in a empty page (mensaje/create)..

Any idea?

Javi

© Stack Overflow or respective owner

Related posts about php

Related posts about jquery-ui