Thanks Klaus,
I see the issue in FireFox 3 and Internet Explorer 7 (screen jumps up
when tab is clicked).
Here is an example that shows the issue:
http://5bosses.com/examples/tabs/sample_tabs.html
I'm using the following parts of Jquery:
http://dev.jquery.com/view/tags/ui/latest/ui/ui.core.js
http://dev.jquery.com/view/tags/ui/latest/ui/ui.tabs.js
In a previous version, I also tried:
jquery-ui-personalized-1.6rc2.min.js
My goal is for the screen not to jump/scroll when the user clicks a
tab.
Here is a code sample (from the above linked page):
<script>
$(document).ready(function(){
$("#example > ul").tabs();
});
</script>
<table>
<tr>
<td valign="top" style="height: 400px; background-color: #ccc;">The
tabs are located beneath this table</td>
</tr>
</table>
<div id="example" class="flora">
<ul>
<li><a href="#fragment-1"><span>One</span></a></li>
<li><a href="#fragment-2"><span>Two</span></a></li>
<li><a href="#fragment-3"><span>Three</span></a></li>
</ul>
<div id="fragment-1">
<p>First tab is active by default:</p>
</div>
<div id="fragment-2">
Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat.
</div>
<div id="fragment-3">
Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat.
</div>
</div>
Thanks for your help.
Post by Klaus HartlThat doesn't happen for me. Do you use the latest version? Which
browser does that happen in? Could you post a demo or show us some
code?
--Klaus
Post by EdI have jquery ui tabs at the bottom of my page.
When a tab is clicked, the screen jumps/scrolls to top.
How can I prevent this?