here are my code: I want to refresh tab 2 once I click the tab....but
it does not work now!
<div id="single_app_admin_tabs">
<ul>
<li><a href="/admin/admin_app_doc.aspx?d=<
%=Now.Ticks %>"><span>Documents</span></a></li>
<li><a href="/admin/admin_app_experience.aspx?d=<
%=Now.Ticks %><span>Experience</span></a></li>
</ul>
</div>
</div>
</asp:Panel>
<script type="text/javascript">
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
if (results == null)
return "";
else
return results[1];
}
$(function() {
var index = getParameterByName('i');
$('#single_app_admin_tabs').tabs({ selected: index,
spinner: '' });
var tabs = $('#single_app_admin_tabs').tabs();
tabs.tabs('load', 1);
// var $tabs = $('#single_app_admin_tabs').tabs();
// var selected = $tabs.tabs('option','selected');
// if (selected == 1) {
// $('#single_app_admin_tabs').tabs('load', 1);
// }
});
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.