I am new to jquery and created 10 tabs using :
$(document).ready(function() {
$('#tabs').tabs();
});
Then I used <li>a href="#tabs-1"> MYTAB </a> </li>
htlm code for my tabs.
I managed to create static tabs and now I can go back and forth to see the content of my tabs.
The problem I am facing is each tab contains a seperate link to a different website where users need to enter their passwords/usernames. Some of my users werent able to do that from their phones etc.
I then changed my design to ajax and it works fine but page refreshes each time (users do not want that).
<li>a href="url"> MYTAB </a> </li>
What is the best solution to get around from this?
Thanks
My script:
<!DOCTYPE html>
<html>
<head>
<META name="WebPartPageExpansion" content="full">
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#tabs").tabs();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="tabs">
<ul>
<li><a href="#tabs-1">site1</a></li>
<li><a href="#tabs-2">site2</a></li>
<li><a href="#tabs-3">site3</a></li>
<li><a href="#tabs-4">site4</a></li>
</ul>
<div id="tabs-1">
<iframe src="url1" width="100%" height="500">
<p>Your browser does not support iframes.</p> </iframe>
</div>
<div id="tabs-2">
<iframe src="url2" width="100%" height="500">
<p>Your browser does not support iframes.</p></iframe>
</div>
<div id="tabs-3">
<iframe src="url3" width="100%" height="500">
<p>Your browser does not support iframes.</p></iframe>
</div>
<div id="tabs-4">
<iframe src="url4">
<p>Your browser does not support iframes.</p></iframe>
</div>
</div>
</body>
</html>