Monday, July 12, 2010

Enhance "processing" waring in PeopleSoft pages

Enhance "processing" waring in PeopleSoft pages
Two weeks ago, I was navigating through a new development we finished in our PeopleSoft application, and while I was waiting for a page to show me some results, I kept thinking "how awful is this processing warning, why we canĂ¢€™t have some fancy Ajax-like waiting window?". Also I figured that one interesting performance issue we had was because some pages take a while to load and users get desperate and start clicking some other controls in the page. Sometimes those inappropriate clicks send a second or third request to the server and everything gets even slower.
So, after thinking for a while I got with the following simple solution, which will make your PeopleSoft application looks in a fancier way. There are 2 ways to implement this solution, page by page or enable the script through monkeygrease for the site.
Here it is the solution for the page by page option:
1. Add an HTML area to your page
2. Set its property to static HTML and copy the following code in it:

script language='JavaScript' type='text/javascript'
var wait=document.getElementsByTagName('div')[0];
wait.style.position='absolute';
wait.style.top=0;
wait.style.left=0;
wait.style.width='500%';
wait.style.height='500%';
wait.style.zindex='5000';
wait.style.backgroundColor='#FFF';
wait.style.filter="alpha(opacity=80)";
wait.innerHTML = 'img style="position:absolute;top:10%;left:10%;" src="
http://erpfinprod.banxico.org.mx:8050/erp8prod/BANXICO/azul2.gif" alt="Procesando..." title="Procesando..." /';
/script
3. Save the page
So as you could see this simple script will increase the usability of your site in seconds. After we implemented this solution, the client was so excited. Hope it helps!

No comments:

Post a Comment