Bug Tracker

Opened 15 years ago

Closed 15 years ago

#3020 closed enhancement (invalid)

Ajax tab problem?????

Reported by: milko.gonzalez Owned by:
Priority: minor Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: ajax, tabs Cc:
Blocked by: Blocking:

Description

I am my ajax tab page like this

<html>
    <head>
        <link rel="stylesheet" href="ui.tabs.css" type="text/css" media="print, projection, screen">
        <script src="jquery.js" type="text/javascript"></script>
        <script src="ui.core.js" type="text/javascript"></script>
        <script src="ui.tabs.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function() {
                $('#container-8 > ul').tabs();
            });
        </script>
    </head>
    <body>
        <h2>Ajax tabs</h2>
        <div id="container-8">
            <ul>
                <li><a href="1.html"><span>One</span></a></li>
                <li><a href="2.html"><span>Two</span></a></li>
            </ul>
        </div>
    </body>
</html>

File "1.html" like this

<html>
    <head>
    </head>
    <body>
        <h2>1</h2>
    </body>
</html>

And my file "2.html" like this

<html>
    <head>
        <script src="jquery.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function() {
                alert(1);
            });
        </script>
    </head>
    <body>
        <h2>2</h2>
    </body>
</html>

When i clicking in tab Two the javascript code is not executed.

What is the problem? Thank's a lot.

Change History (1)

comment:1 Changed 15 years ago by flesler

Resolution: invalid
Status: newclosed

jQuery.Tabs now belongs to jQuery UI. Please repost this to the UI Bug Tracker. Thanks.

Note: See TracTickets for help on using tickets.