Solved

Jquery Tabs plugin current version 1.9.3 - Make tab use a web page link

Posted on 2013-01-14
1
446 Views
Last Modified: 2013-01-14
I had this working in 1.7 version and now it is not.  I am hoping someone could help me out in how I get this done.

Basically I want to have all my tabs point to live web page links (not hidden panels)

below is how my old code works... Basically the Selected part of the tab is alwyas dynamically set.  Whatever that is set too the tab will match.  So I make the selected Tab href ="#<Name>" and then the other tabs href are actual links to webpages.

My links are valid I have cut and pasted them into abother browser window and they do work.

But every time I click on a tab which has a page link it now gives the url with "/undefined" added to the end.

So for example www.me.com/admin/undefined which isn't correct.

        <script type="text/javascript">
        $(function () {
        	// Tabs
            $("#tabs").tabs({
                select: function (event, ui) {
                    try {
                        window.location = $.data(ui.tab, 'href.tabs');
                    }
                    catch (err) {
                    //just ignore it.  For now..
                    }
                    return false;
                }
                , selected: 0
            });
 
        });
    </script>
<div id="tabs">
     <UL>
         <LI><a href="#details">Details</LI>
         <LI><a href="charges.aspx">Charges</LI>
         <LI><a href="History.aspx">History</LI>
     </UL>

</div>

Open in new window



How can I get this to work... I am under a crunch... otherwise I would go through and figure it out...

Any help is greatly appreciated :)
0
Comment
Question by:angelalaw
1 Comment
 

Accepted Solution

by:
angelalaw earned 0 total points
ID: 38776978
For those who might be looking I figured it out...

window.location = $.data(ui.tab, 'href.tabs');

Changes to
window.location = ui.tab.href;

That will work, or at least it does now for me...
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now