Results 1 to 4 of 4

Thread: Tab content script+PHP

  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab content script+PHP

    1) Script Title: Tab Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem: how can i use php codes in tabs?i tried use but i couldnt...

    This is code:

    HTML Code:
    <ul id="maintab" class="shadetabs">
    <li class="selected" id="1"><a href="#" rel="tcontent1">Gündem</a></li>
    <li id="2"><a href="#" rel="tcontent2">Etkinlikler</a></li>
    <li id="3"><a href="#" rel="tcontent3">Faaliyetler</a></li>
    <li id="4"><a href="#" rel="tcontent4">Belediyemiz</a></li>
    <li id="5"><a href="#">Köşe Yazıları</a></li>
    </ul>
    
    <div class="tabcontentstyle">
    
    <div id="tcontent1" class="tabcontent">
    <?php include ("exp1.php"); ?>
    </div>
    
    <div id="tcontent2" class="tabcontent">
    <?php include ("exp2.php"); ?>
    </div>
    
    <div id="tcontent3" class="tabcontent">
    Tab content 3 here<br />Tab content 3 here<br />
    </div>
    
    <div id="tcontent4" class="tabcontent">
    Tab content 4 here<br />Tab content 4 here<br />
    </div>
    
    </div>
    
    <script type="text/javascript">
    //Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
    initializetabcontent("maintab")
    </script>
    when i use php code only in one tab, it works; but when i use php code for two tabs it doesnt work.
    can you help please?

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Can you be a bit more specific? What were you trying to do with PHP? etc.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    What's in the pages you are trying to include? It could be something in one or more of them that is causing your problem.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  4. #4
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank for your replies.you are right thetestingsite some wrong code in my php pages was causing the problem.i can solve this now.thanks again.

Bookmarks

Posting Permissions

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