I have a web page that includes child forms on it. Looks like this:
parent form area at the top with tab1, tab2, tab3
In the middle of the page I have an iframe loading a child form (a grid)
The user can change a value on the child grid but if they click on another tab (located in the parent form) I first want to ask them if they want to switch to the other tab without saving (in which case I reset the grid value back to what it was) or if they want to stay where they are so they can click save to save their changes.
There is a click event on the tab in the Parent form and I've also added a click event for the tab in the child form. I want to handle the child event FIRST so that I can verify what the user wants to do. The problem is that the parent form event handler happens first then the child event handler happens.
How can I do this so that before executing the tab's event on the parent I first execute the child form event?
Thanks in advance!