#3795 closed bug (fixed)
jQuery ui Tab
Reported by: | sundar | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ui.tabs | Version: | 1.6rc4 |
Keywords: | remove file loading | Cc: | |
Blocked by: | Blocking: |
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 (6)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
You need to initialize the ul
element.
comment:3 Changed 14 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:5 Changed 14 years ago by
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)
typo in keywords: it is 'remote' instead of 'remove'