Bug Tracker

Modify

Ticket #3020 (closed enhancement: invalid)

Opened 6 years ago

Last modified 6 years ago

Ajax tab problem?????

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

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

comment:1 Changed 6 years ago by flesler

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.