WebSphere Portal Server - Javascript confirm

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > April 2007 > Javascript confirm





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Javascript confirm
lalan913

2007-04-17, 1:23 pm

Added the following script to the HTML body used by the portlet factory to prompt the user before leaving the page. It works in RAD but in portal the self.location does not. Any suggestions would be appreciated! Thanks!

<script type="text/javascript">
function onExit() {
if (exit_flag != 'C') {
var leave = confirm('Complete button has not been clicked. \nConfirmation will NOT be recorded as complete! \nClick OK to continue or Cancel to go back.');
if (!leave) location = self.location;
}
}
</script>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com