Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1185
How do I Close a tab in javascript?
posted

I have a UI where the user selects "menu" items from an explorer bar on the left, tabs are displayed on the right (a splitter holds both). tabs are opened to contai child forms for each action.

When the user hits "save" on a child form in a tab I want to close the tab. I can call a javascript function on the parent form with the relevant details (not having a Key property for each tab is a problem, though it can be worked around - and this is necessary because I have no control over the order in which tabs will be created or destroyed - so the index is useless)

However I need to close the tab. there doesn't seem to be a method for this? Errr, this is a rather large functional hole if its true - can anyone enlighten me?

(The curent workaround is ugly - I have to trigger a postback)

Parents Reply Children