This topic is locked
[SOLVED]

 How to check for unsaved changes?

8/24/2010 1:49:06 PM
PHPRunner General questions
R
raver author

Hi,
I'm trying to check for unsaved changes before leaving edit page.

I found a simple way to do it, but it doesn't work on IE (6 and 8). FF, Chrome and Safari are OK.

// jsOnloadEdit event

var formObj = document.editform1;

formObj.isDirty = false;

formObj.addEventListener('change', function(event) {

this.isDirty = true;

alert('Changed?: '+this.isDirty);

},true);



I noticed though that PHPRunner engine detects any change. Navigation buttons are disabled.

Is there a way to use that feature? Which functions are invoked?
Thanks in advance.

A
ann 8/25/2010

Raver,
unfortunately we don't support the code written by our customers.