Results 1 to 5 of 5

Thread: Problem with Ajax Tabs Content Script 2.0

  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with Ajax Tabs Content Script 2.0

    1) Script Title: Ajax Tabs Content Script 2.0

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

    3) Describe problem: I am running a form on a page within a div that should just reload the page, but it breaks out. How can run the form from a page fetched via iframe, and have it stay within the div container?
    Code:
    <li><a href="turboconfirmation.php" rel="countrycontainer">Turbo Confirmation</a></li>
    thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This only works if the page is loaded using the IFRAME option. Your code above shows using the DIV option instead. So the correct syntax may look something like:

    Code:
    <li><a href="turboconfirmation.php" rel="#iframe">Turbo Confirmation</a></li>

  3. #3
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. I tried that and it still broke out and became the page. Here is the whole thing.

    Code:
    <ul id="countrytabs" class="shadetabs">
    <li><a href="#" rel="#default" class="selected">Introduction</a></li>
    <li><a href="instantrapport.php" rel="countrycontainer">Instant Rapport</a></li>
    <li><a href="messagemagic.php" rel="countrycontainer">Message Magic</a></li>
    <li><a href="frictionfreeforms.php" rel="countrycontainer">Friction-Free Forms</a></li>
    <li><a href="turboconfirmation.php" rel="#iframe">Turbo Confirmation</a></li><br><br>
    <li><a href="affiliatebullseye.php" rel="countrycontainer">Affiliate Bullseye</a></li>
    <li><a href="bonuses.php" rel="countrycontainer">Bonuses</a></li>
    <li><a href="mysterybonuses.php" rel="countrycontainer">Mystery Bonuses</a></li>
    <li><a href="monthlymembership.php" rel="countrycontainer">Conversion Elite Platinum Monthly Membership</a></li>
    </ul>
    
    <div id="countrydivcontainer" style="border:1px solid gray; width:660px; margin-bottom: 1em; padding: 10px">
    
    Introduction
    </div>
     <script type="text/javascript">
    
    var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
    countries.setpersist(true)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    
        </script>
    Everything else works fine. Here is the form code from turboconfirmation.php if that helps

    Code:
    <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
      <input name="fromaddress" type="text" value="" size="25">
      <br>
      <br>
        <input value="Use The Force" type="submit" />
     </form>
    thanks

  4. #4
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This should work based on what you posted. Do you have a URL to the problem page?

  5. #5
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have it working. Thanks!

    What is the best way to make it look better like it was before though. Now the height doesn't expand like before.
    Last edited by bigmarketing; 11-29-2007 at 01:23 AM. Reason: goofed

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
  •