Ticket #3795 (closed bug: fixed)

Opened 5 years ago

Last modified 19 months ago

jQuery ui Tab

Reported by: sundar Owned by:
Priority: major Milestone:
Component: ui.tabs Version: 1.6rc4
Keywords: remove file loading Cc:
Blocking: Blocked by:

Description

there is strange bug in the tab, if the first 'li' refers to remote file. The content coming from the remove file is append outside of the tab (mytabs) div element. Ex: <div id="mytabs">

<ul>

<li><a href="sample1.html">Sample1</a></li> <li><a href="#loc">Sample1</a></li> <li><a href="sample2.html">Sample2</a></li>

</ul> <div id="loc">This is local contnet </div>

</div>

<script type="text/javascript">

$j(function() {

$j("#mytabs").tabs();

});

</script>

the content is added after the 'mytabs' div element. due to this the css is not applied properly

and the contents are shown outsize the tab.

if the first tab refers to local div then the contents are added inside mytabs element after ul element. ex: <div id="mytabs">

<ul>

<li><a href="#loc">Sample1</a></li> <li><a href="sample1.html">Sample1</a></li> <li><a href="sample2.html">Sample2</a></li>

</ul> <div id="loc">This is local contnet </div>

</div>

<script type="text/javascript">

$j(function() {

$j("#mytabs").tabs();

});

</script>

Change History

comment:1 Changed 5 years ago by sundar

typo in keywords: it is 'remote' instead of 'remove'

comment:2 Changed 5 years ago by klaus.hartl

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

You need to initialize the ul element.

comment:3 Changed 5 years ago by klaus.hartl

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:4 Changed 5 years ago by klaus.hartl

  • Status changed from reopened to closed
  • Resolution set to fixed

comment:5 Changed 5 years ago by sundar_reddy

Can you pls tell me how to initialize ul element. I am using div element to initialize the tabs, do i have pass any options that initializes ul element ( i could not find info in the doc)

comment:6 Changed 19 months ago by scott.gonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.