You've got it right, except for the case
Change
beforeClose: function(event, ui) { return false; }
to
beforeclose: function(event, ui) { return false; }
http://docs.jquery.com/UI/Dialog#event-beforeclose
- Richard
On Wed, Dec 23, 2009 at 4:10 AM, yassine <[email protected]> wrote:
> Hi everybody,
>
> can someone please give an effective example for preventing the
> closing of a dialog?
>
> Sadly, the official jQuery UI documentation gives only the global
> syntax for the beforeClose event.
> I tried with this code :
>
> $('#preload').dialog({
> autoOpen: false,
> width: 300,
> bgiframe:true,
> modal:true,
> resizable:false,
> closeOnEscape:false,
> draggable:false,
> title:'Chargement en cours ...',
> beforeClose :function(event,ui){
> return false;}
> });
>
> but it didn't work ... :(
>
> please help ...
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<jquery-ui%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.