Hi!

I have a question,

I have two main divs one for is used for menu, the other is used for
content. When an item is clicked from left menu, content is loaded via
jquery load() function in to the content div.

In one of my content I'm using jquery tabs for a tabbing system. In
this system there is a function like this which adds a new tab when a
button is clicked.

        $('.creator').click(function() {

                $("#charttype").dialog("close");

        $("#reporttabs > ul").tabs("add", 'show_chart.php?showid='+f,
'Grafik');

                f++;
        });

There isn't any problem up to here.Hi!

I have a question,

I have two main divs one for is used for menu, the other is used for
content. When an item is clicked from left menu, content is loaded via
jquery load() function in to the content div.

In one of my content I'm using jquery tabs for a tabbing system. In
this system there is a function which adds a new tab when a button is
clicked. Here is the code...

        $('.creator').click(function() {

                $("#charttype").dialog("close");

        $("#reporttabs > ul").tabs("add", 'show_chart.php?showid='+f,
'Grafik');

                f++;
        });

There isn't any problem up to here.

But whenever I add a new tab with this function and click another menu
item from left menu than return to this page. When I click again to
this button old tabs are added too. For instance if I added 3 tabs in
previous session and click to another page and return here and add
another tab 4 tabs are added. I followed requests there are multiple
requests which are going from me.

I think the only declaration is, when I load content again the globak
variables in main page are registered twice and for this reason
function is binded on more than one elements. There are still
background variables which I don't see but works in the background.
Any comments are appreciated. Thanks. :)

But whenever I add a new tab with this function and click another menu
item from left menu than return to this page. When I click again to
this button old tabs are added too. For instance if I added 3 tabs in
previous session and click to another page and return here and add
another tab 4 tabs are added. I followed requests there are multiple
requests which are going from me.

I think the only declaration is, when I load content again the globak
variables in main page are registered twice and for this reason
function is binded on more than one elements. There are still
background variables which I don't see but works in the background.
Any comments are appreciated. Thanks. :)

Reply via email to