专注于AJAX标签

问题描述:

我打算使用AJAX TabContainer并使用8个标签.关闭窗口后,我想使用JavaScript将焦点设置在特定选项卡上.

有一个按钮可以打开窗口,然后从给定列表中选择项目,然后关闭窗口,并根据一个值选择一个选项卡.

例如,如果用户选择近亲"并关闭窗口,则近亲"选项卡应该处于焦点,依此类推.

我该如何实现呢?

I amm working with AJAX TabContainer and using 8 tabs. After closing the window, I want to set the focus on a particular tab using JavaScript.

There is a button to open the window and select the item from the given list and then close the window, and according to a value, a tab should be selected.

For example, if the user selects "Next of kin" and closes the window, then the ''next of kin'' tab should be in focus, and so on.

How can I implement this?

qasimidl,

在父页面中,编写javascript函数以将焦点设置在该标签上.并在窗口的关闭事件中调用父页面的javascript.

父页面中的Javascript:

Hi qasimidl,

In parent page, write on javascript function which will set focus on that tab. and on the close event of window call the javascript of parent page.

Javascript in parent page :

function Fn1()
{
    // Your code here
}



子窗口中的Javascript:



Javascript in child window:

window.opener.Fn1();