Skip to main content

Bug Tracker

Side navigation

#3020 closed enhancement (invalid)

Opened June 11, 2008 02:48AM UTC

Closed June 11, 2008 10:24PM UTC

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.

Attachments (0)
Change History (1)

Changed June 11, 2008 10:24PM UTC by flesler comment:1

resolution: → invalid
status: newclosed

jQuery.Tabs now belongs to jQuery UI.

Please repost this to the UI Bug Tracker.

Thanks.