Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tabs help / Design Advice

    I'm currently doing a website primarily using the tab script found http://osspro.com/11/php-easy-tabs-for-your-webpages there.

    My main goal of doing this is so I just use variables and includes to get the entire thing together without ever having to load multiple sites and lag-a-bunch (I imagine the first load would go rather slow... >_>)

    Is it a bad idea? Or is the code not written until the tab is clicked and called upon?

    Anyways the more important thing I need is

    a: Bad idea & go with multiple pages? or Good idea?

    b: I need a cookie or something to keep the users tabs active where they are, it keeps going back to default every time you reload the page or leave

    c: Most importantly this site is I suppose one could consider it an RPG fansite ish thing (No url not done) and will have a lot of information. It will need scripts to bring information to the center of the page without leaving the page (Unless you guys tell me doing it all with tabs is a bad idea :P)

    That's it for now.

    Oh btw http://visvalor.limewebs.com/ is the site I'm using to test my code :P

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You may be interested in jQuery's UI, which has a tabs widget.

    http://jqueryui.com/demos/tabs/

    In addition to handling the behavior of the tabs, you can also use jQuery's Ajax functions which makes it very easy to load the content of each tab seamlessly without page reload.

    Whether it will perform well enough for your situation can only be answered by coding it up and finding out.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •