exit actions not quite working
August 9, 2007 12:00 AM
Lucash:Debugging time...open the page in a text editor (we like Scite - it's free). When I look at your included code - function action486(fn){ {saveVariable( 'TrivantisEPS', 'T'); if(cleanupTitle('page1')) doQuit(0); else window.close();} if(fn) eval(fn); } - I would find the doQuit function and put an alert in right after the opening curly bracket to let me know if the function is being called ie: doQuit(0){alert('doQuit called'). Then run the course again, hit exit, and see if you get an alert. I imagine you are getting there (to the doQuit function) as window.close() is a javascript function that forces the window to close - so it doesn't seem to be being called. It also might be that there is an issue with the saveVariable() function, so you might have to look at that too if the doQuit is not the issue.Of course sometimes I'm my own worst enemy when I debug. You should probably just try simple things first like disinheriting the button, saving, and then reinheriting the button, republish, and se if that works.
Discussions have been disabled for this post