Hi All,
I have built a new portal on Rails which can be accessed as say: https://xyz.com
The problem with this is: 1.) It has 2 tabs – “ShipmentInfo” , “Aging Shipments Dashboard” both implemented using
<li> tags and YUI library’s tabview.
<ul class="yui-nav">
<li id="tab1" class="selected"><a href="#tab1">Shipment Info</a></li>
<li id="tab2"><a href="#tab2">Aging Shipments Dashboard</a></li>
</ul>
2.) When I click on “Aging Shipments Dashboard” tab – url should be – https://xyz.com/#tab2 but you get to see only https://xyz.com . I presume it because of client side implementation of Tabs.
3.) After I click on “Current Summary” button in that tab, I get the corresponding results but instead of showing me the active Tab set to “Aging Shipments Dashboard” it is always set to “ShipmentInfo” tab.
How can I set the activeTab on getting the results to corresponding Tab from which request has been placed ? All form requests use GET method.
Or is there a way wherein I can explicitly mention in routes.rb, basing on the params that the activeTab should be set to “Aging Shipments Dashboard”?
Thanks, Raja.