Results 1 to 5 of 5

Thread: [SOLVED] AJAX tabs - all inline, not external files?

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

    Question [SOLVED] AJAX tabs - all inline, not external files?

    1) Script Title: Ajax Tabs Content script

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

    3) Describe problem: I am using the AJAX tabs on a Joomla website. I want to load a Joomla module in each tab. This is a php call, like this:
    Code:
    <?php mosLoadModules( 'newsfeed2' );?>
    Unfortunately, that doesn't seem to work. The "default" tab works fine, since the php call is loaded when the page loads. I think that maybe it's not working because loading a new tab does not re-parse the php call that exists in the external file...? My experience with php is limited, so correct me if I'm speaking gibberish.

    The question I have is this: Is it possible to have the contents of each tab exist right on my html page, rather than have them loaded from an external html file?

    I hope this makes sense...
    Last edited by mikeberg62; 07-18-2007 at 01:47 PM. Reason: issue was solved

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

    Default

    The question I have is this: Is it possible to have the contents of each tab exist right on my html page, rather than have them loaded from an external html file?
    If I understood you correctly, certainly. That's what the original version of this script, Tab Content script, does.

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

    Default Thanks!!

    That's exactly what I needed. See it in action here:
    (site is still a work-in-progress)
    www.foreignaid.ca

  4. #4
    Join Date
    Jul 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    putting other joomla modules within ajax tabs is exactly what I want to do as well.

    I've checked out the other link for the tab content script but still don't understand where or how to insert the html code for the tabs within joomla, do I put it in the template html code, within the module alax tabs module somehow or other place?

    help much appreciated!

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

    Default

    Yes, I added the html for the tabs into my template, with some php code that tells it to only show up on the homepage.

    If you are looking for tabs inside a content item, that's a different story. I recommend checking out "Tabs and Slides in Content Items" from JoomlaWorks: http://www.joomlaworks.gr/#downloads_section

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
  •