Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

How to auto-refresh Approval SSP web page?

Highlighted
BUDI RAHARDJO_2
Regular Collector

How to auto-refresh Approval SSP web page?

Hi all,

Whenever user clicks on the Approval Vote link and votes (YES/No/Unspecified), and clicks the Submit button, the Approval Vote Details window will close.

However, the Approval web page is not being refreshed, so user still sees the previous web page and need to hit the refresh button. How can I modify ApprovalVote.jsp such that when user clicks the Submit button, the Approval web page will automatically refresh and shows the udpated approval votes results?

I noticed the following comments at the end of ApprovalVote.jsp. It seems that HP developer has attempted to refresh the approval window, but apparently it didn't work.

if (vote != null) {
vote.save();
%>
<SCRIPT language = "
JavaScript" >
/* refresh the approval window */
/* perhaps with
a new approval result */
// TODO: make this work
//top.
approval_window_location.reload();
window.close();
</SCRIPT>

Thanks and Regards.
2 REPLIES
BUDI RAHARDJO_2
Regular Collector

Re: How to auto-refresh Approval SSP web page?

found solution in the javascript forum
Esc_1
Regular Collector

Re: How to auto-refresh Approval SSP web page?

can i hv the script
//Add this to "OnDomLoad" event