Results 1 to 6 of 6

Thread: Ajax tabs: Loading external links into tabs div

  1. #1
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax tabs: Loading external links into tabs div

    1) Script Title:
    Ajax Tabs Content

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

    3) Describe problem: Localhost

    Hello, I have this problem of loading the external link to the TAB, as of the script, which works, when i mention the external link it does load and open up a new window, how to load the contents within the tab.

    <li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>
    <li><a href="http://www.google.com" rel="ajaxcontentarea">Map</a></li>
    <li><a href="external2.htm" rel="ajaxcontentarea">Dog</a></li>
    <li><a href="external3.htm" rel="ajaxcontentarea">Cat</a></li>
    <li><a href="external4.htm" rel="ajaxcontentarea">Sea Otter</a></li>

    When I click on the Map tab, it takes me to new window, how would I call the page within the tab,realtime

    kindly help me in this

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

    Default

    Hmm... the link you gave was invalid. Could you try to get the actual link?
    - Mike

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

    Default

    sorry, the following is the link

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

  4. #4
    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

    From the demo page:

    Fetch and display an external page (from the same domain) inside a container when a tab is clicked on.
    - John
    ________________________

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

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

    Default

    John

    Basically it will help me, if i show the page from the external domain, it would be hosted on my another site, I need to fetch the details and display within the TAB, the example of Google was jus a consideration.

    would there be a script, for me to display the external value within a TAB, i jus need to load the external page only for one tab, remaining 2 tabs would be the internal pages, which i would fetch and display

    kindly guide me in this factor

  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

    This might be able to be done with PHP if your server where the tab script is located has it and has it configured to allow this.

    This thread:

    http://www.dynamicdrive.com/forums/s...ad.php?t=16567

    discusses how this can be done where allowed, especially in the later posts (starting around post 14 in that thread). Once you get a local PHP page displaying the content from another domain, if as I say, it is allowed, then that page might be able to be loaded into the tab.
    - 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
  •