Hi Guys
I am hoping to find a solution where I can return false from an onunload when data saved with ajax and the save cause an error.
I have a var called Zchanged which is checked in the onunload and if 1 it prompt for save with ok/cancel. This works fine. When save is started it sets a new var called Zonserver=1. What I hope to do is to wait in onunload until the Zonserver=0 and then check a new var (Zerror) to see if any error occured during save. If error, return false else return true.
Is this possible?
Thanks in advance
I am hoping to find a solution where I can return false from an onunload when data saved with ajax and the save cause an error.
I have a var called Zchanged which is checked in the onunload and if 1 it prompt for save with ok/cancel. This works fine. When save is started it sets a new var called Zonserver=1. What I hope to do is to wait in onunload until the Zonserver=0 and then check a new var (Zerror) to see if any error occured during save. If error, return false else return true.
Is this possible?
Thanks in advance