hi guys, would u mind to help me??
I have two functions to show a kind of pop up form and close another one.
both form comes from an object named “window” and “e_window”.
herewith the code:
function displayForm()
{
…
…
e_window.hide();
window.show();
}
function displayEditForm()
{
…
…
window.close();
e_window.show();
}
then I have 2 buttons which handle those functions:
“add” => to close the edit form then shows the add form
“edit” => to close the add form then shows the edit form
when I click the “add” button followed by “edit”, it goes well.
the problem is:
when I click back the “add” button, the “edit” form was succesfully hidden but the “add” form doesn’t appear.
I just thought to put some “if” statement to check whether the form that should be close is being visible or not.
is that make sense?
I need your opinion guys.
thx before for your help.
?