Results 1 to 7 of 7

Thread: Ajax Tabs Content script - External links?

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

    Default Ajax Tabs Content script - External links?

    Ajax Tabs Content script:
    http://www.dynamicdrive.com/dynamici...tent/index.htm

    Hi, I'm new to Java in general, but I was wondering if it's possible to make an external link to a page using Ajax Tabs so that a tab beside the default would be selected first.

    Thanks!

  2. #2
    Join Date
    Jun 2006
    Location
    Perth Western Australia
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ayrkain
    Ajax Tabs Content script:
    http://www.dynamicdrive.com/dynamici...tent/index.htm

    Hi, I'm new to Java in general, but I was wondering if it's possible to make an external link to a page using Ajax Tabs so that a tab beside the default would be selected first.

    Thanks!
    Hi,

    Had to read this a few times which probably explains you lack of responses, I think you need to clarify this a bit

    What do you mean by external link; external to your directory/server/???

    The default will be the first one opened, thats what defaults do . Im not quite sure why you would have a default then want another script/page opened?

    Hebbs

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

    Default

    Yep, please clarify your question. FYI the script supports 3 types of tab content:

    1) Inline tab content
    2) External content, fetched via Ajax
    3) Regular links. In other words, a tab can act as a regular link to an external page.

  4. #4
    Join Date
    Jun 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Script: Tab Content Script

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

    Problem:
    I think what he meant, and it is something I would like to do, and I'm wondering if the tabcontent.js cookie feature can be exploited to do it, is:

    I have a menu bar across the top of all my pages. On the menu bar I have a dropdown menu showing several choices. I would like each of these links in the dropdown menu to call a particular page, and have each link open a different tab on that page.

    I don't know how to pass information from one page to another through a link.

    Select the Downloads button on the top menu bar of my site:

    http://www.flyingscool.com/index3.htm

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

    Default

    Wildfire563, it's certainly possible to have a link go to a page plus select a particular tab. If your page is dynamically generated for examp,e, it's a matter of just adding "selected" to the desired tab (li) dynamically.

    I understand what you're saying about being able to do this client side. I've made a note of such a feature, and most likely will add it the next time this script is updated.

  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

    Cookies or a server side generated page could be a way to go with this but, here is a quick and dirty method that works with ordinary pages:

    http://www.dynamicdrive.com/forums/s...84&postcount=3
    - John
    ________________________

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

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

    Default

    Yep, that will certainly work John. In fact, I think that's pretty much what I had in mind for doing this, via a URL get query string.

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
  •