PDA

View Full Version : Ajax tabs: Loading external links into tabs div



sridharsri
02-20-2007, 03:04 PM
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

mburt
02-20-2007, 03:11 PM
Hmm... the link you gave was invalid. Could you try to get the actual link?

sridharsri
02-20-2007, 03:13 PM
sorry, the following is the link

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

jscheuer1
02-20-2007, 03:41 PM
From the demo page:


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

sridharsri
02-20-2007, 03:49 PM
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

jscheuer1
02-20-2007, 04:03 PM
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/showthread.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.