Skip to main content

Search and Top Navigation

#3001 closed bug (notabug)

Opened June 13, 2008 07:04AM UTC

Closed June 13, 2008 07:09AM UTC

Ajax tab problem?????

Reported by: milko.gonzalez Owned by: klaus.hartl
Priority: minor Milestone: 1.5
Component: ui.tabs Version: 1.5
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 13, 2008 07:09AM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

Ajax'd tabs load content into a div, not an entire page.