On my project I have 5 tabs at the bottom :-
<div data-role="layout" data-id="mobile-tabstrip">
<header data-role="header">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</header>
<div data-role="footer">
<div id="tabstrip" data-role="tabstrip">
<a href="#tabstrip-setup" id="tab-stage" data-icon="setup">Setup</a>
<a href="#tabstrip-knowledge" id="tab-knoweldge" data-icon="learn">Knowledge</a>
<a href="#tabstrip-merchant" id="tab-merchant" data-icon="stockist">Merchant</a>
<a href="#tabstrip-website" data-icon="www">Website</a>
<a href="index.html" data-rel="external" data-icon="information">About</a>
</div>
</div>
</div>
Quite simply I want to switch tab based on a calling param...
document.addEventListener("deviceready", onDeviceReady, false);
// -----------------------------------------------------------------------------------------------
// PhoneGap is ready
// -----------------------------------------------------------------------------------------------
function onDeviceReady() {
alert($.urlParam('tab'));
// switch tab
$("#tabstrip").data("kendoTabStrip").select(1);
}
but I can't get the select to do anything? Tried lots of calls, and going mad!
Also, I want to change the page that is displayed on the tab, which I am doing by changing the href of the tab itself... however this works the firstt ime, but then any previous attempts to change it fail. You can see this in my Sundial
<div data-role="layout" data-id="mobile-tabstrip">
<header data-role="header">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</header>
<div data-role="footer">
<div id="tabstrip" data-role="tabstrip">
<a href="#tabstrip-setup" id="tab-stage" data-icon="setup">Setup</a>
<a href="#tabstrip-knowledge" id="tab-knoweldge" data-icon="learn">Knowledge</a>
<a href="#tabstrip-merchant" id="tab-merchant" data-icon="stockist">Merchant</a>
<a href="#tabstrip-website" data-icon="www">Website</a>
<a href="index.html" data-rel="external" data-icon="information">About</a>
</div>
</div>
</div>
Quite simply I want to switch tab based on a calling param...
document.addEventListener("deviceready", onDeviceReady, false);
// -----------------------------------------------------------------------------------------------
// PhoneGap is ready
// -----------------------------------------------------------------------------------------------
function onDeviceReady() {
alert($.urlParam('tab'));
// switch tab
$("#tabstrip").data("kendoTabStrip").select(1);
}
but I can't get the select to do anything? Tried lots of calls, and going mad!
Also, I want to change the page that is displayed on the tab, which I am doing by changing the href of the tab itself... however this works the firstt ime, but then any previous attempts to change it fail. You can see this in my Sundial