Wednesday, November 10, 2010

Jquery - Modal Logout Dialog

Here is probably the easiest way to implement modal dialog popup confirmation for your APEX application.
First of all you have to make sure that Jquery is installed on your Apex environment and if you are using Apex 4 - it should be already there.
The second step would be to create a page with number "0" in your application. Whatever is defined under this page will be automatically used in your application pages. After creating page number "0", go ahead and create a HTML region under this page with No Template, name it whatever you like and in the region source paste this script:


Are you sure you want to logout now?


The next step would be to navigate to "Home>Application Builder>Application 101>Shared Components>Navigation Bar Entries>" and edit your existing Logout entry. In the target set URL to point to :

javascript:LogoutDialog('Do you really want to log out?');

That is it, you are all done.

No comments:

Post a Comment