OnClose event not being triggered in web client

Forum to discuss the Web client version of Servoy.

OnClose event not being triggered in web client

Postby ronm » Tue Mar 23, 2010 2:46 am

I have a single form as a test case. The solution has a global method - onSolutionClose_event()
Code: Select all
function onSolutionClose_event()
{
   application.output('onSolutionClose_event');
   return(globals.allowExit);
}


The form has a single button that changes the variable globals.allowExit to true from the initial setting of false.

It works when in the smart client. You cannot exit the solution by pressing the X icon in the top right corner of the solution window.

The solution exits immediately when in the web client and the X icon is pressed.

I have tried this in the developer and on the server with the same results. What would cause the event to not trigger when in the WC?

Servoy: 4.1.5
JRE: 1.6.0_18-b07
Windows XP SP2

Your feedback is appreciated!
ronm
 
Posts: 10
Joined: Mon Feb 08, 2010 11:28 pm

Re: OnClose event not being triggered in web client

Postby pbakker » Tue Mar 23, 2010 9:44 am

pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 13 guests