Добавить к вкладкам из ссылки внутри вкладки - PullRequest
0 голосов
/ 11 сентября 2009

Учитывая пример формата автора jqGrid [http://trirand.com/jqgrid/jqgrid.html], как бы я включил ссылку из вкладки [#RightPane], чтобы добавить к вкладкам поверх? И есть ли новая вкладка для отображения содержимого AJAX?

1 Ответ

0 голосов
/ 11 сентября 2009

Это должно помочь вам начать:

<script type="text/javascript">
        $(function() {

        //this sets up the tabs
         $("#theTabs").tabs();

//this attaches the new tab functionallity to the link
            $("#AddTabLink").click(function() {
                $("#theTabs").tabs("add", "the url you want to load ajaxly", "The New Tab title");
            }
            );

        });
    </script>


and this is the link that will have the addtab functionality applied to it. this could go on an existing tab,  or somewhere else on the page.

<a href="#" id="AddTabLink">Click Here</a>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...