On Fri, Jan 23, 2009 at 1:41 PM, dbonneville <[email protected]>wrote:

>
> Hi - I'm somewhat new to jQuery and am fiddling with the UI library. I
> need a modal dialogue that has the escape disabled, or at least the
> ability to perform a function if the user hits the escape key (like
> send them to another page).


See http://docs.jquery.com/UI/Dialog/dialog#options

There is an option called closeOnEscape. The default value is true, so you
can do this

$("#dialog").dialog({
  closeOnEscape: false,
  modal: true
});


> Is this the right list to be on to do
> that?


Yup. Welcome :)

- Richard

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to