S
Seth E Seligman
I'm working on a web based file manager. The rename file function creates a new window with a form allowing the user to enter a new file name. Before the form gets submitted, I want to make sure that a valid file name (no "/" or "\" characters) was entered. If the validation functions returns true, the form should be submitted and the window closed. If the function returns false the form window should stay open so the use can enter a new file name. What's the correct way to do this? When I try to add a win
dow.close function I either close the window without submitting the form, or submit the form without closing the window.
dow.close function I either close the window without submitting the form, or submit the form without closing the window.