Results 1 to 6 of 6

Thread: ajax tabs

  1. #1
    Join Date
    Aug 2006
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ajax tabs

    1) Script Title: Ajax Tabs Content script

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

    3) Describe problem:
    Not really a problem, just a question...

    Can you target specific <div> tags in an external file?

    i.e. when you click a tab, a specific <div> tag from the external .html file is displayed?

    Thanks

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    When you say external.. Do you mean an Iframe, or a completely different document?
    - Mike

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Nevermind.. Stupid question
    - Mike

  4. #4
    Join Date
    Aug 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    maybe try a different script because the whole point of having it ajaxed based is that it loads an external file etc etc, why not just add the div tags to the external page ? or search google for a script called accordian tabs ... its a cool scriptalicious script by moo fx ..



    _________________________
    http://www.mediapixel.co.uk

  5. #5
    Join Date
    Aug 2006
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well, I want to load an external file, but it'd be cool if I could load a specific portion of the external file. basically have each tab pull the same external file, only display a certain <div> from that external file.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Not really such a good idea. You could use the ordinary tab script:

    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    It could be worked out the way you say but, it really is more complex than it would be worth. The point of the AJAX tabs is to load separate pages. The ordinary tabs script loads division on the same page with no external page. To combine the two, you would need to code for displaying and not displaying divisions anyway, and they all would need to be parsed by the browser anyway. At that point there would be no functional advantage over the plain tabs script but there would be a lot more server overhead.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •