Welcome Guest Search | Active Topics | Sign In | Register

Disabling the ESC key for the Dialog Options
Alex
Posted: Saturday, August 11, 2007 11:04:07 AM
Rank: Newbie
Groups: Member

Joined: 8/11/2007
Posts: 1
Hi,

I would like to know how to disable the ESC key for the DialogBox. I have a dialog that self closes base on some conditions. I have removed the Close button so that it cannot be closed manually. However, it still can be closed by pressing the Esc key on my keyboard. How can I disable this feauture.

Thanks,

Alex
eo_support
Posted: Saturday, August 11, 2007 7:48:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,094
Hi Alex,

I believe you can do that by handling the dialog's close event on client side via ClientSideOnEnd:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Dialog.ClientSideOnEnd.html

You can let the handler to return false to cancel the close event. That way when the user press ESC key, the dialog won't close. Of course, you can not always return false because you have to allow the close to continue when your special conditions are meet.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.