开发者

linking to jqueryUI tabs

开发者 https://www.devze.com 2023-02-17 15:37 出处:网络
So i am still having issues with this. but now at least have an online version that i can show you..

So i am still having issues with this. but now at least have an online version that i can show you..

http://dev.morrisonsports.com.au/products/zipvit-sport#tabs-3

as you can see.. when you use the # tag to link to any but the first tab (because its so long) the user ends up at the bottom of the page.. rather than at where the tab titles are..

i have given up on what i was trying to do before (getting it to link into the tab to content there) and decided if i can at least get it to link to the tab and stay at the top of the tabs (where the tab titles are) ill be happy..

I am really hoping the solution doesnt lie in $_POST or $_GET data as using forms to开发者_开发百科 do this will probably not work so nicely with the JS degradation..

Thank you in advance


ok so upon posting my comment to themerlinproject above.. it occurred to me that the javascript was looking at the #tab-3 anchor as an indicator to show tab-3 (which is a

     <div>

not an

      <a>

)

but the browser looks for

    <a name="tab-3">

independent of the javascript.. and failing an a seems to be looking for the div.. so i just put the following code.. ABOVE the tab menu section

            <a name="tabs-1"></a>
            <a name="tabs-2"></a>
            <a name="tabs-3"></a>
            <a name="tabs-4"></a>
            <a name="tabs-5"></a>

and now the browser links to the < a>'s and the javascript links to the divs :D

Thanks for the flash though themerlinproject

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号